@font-face {
  font-family: "ghanachoco";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/ghanachoco.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "ChosunGs";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/ChosunGs.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

* {
  font-family: "ghanachoco", "ChosunGs", sans-serif;
}

body {
  background-color: #2c3e50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  color: #ecf0f1;
  padding: 20px;
  text-align: center;
  line-height: 1.5;
  box-sizing: border-box;
}

h1 {
  font-size: 52px;
  margin-bottom: 25px;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#version {
  font-size: 16px;
  color: #bdc3c7;
  margin-bottom: 25px;
}

button {
  background-color: #e74c3c;
  color: #fff;
  border: none;
  padding: 22px 44px;
  border-radius: 15px;
  font-size: 24px;
  cursor: pointer;
  margin: 15px auto;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  width: 90%;
  max-width: 500px;
  box-sizing: border-box;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

button:hover {
  background-color: #c0392b;
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

button:active {
  transform: scale(0.98);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

#mainMenu,
#questionArea,
#quizArea {
  padding: 45px;
  background-color: #34495e;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  width: 95%;
  max-width: 700px;
  margin: 0 auto;
}

#questionDisplay {
  font-size: 36px;
  margin-bottom: 35px;
  color: #ecf0f1;
  line-height: 1.7;
}

#answerDisplay {
  font-size: 56px;
  margin-bottom: 35px;
  color: #2ecc71;
  line-height: 1.7;
}

.hidden {
  display: none;
}

.active {
  display: block;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #34495e;
  margin: 10% auto;
  padding: 35px;
  border: 1px solid #555;
  width: 90%;
  border-radius: 15px;
  max-width: 500px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.modal-content h2 {
  margin-bottom: 25px;
  font-size: 26px;
  color: #fff;
}

.close-button {
  color: #95a5a6;
  float: right;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
  color: #ecf0f1;
  text-decoration: none;
}

.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 62, 80, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.loading-spinner {
  border: 16px solid #455a64;
  border-top: 16px solid #ecf0f1;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.creator-info {
  margin-top: 35px;
  font-size: 16px;
  color: #95a5a6;
}

.creator-info a {
  color: #ecf0f1;
  text-decoration: none;
}

.creator-info a:hover {
  text-decoration: underline;
}

.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.option-item label {
  font-size: 20px;
  color: #ecf0f1;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.toggle-checkbox {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 34px;
}

.toggle-label:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
}

.toggle-checkbox:checked+.toggle-label {
  background-color: #2196f3;
}

.toggle-checkbox:focus+.toggle-label {
  box-shadow: 0 0 1px #2196f3;
}

.toggle-checkbox:checked+.toggle-label:before {
  -webkit-transform: translateX(22px);
  -ms-transform: translateX(22px);
  transform: translateX(22px);
}

#quizQuestion {
  font-size: 32px;
  margin-bottom: 20px;
  color: #ecf0f1;
  line-height: 1.7;
}

.quizOption {
  background-color: #3498db;
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  margin: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  width: 90%;
  max-width: 400px;
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.quizOption:hover {
  background-color: #2980b9;
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
}

.quizOption:active {
  transform: scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.quizOption.correct {
  background-color: #2ecc71;
}

.quizOption.incorrect {
  background-color: #e74c3c;
}

.quizOption.show-answer {
  background-color: #2ecc71;
  color: #fff;
  font-weight: bold;
}

@media (max-width: 768px) {
  body {
    padding: 20px;
    justify-content: center;
  }

  h1 {
    font-size: 42px;
    margin-bottom: 20px;
  }

  #version {
    font-size: 16px;
    margin-bottom: 25px;
  }

  button {
    padding: 18px 36px;
    font-size: 22px;
  }

  #mainMenu,
  #questionArea,
  #quizArea {
    padding: 30px;
    width: 100%;
    max-width: none;
    border-radius: 20px;
  }

  #questionDisplay {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .modal-content {
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    border-radius: 15px;
  }

  .close-button {
    font-size: 36px;
  }

  .loading-spinner {
    width: 100px;
    height: 100px;
    border: 12px solid #455a64;
    border-top: 12px solid #ecf0f1;
  }

  .creator-info {
    margin-top: 25px;
    font-size: 16px;
  }

  #quizQuestion {
    font-size: 28px;
  }

  .quizOption {
    padding: 15px 25px;
    font-size: 18px;
  }
}