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

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: black;
}

#game-area {
  border: 5px solid lightgreen;
  margin-top: 8px;
}

.hidden {
  display: none !important;
  visibility: hidden;
}

#current-score,
#highest-score {
  color: white;
  font-size: 24px;
  padding: 10px;
  margin-top: 16px;
}

#button-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 32px;
}

.game-button {
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  font-size: 1.15rem;
  cursor: pointer;
  background-color: yellow;
}

#toggle-pause {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
}

#toggle-pause > svg {
  transform: scale(2);
}

#start {
  animation: grow-shrink 2s linear infinite;
}

.game-button:focus {
  outline: none;
}

@keyframes grow-shrink {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.setting-button {
  transform: scale(1.5);
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  background-color: black;
  color: white;
  cursor: pointer;
  border-radius: 50%;
}

.page-cover {
  z-index: 1 !important;
  position: fixed !important;
  display: block !important;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

#setting-page {
  display: none;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
  padding: 32px;
}

#setting-menu {
  padding: 32px;
  background-color: rgba(240, 240, 240, 0.9);
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

#setting-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setting-item {
  background-color: rgba(240, 240, 240, 0.7);
  border: 1px solid #666;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-item-checkbox {
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}

label {
  font-size: 16px;
  color: #333;
}

input {
  cursor: pointer;
}

select {
  border-radius: 5px;
  height: 24px;
}

input[type="checkbox"] {
  border: 1px solid #666;
  border-radius: 5px;
  width: 16px;
  height: 16px;
}

.form-button {
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
}

#reset-setting {
  background-color: rgb(255, 80, 0);
}

#reset-highest-score {
  position: absolute;
  bottom: 72px;
  background-color: rgb(255, 80, 0);
}
