/* Modern Color Palette */
:root {
  --primary: #2e7d32; /* Deep green */
  --secondary: #ff8f00; /* Orange */
  --accent: #1565c0; /* Blue */
  --background: #f5f5f5;
  --card-bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --correct: #4caf50;
  --wrong: #f44336;
}

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background);
  margin: 0;
  padding: 0;
  color: var(--text);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Splash Screen */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeOut 1s ease-in-out 2s forwards;
}

#logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* Main Container */
.container {
  top: 20px;
  max-width: 800px;
  max-height: fit-content;
  margin: 0 auto;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
}

/* Header */
h1 {
  top: 20px;
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary);
}

/* Button Styles */
.button-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.button-container button, 
.menu-button, 
.contact-button {
  background-color: var(--card-bg);
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  position: relative;
  overflow: hidden;
}

.button-container button::before,
.menu-button::before,
.contact-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.button-container button:hover::before,
.menu-button:hover::before,
.contact-button:hover::before {
  left: 100%;
}

.button-container button:hover, 
.menu-button:hover, 
.contact-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  background-color: #e8f5e9;
}

.exam-button {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-left: 5px solid var(--primary);
}

.exam-button:hover {
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
}

/* Quiz Section */
#main-content {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 500;
  color: var(--text-light);
}

#timer {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

#stopButton {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
}

#quiz {
  margin: 20px 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
}

.question-text {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

.option-label {
  display: block;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  background-color: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid #e0e0e0;
  font-size: 1.1rem;
}

.option-label:hover {
  border-color: var(--accent);
  background-color: #e3f2fd;
}

.option-label.correct {
  border-color: var(--correct);
  background-color: #e8f5e9;
  color: var(--correct);
}

.option-label.wrong {
  border-color: var(--wrong);
  background-color: #ffebee;
  color: var(--wrong);
}

/* Navigation Buttons */
#next-button, #back-button, #home-button {
  margin: 10px;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#next-button {
  background-color: var(--primary);
  color: white;
}

#next-button:hover {
  background-color: #1b5e20;
}

#back-button {
  background-color: var(--accent);
  color: white;
}

#back-button:hover {
  background-color: #0d47a1;
}

#home-button {
  background-color: var(--secondary);
  color: white;
}

#home-button:hover {
  background-color: #e65100;
}

/* Saved Questions */
#saved-questions {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.saved-question-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  border-left: 5px solid var(--accent);
}

#BackButtonOP {
  position: absolute;
  top: 50px;
  left: 20px;
  background: transparent;
  color: var(--accent);
  font-size: 2rem;
  padding: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

#BackButtonOP:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.remove-button:hover {
  background-color: #c62828;
}

.menu-toggle {
  position: fixed;
  top: 40px;
  left: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1002;
  background-color: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
}

.slide-menu {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  width: 250px;
  background-color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  padding-top: 60px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1001;
  transition: left 0.5s ease;
}

.slide-menu.open {
  left: 0;
}

.slide-menu button {
  background: none;
  border: none;
  font-size: 1rem;
  text-align: left;
  padding: 10px 0;
  cursor: pointer;
  color: #333;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 1000;
}

.menu-overlay.active {
  display: block;
}


#btnMyProfile {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.5s ease;
  width: 80%;
  margin: 20px auto;
  display: block;
  text-align: center;
}

#btnMyProfile:hover {
  background-color: #1b5e20;
}


.previous-button {
  position: fixed;
  top: 30px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.previous-button:hover {
  background-color: #1b5e20;
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .button-container {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .container {
    padding: 15px;
  }
  
  #quiz {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .question-text {
    font-size: 1.1rem;
  }
  
  .option-label {
    padding: 12px;
    font-size: 1rem;
  }
  
  #next-button, #back-button, #home-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
/* Add these to your style.css file */

/* General Mobile Improvements */
@media (max-width: 480px) {
  /* Larger touch targets for buttons */
  .button-container button, 
  .menu-button, 
  .contact-button {
    height: 60px; /* Reduced from 80px */
    padding: 12px;
    font-size: 1rem;
    margin: 8px 0;
  }

  /* Better spacing for button grid */
  .button-container {
    gap: 12px;
    margin: 20px 0;
  }

  /* Adjust header size */
  h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  /* Question text sizing */
  .question-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  /* Option labels */
  .option-label {
    padding: 12px;
    font-size: 0.95rem;
    margin: 8px 0;
  }

  /* Navigation buttons */
  #next-button, #back-button, #home-button {
    padding: 10px 15px;
    font-size: 0.9rem;
    margin: 5px;
  }

  /* Status bar */
  #status {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  /* Timer positioning */
  #timer {
    font-size: 0.95rem;
  }


  /* Previous button */
  .previous-button {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
    top: 30px;
    left: 20px;
  }


  /* Splash screen logo */
  #logo {
    width: 120px;
    height: 120px;
  }
}

/* For very small screens (under 360px) */
@media (max-width: 360px) {
  .container {
    padding: 10px;
  }

  .button-container button {
    height: 55px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.3rem;
  }
}

/* Prevent horizontal scrolling */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Better spacing for saved questions */
.saved-question-item {
  padding: 15px;
  margin-bottom: 15px;
}

.remove-button {
  margin-top: 10px;
}

#A{
  background-color: None;
}
.explanation-text {
  font-size: 1rem;
  color: #444444;
  background-color: #f1f8e9;
  border-left: 4px solid var(--primary);
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 15px;
  
}





















/* Mascot Trigger Button */
#bot-icon {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: auto;
}

#bot-icon:hover {
  transform: scale(1.1);
  background-color: #1b5e20;
}


/* Mascot Guide Panel */
#mascot-guide {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 330px;
  background: white;
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 100000;
  display: none;
  flex-direction: row;
  gap: 12px;
  animation: fadeInUp 0.4s ease;
  border: 1px solid #e0e0e0;
  pointer-events: auto;
  touch-action: manipulation;
}

/* Larger mascot */
#mascot-img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  align-self: flex-start;
  pointer-events: none;
}

.mascot-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-controls {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* Message Box */
#mascot-message {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #333;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
}

/* Audio toggle icon */
#audio-control {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--accent);
  padding: 4px;
  transition: all 0.2s ease;
}

#audio-control:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* Nav buttons */
.mascot-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.mascot-buttons button {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.92rem;
  z-index: 100001;
  pointer-events: auto;
  touch-action: manipulation;
}

.mascot-buttons button:hover {
  background-color: #1b5e20;
  transform: scale(1.05);
}


/* Mobile Adjustments */
@media (max-width: 480px) {
  #mascot-guide {
    width: 92%;
    max-width: 300px;
    flex-direction: column;
    bottom: 20px;
    right: 20px;
  }

  #mascot-img {
    width: 80px;
    height: 80px;
    align-self: center;
  }

  #mascot-message {
    font-size: 0.9rem;
    padding: 10px;
  }

  .mascot-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .mascot-buttons button {
    font-size: 1rem;
    padding: 10px 16px;
    margin-top: 4px;
  }
}

 footer {
            text-align: center;
            bottom: 50px;
            padding: 20px;
            color: #666;
            font-size: 0.9rem;
        }