/* Overall body and layout styles */
body {
  font-family: 'Baloo 2', sans-serif;
    font-size: 12px;
    background: linear-gradient(145deg, #ffeabf, #ffd6b2);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-direction: column;
    overflow-x: hidden;
    color: #333;
    text-align: center;
  }
  #main-title {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(255, 140, 0, 0.3);
  }
  
  #intro-text {
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto 2rem auto;
    color: #444;
  }
  
  .container {
    width: 90%;
    max-width: 480px;  /* Adjusts the maximum width for smaller screens like iPhone */
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  /* Styles for the header, questions, and answers */
  #quiz-screen, #result-screen {
    width: 100%;
    text-align: center;
    #quiz-screen {
      transition: opacity 0.5s ease-in-out;
    }
    
    .fade-out {
      opacity: 0;
    }
    
    .fade-in {
      opacity: 1;
    }
    
  }
  
  #question-text {
    font-size: 1.5rem;
    margin: 20px 0;
  }
  
  .feedback-placeholder {
    min-height: 50px; /* Space for feedback messages */
    text-align: center;
    color: #333;
    margin-bottom: 20px; /* Space between feedback and next question */
    font-size: 16px;
    transition: opacity 0.3s ease-in-out;
  }
  
  .answer-btn {
    display: block;
    margin: 10px auto;
    padding: 12px;
    width: 100%;
    max-width: 350px;
    font-size: 1.1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .answer-btn:hover {
    background-color: #45a049;
  }
  
  #image-container {
    width: 100%;
    max-width: 300px;
    height: 200px;
    margin: 0 auto 20px auto;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* Optional placeholder background */
  }
  
  #image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
  
  
  /* Feedback and result screen */
  #feedback {
    font-size: 1.2rem;
    margin-top: 20px;
    color: #d9534f; /* Red color for wrong answers */
    text-align: center;
  }
  
  #score {
    font-size: 2rem;
    font-weight: bold;
    color: #5bc0de; /* Light blue color for score */
    }
  
  /* Start screen */
  #start-btn {
    padding: 15px;
    font-size: 1.2rem;
    background-color: #ff8c42;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    max-width: 350px;
    transition: transform 0.2s ease, background-color 0.3s ease;
  }
  
  #start-btn:hover {
    background-color: #ff6a00;
    transform: scale(1.05);  }
    #result-title {
      font-size: 2.5rem;
      font-weight: bold;
      color: #ff6600;
      margin-bottom: 1rem;
      text-shadow: 2px 2px 5px rgba(255, 140, 0, 0.3);
    }
    
    #result-text {
      font-size: 1.4rem;
      line-height: 1.6;
      margin: 1rem auto 2rem auto;
      max-width: 90%;
      color: #444;
    }
    
    #final-score {
      font-size: 1.6rem;
      margin-bottom: 0.5rem;
      color: #333;
    }
    /* Style for Play Again button */
#restart-btn {
  background-color: #ff7f50; /* Orange color */
  color: white; /* White text */
  border: none; /* Remove border */
  padding: 15px 30px; /* Add padding */
  font-size: 18px; /* Set font size */
  font-family: 'Baloo 2', sans-serif; /* Matching font */
  border-radius: 10px; /* Rounded corners */
  cursor: pointer; /* Add pointer cursor */
  transition: background-color 0.3s, transform 0.3s; /* Smooth transition */
}

/* Hover effect for Play Again button */
#restart-btn:hover {
  background-color: #ff5722; /* Darker orange */
  transform: scale(1.1); /* Slightly enlarge button on hover */
}

/* Active state for Play Again button (when clicked) */
#restart-btn:active {
  background-color: #e64a19; /* Even darker orange on click */
  transform: scale(1); /* Return to normal size */
}
#progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: #ddd;
  border-radius: 5px;
  margin-bottom: 20px;
}

#progress-bar {
  height: 100%;
  background-color: #ff8c42;
  width: 0%;
  border-radius: 5px;
  transition: width 0.4s ease-in-out;
}
#share-btn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
}
#share-btn:hover {
  background-color: #45a049;
}
