*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0;margin:0;outline:0}

/* Reset and basic styles */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  font-family: 'Comic Relief', sans-serif;
  font-weight: 700;
  font-style: normal;
  background: linear-gradient(to right, #87cefa, #9ad8ff);
}

.title h1, .title h2 {
  color: #d63384;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
}

.mobile-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: linear-gradient(to right, #87cefa, #9ad8ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#learnMode,
#quizMode {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.learn-screen {
  font-size: clamp(5rem, 25vw, 22rem);
  font-weight: bold;
  color: #ffffff;
  text-shadow: 6px 6px 0 #ff69b4, 12px 12px 0 #ffb6c1;
  animation: pop 0.6s ease;
}

@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.question {
  font-size: clamp(1.5rem, 6vw, 3rem);
  margin-bottom: 20px;
  color: #4b0082;
  animation: pop 0.4s ease;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.options button {
  background-color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 20px;
  width:300px;
  max-width: 300px;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
}

.options button:hover {
  background-color: #87cefa;
  color: #000;
}

.result {
    font-size: 24px;
    color: green;
    margin-top: 20px;
}

#quizMode h2.result{
    background: #fff;
    padding: 10px 20px;
    margin: 20px;
    border: 1px solid #3367d6;
    animation: blink 1.5s infinite, bounce 2s infinite;
    transition: transform 0.2s ease;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.nav-home {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  position: fixed;
  bottom: 10px;
  left: 10px;
}

.nav a, .nav-home a {
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    transition: background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
    padding: 10px 20px;
    background: #3367d6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.nav a:hover, .nav-home a:hover {
  background-color: #ff1493;
}

#quizArea {
  max-width: 700px;
  background-color: #fff7fc;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 100%;
}

/* Responsive styles */
@media (max-width: 600px) {
  .question {
    font-size: 24px;
  }

  .options button {
    font-size: 18px;
    padding: 10px 20px;
  }
}
