body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
    flex-direction: column; /* Adjusts the layout to stack elements vertically */
}
/* Navigation Bar */
.navbar {
    display: flex;
    position: fixed;
    margin-left: auto;
    align-items: center;
    top: 0; 
    left: 0;
    width: 96%;
    justify-content: space-between;
    background-color:#005BEA ;
    padding: 1rem 2rem;
    color: white;
    z-index: 9999;
    margin: 0;
  }

  
  .navbar .logo {
    font-size: 24px;
    font-weight: bold;
  }
  
  .navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  
  .navbar .nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
  }
  
  .navbar .nav-links li a:hover {
    text-decoration: underline;
  }

  
.container {
    background-color: aliceblue;
    border-radius: 20px;
    padding: 40px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    color: #005bea;
    text-align: center;
    margin-bottom: 30px;
}

.progress-bar {
    background-color: #e0e0e0;
    height: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.progress {
    background-color: #00c6fb;
    height: 100%;
    border-radius: 10px;
    width: 25%;
    transition: width 0.5s ease-in-out;
}

.question {
    font-size: 20px;
    margin-bottom: 20px;
}

.choices {
    display: grid;
    font-size: medium;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.choice {
    background-color: #f0f0f0;
    border: none;
    font-size: medium;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.choice:hover {
    background-color: #e0e0e0;
}

#feedback {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
    color: #ff4757;
}

/* Styling for button container */
.buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.next, .home {
    font-size: 20px;
    background-color: aliceblue;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.next:hover, .home:hover {
    background-color: #e0e0e0;
}

/* Adjust spacing between container and buttons */
.buttons {
    margin-top: 30px; /* Creates more space between the container and buttons */
    align-self: center; /* Ensures the buttons are centered */
}

.choice {
    background-color: #f0f0f0; /* Default background color */
    border: none;
    font-size: medium;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.correct {
    border: 2px solid #28a745; /* Darker green */
    background-color: #d4edda; /* Light green */
    animation: clickAnimation 0.3s forwards;
}

.correct:hover{
    background-color: #d4edda; /* Light green */
}

.wrong {
    border: 2px solid #dc3545; /* Darker red */
    background-color: #f8d7da; /* Light red */
    animation: shake 0.5s forwards;
}

.wrong:hover{
    background-color: #f8d7da; /* Light red */
}

@keyframes clickAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0% { transform: translate(0); }
    25% { transform: translate(-5px); }
    50% { transform: translate(5px); }
    75% { transform: translate(-5px); }
    100% { transform: translate(0); }
}
