:root {
  --default: #e4c59e;
  --empty: #3a3a3c;
  --wrong: #b59f3b;
  --right: #538d4e;
  --border: #af8260;
  --unused: #ecd8bd;
}

html,
body {
  background: var(--default);
  margin: 0;
  padding: 0;
}

.border2 {
  border: 15px solid var(--border);
  position: absolute;
  width: calc(100vw - 30px);
  height: auto;
  z-index: 1;
  min-height: calc(100vh - 30px);;
}

#container {
  display: flex;
  margin-top: 5%;
  justify-content: center;
  align-items: center;
  height: 40vh;
  width: 100%;
  gap: 5px;
  z-index: 2;
  padding-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-rows: repeat(6, auto);
  grid-template-columns: repeat(5, auto);
  gap: 6px;
}

.box {
  height: 3rem;
  width: 3rem;
  border-radius: 0.5rem;
  background: var(--unused);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: 800;
  font-size: 3rem;
  color: var(--empty);
}

.correct {
  background: var(--right);
  color: black;
}

.wrong {
  background: var(--wrong);
  color: black;
}

.empty {
  background: var(--empty);
  color: white;
}

.default-view {
  background: var(--unused);
}

#keyboard-container {
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 6.5px;
  justify-content: center;
  align-items: center;
  padding-left: 18px;
  padding-bottom: 10%;
}

.keyboard {
  display: flex;
  /* grid-template-columns: repeat(8, auto); */
  gap: 2px;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.keyboard-button {
  padding: 0.4rem;
  background-color: var(--border);
  display: inline-block;
  text-align: center;
  border: #af8260;
  border-radius: 4px;
  color: white;
}

.animated {
  animation: flip 0.5s ease;
}

.gif {
  
  width: 10rem;
  height: 10rem;
  padding-top: 20px;
}

#imgCont {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 0px;
}

/*media query*/
@media only screen and (min-width: 768px) {
  .border2 {
    
    border: none;
    /*background-color: #3a3a3c;*/
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;

    #imgCont {
      top: 10%;
      right: 25%;
      position: absolute;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      padding-top: 0px;
    }  
  
  }

  #container {
  display: flex;
  margin-top: 5%;
  justify-content: center;
  align-items: center;
  height: 55vh;
  width: 100%;
  gap: 5px;
  z-index: 2;
}

#keyboard-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6.5px;
  justify-content: center;
  align-items: center;
  padding-left: 0px;
  margin-top: 2%;
}
}