body{
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    background: url(/34de46474bc969a9b688f14e431d6953.jpg);
}
*{
    box-sizing: border-box;
}
.sections{
    display: flex;
    flex-direction: column;
}
.navbar {
    width: 100%;
    padding: 0px 50px;
    background: linear-gradient(90deg, #12592d, #12873d);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    color: rgb(0, 0, 0);
    display: flex;
    position: fixed;
    top: 0; 
    left: 0;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.logo {
    padding-left: 4vw;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}
.logo h1{
    font-size: 35px;
    font-weight: 900;
    margin: 8px 0;
}
.userInput{
    padding: 3px 35px;
}
.userInput a {
    font-size: 1em;
    padding-right: 3vw;
    margin: 0;
    text-decoration: none;
    color: rgb(240, 240, 240);
    font-weight: bold;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    
}

.userInput a:hover{
    color: rgb(30, 30, 30);
}

.mainPage{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    padding-top: 70px; 
}
.card {
    background:  #f0fdf4 ;
    border-radius: 5px;
    box-shadow: 2px 2px 20px 4px rgba(0, 0, 0, 0.647); 
    font-size: 18px;
}
#questions{
    text-align: center;
    width: 100%;
    padding: 0 10px;
}

.answers{
    display: flex;
    flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  margin: 0 10px;
}

.answers button{
    margin: 0.5em 1em;
    
    border: none;
    color: #000000;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 18px;
    width: 80%;
    max-width: 200px;
    text-align: center;
}
.answers button:hover{
    background-color: rgb(224, 214, 163);
}

#playAgain{
    display: none;
    background-color: green;
}

/* about section*/
 .about {
      max-width: 900px;
      margin: 50px auto;
      background: #d2ffe2;
      padding: 40px;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .about h1 {
      color: #0dcc60;
      margin-bottom: 20px;
      text-align: center;
    }

    .about h2 {
      color: #333;
      margin-top: 25px;
      margin-bottom: 10px;
    }

    .about p {
      line-height: 1.7;
      font-size: 16px;
      margin-bottom: 15px;
    }

    .about ul {
      margin-left: 20px;
      list-style-type: disc;
    }

    footer {
      margin-top: auto;
      background-color: #222;
      color: white;
      text-align: center;
      padding: 15px;
      font-size: 14px;
      bottom: 0;
    }

@media screen and (max-width: 714px){
    .navbar{
        padding: 0px ;
    }
}
@media  screen and (max-width: 425px) {
    .navbar .logo{
        padding-left: 2vw;
    }
    .userInput{
        padding: 3px 3px;
    }
}
@media screen and (max-width: 400px){
    .userInput{
        display: none;
    }
}

/*bar open when click it*/

#bar {
  display: none;
  font-size: 25px;
  cursor: pointer;
  margin-right: 20px;
  transition: transform 0.3s ease;
}

/* Rotate slightly when clicked */
#bar.active {
  transform: rotate(90deg);
}

/* 🔹 Responsive navbar for small screens */
@media screen and (max-width: 400px) {
  #bar {
    display: block;
  }

  /* Hide by default */
  .userInput {
    display: none;
    position: absolute;
    top: 63px;
    right: 0;
    width: 50vw;
    height: 30vh;
    background: linear-gradient(90deg, #12592d, #12873d);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 20px;
    box-shadow: -2px 4px 10px rgba(0, 0, 0, 0.2);
    border-bottom-left-radius: 10px;
    transition: all 0.3s ease;
  }

  /* Show when toggled */
  .userInput.show {
    display: flex;
  }

  /* Style links inside menu */
  .userInput a {
    display: block;
    width: 80%;
    text-align: center;
    margin: 8px 0;
    padding: 10px 0;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: rgb(254, 254, 254);
    
    transition: background 0.3s, color 0.3s;
  }

  /* Hover effect for links */
  .userInput a:hover {
    background: #066129;
    color: rgb(0, 0, 0);
  }
}