* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overscroll-behavior: none;
}

html {
  font-family: sans-serif;
}

#board {
  background: #e0dfd8;
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
}

#board div {
  display: flex;
  height: 80px;
  width: 80px;
  flex-shrink: 0;

  background: #f5f5f5;
  border-radius: 8px;
}

#board div span {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: 900;
  border-radius: 8px;
  color: rgb(202, 179, 132);
  transition: 0.1s;
}
#win {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}
.win {
  height: 100vh;
  width: 100vw;
  object-fit: cover;
  animation-name: jequiti;
  animation-duration: 0.1s;
  opacity: 0;
}

@keyframes jequiti {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.board-container {
  position: relative;
  margin: 0 auto;
  width: min-content;
  height: min-content;
  border-radius: 12px;
  overflow: hidden;
  margin: 40px auto;
}
.score-header {
  display: flex;
  justify-content: flex-end;
  margin: 0 auto;
  padding: 32px;
}
.score-header p {
  font-size: 20px;
  font-weight: 700;
  margin-left: 12px;
  color: #a1a094;
  position: relative;
}
#addNumber {
  position: absolute;
  top: 100%;
  right: 0;
  opacity: 0;
  pointer-events: none;
  animation-name: popup;
  animation-duration: 300ms;
  transition: 100ms;
  color: #8b780099;
}

#lost-game {
  display: none;
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 100;
  background: rgba(53, 38, 8, 0.635);
  top: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#lost-game p {
  color: white;
  margin-bottom: 12px;
  font-size: 18px;
}

.btn {
  outline: 0;
  border: 0;
  height: 32px;
  padding: 0 16px;
  border-radius: 4px;
  background: #8b7800;
  cursor: pointer;
  color: white;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s;
  box-shadow: 0 2px 4px #0004;
}
.btn:hover {
  background: #7c6c00;
}

@keyframes popup {
  0% {
    opacity: 0;
    
  }
  30% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}
