body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: white;
}

.container1 {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  color: white;
}

h1 {
  color: #f1c40f !important;
  margin-bottom: 30px;
}

h2,
h3 {
  color: #f1c40f !important ;
}

#totalTimeText {
  font-size: 25px;
}
.intro,
.test-area,
.result-area,
.countdown-area {
  margin-bottom: 30px;
  background-color: #2c3e50;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.test-area,
.result-area,
.countdown-area {
  display: none;
}

.circle-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 50px;
}

.circle {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #3498db;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
  transform-origin: center center;
}

.circle:hover {
  background-color: #2980b9;
  transform: scale(1.1);
}

.circle.hidden {
  opacity: 0;
  pointer-events: none;
}

.circle.inactive {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

.arrow-test {
  margin-top: 50px;
}

.arrow-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.current-arrow {
  font-size: 120px;
  width: 250px;
  height: 250px;
  line-height: 250px;
  background-color: #2ecc71;
  color: white;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
  transition: all 0.3s;
}

.current-arrow.inactive {
  background-color: #bdc3c7;
}

.previous-arrows {
  display: flex;
  justify-content: center;
  font-size: 24px;
}

.previous-arrow {
  width: 40px;
  height: 40px;
  line-height: 40px;
  background-color: #95a5a6;
  color: white;
  border-radius: 5px;
  margin: 0 5px;
}

#timer {
  font-size: 18px;
  font-weight: bold;
  margin: 20px 0;
  color: #ecf0f1;
}

#instruction {
  font-size: 18px;
  font-weight: bold;
  color: #f1c40f !important;
  margin-bottom: 20px;
}

#penalty {
  font-size: 18px;
  color: #e74c3c;
}

#gradeDisplay {
  font-size: 38px;
  color: #3498db;
  margin-top: 20px;
}

#countdown {
  font-size: 72px;
  color: #e74c3c;
}

.main-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
  position: relative;
}

.emoji {
  font-size: 100px;
  line-height: 200px;
}

#startButton,
#retryButton {
  padding: 15px 30px;
  font-size: 24px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
  margin-bottom: 10px;
}

#startButton:hover,
#retryButton:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .circle-container {
    width: 280px;
    height: 280px;
    transform: scale(0.9);
    margin: 0 auto 30px;
  }

  .circle {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .current-arrow {
    font-size: 80px;
    width: 200px;
    height: 200px;
    line-height: 200px;
  }

  #startButton,
  #retryButton {
    padding: 10px 20px;
    font-size: 18px;
  }
}

@media (max-width: 400px) {
  .circle-container {
    width: 260px;
    height: 260px;
    transform: scale(0.85);
  }

  .circle {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}
