@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Indie+Flower&display=swap');

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

body {
  font-family: 'Architects Daughter', cursive;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.blackboard {
  background-color: #2a3b2d;
  border: 10px solid #987654;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 50px rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.9);
  width: 90%;
  max-width: 800px;
  min-height: 600px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.chalk-title {
  font-family: 'Indie Flower', cursive;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.2);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.chalk-subtitle {
  font-family: 'Indie Flower', cursive;
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.chalk-text {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.1);
}

.chalk-question {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 25px;
  padding: 10px;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.chalk-answers {
  margin-bottom: 30px;
}

.chalk-feedback {
  font-size: 1.4rem;
  margin-bottom: 15px;
  padding: 10px;
  text-align: center;
}

.chalk-correct {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding: 10px;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.chalk-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-family: 'Architects Daughter', cursive;
  font-size: 1.1rem;
  padding: 10px 20px;
  margin: 10px 5px;
  transition: all 0.3s;
}

.chalk-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.category-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-family: 'Architects Daughter', cursive;
  font-size: 1.1rem;
  padding: 12px 15px;
  text-align: left;
  transition: all 0.3s;
}

.category-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.answer-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.answer-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.answer-option.selected {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.5);
}

.answer-option.correct {
  background-color: rgba(100, 200, 100, 0.3);
}

.answer-option.incorrect {
  background-color: rgba(200, 100, 100, 0.3);
}

.option-letter {
  font-weight: bold;
  margin-right: 10px;
  min-width: 25px;
}

.option-text {
  flex: 1;
}

#progress-container {
  width: 100%;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  margin-bottom: 20px;
}

#progress-bar {
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  width: 0%;
  transition: width 0.5s;
}

#submit-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hidden {
  display: none !important;
}

#start-screen, #category-screen, #quiz-screen, #results-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.chalk-dust {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1));
}

/* Chalk marks and texture */
.blackboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
          radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
          radial-gradient(rgba(255, 255, 255, 0.03) 2px, transparent 2px);
  background-size: 20px 20px, 30px 30px;
  background-position: 0 0, 10px 10px;
  pointer-events: none;
  z-index: 1;
}

/* Navigation buttons */
#back-button {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-family: 'Architects Daughter', cursive;
  font-size: 1.1rem;
  padding: 10px 20px;
  margin: 10px 5px;
  transition: all 0.3s;
}

#back-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

#home-button {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-family: 'Architects Daughter', cursive;
  font-size: 1.1rem;
  padding: 10px 20px;
  margin: 10px 5px;
  transition: all 0.3s;
}

#home-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
  .blackboard {
    padding: 20px;
    min-height: 500px;
  }

  .chalk-title {
    font-size: 2rem;
  }

  .chalk-subtitle {
    font-size: 1.5rem;
  }

  .chalk-question, .chalk-text {
    font-size: 1.1rem;
  }

  #submit-container {
    flex-direction: column;
  }

  .chalk-btn, #back-button, #home-button {
    width: 100%;
    margin: 5px 0;
  }
}
