/* Importing the Rubik font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;900&display=swap');

/* Apply global styles */
* {
    margin: 0;
    padding: 0;
    font-family: 'Rubik', sans-serif;
    box-sizing: border-box;
}

body {
    background-image: url('energy.jpg'); /* Background image for larger screens */
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

/* Styling for the app container */
.app {
    background-color: rgb(255, 255, 245); /* Black with 70% opacity */
    color: #fff;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    margin: 275px auto 0;
    border-radius: 10px;
    box-shadow: 0 0 5px 5px #ffe7be,
                0 0 5px 5px #ffe7be,
                0 0 5px 5px #ffe7be,
                0 0 5px 5px #ffe7be;
}

/* Styling for headings inside the app container */
.app h1 {
    font-size: 25px;
    color:rgb(190, 0, 57);
    font-weight: 600;
    padding-bottom: 15px;
    /* margin-left: 50px; */
}

.app h4 {
    color: black;
    font-weight:lighter;
    font-size: 16px; 
    border-bottom: 1px solid #333;
    padding-bottom: 15px;

}

/* Styling for the quiz section */
.quiz {
    padding: 20px 0;
}

.quiz h2 {
    font-size: 18px;
    color: black;
    font-weight: 600;
}

/* Styling for buttons */
.btn {
    background: #fff;
    color: #222;
    font-weight: 500;
    width: 100%;
    border: 01px solid rgb(218, 217, 217);
    padding: 10px;
    margin: 10px 0;
    text-align: left;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 20px;
}

.btn:hover:not([disabled]) {
    background: grey;
    color: #fff;
}

.btn:disabled {
    cursor: no-drop;
}

/* Styling for the next button */
#next-btn {
    background-color: rgb(255, 187, 0);
    color: #000;
    font-weight: 500;
    width: 150px;
    border: 0;
    padding: 10px;
    margin: 20px auto 0;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

/* Correct and incorrect answer styles */
.correct {
    background-color: green;
    color: white;
    font-weight: bold;
}

.incorrect {
    background-color: red;
    color: white;
    font-weight: bold;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: -2%;
    width: 100%;
    height: 102%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s;
    overflow: hidden;
  }
  
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: none;
    width: 600px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
  }
  .modal-content p {
    font-size: 24px;
    color: #000000;
    margin-bottom: 20px;
  }
  .modal-content .popButton {
    padding: 10px 20px;
    font-size: 24px;
    background-color: #8460de;
    color: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .modal-content .popButton:hover {
    background-color: #000000;
  }
  /* Position the button at the top-left corner */
  /* .howToPlayBtn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
  } */
  
  /* Style the button to match the game theme */
  /* .howToPlayBtn {
    font-family: "Poppins", sans-serif; 
    font-size: 26px;
     background-color: #793DAE;  
    color: #8460de;
    border: none;
    font-weight: bolder;
    
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.2); 
    transition: background-color 0.3s ease; 
  } */
  .howToPlayBtn {
    position: absolute;
    top: 25px;
    left: 10px;
    z-index: 1;
  }
  
  /* Style the button to match the game theme */
  .howToPlayBtn {
    font-family: "Poppins", sans-serif; /* Use the same font as the game */
    font-size: 16px; /* Adjust the font size as needed */
    background-color: transparent;  
    /* color: #8460de;  */
    border: none;
    font-weight: bolder;
    background-color: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    /* box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.2);  */
    /* transition: background-color 0.3s ease; */
  }
  
  /* Add a hover effect */
  /* .howToPlayBtn:hover {
    background-color: #c2b7b7; 
  } */
  
  .close {
    font-family: "Poppins", sans-serif;
    color: #8460de;
    float: right;
    font-size: 24px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    font-family: "Poppins", sans-serif;
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  
  .modal-header {
    text-align: center;
    margin-bottom: 10px;
  }
  
  .modal-header img {
    max-width: 50%; /* Set the maximum width to 50% of the parent container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Make the image a block-level element */
    margin: 0 auto; /* Center the image horizontally */
  }
  .modal-content iframe {
    margin-top: 20px; /* Added margin-top for the iframe */
  }
  
  .homeBtn {
    position: absolute;
    top: 145px; /* Adjust the top position as needed */
    left: 10px;
    z-index: 1;
  
  }
  
  /* Style the home button */
  .homeBtn button {
    font-family: "Poppins", sans-serif;
    background-color: transparent;  
    font-size: 16px; 
    border: none;
    font-weight: bolder;
    border-radius: 5px;
    padding: 15px 20px;
    cursor: pointer;
    /* box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.2); */
    transition: background-color 0.3s ease;
  }

  .rules{
    text-align: left;
    font-weight: bold;
  }
  
  /* Add a hover effect */
  /* .homeBtn button:hover {
    background-color: #c2b7b7;
  } */


/* Media query for mobile screens */
@media only screen and (max-width: 767px) {
  body {
      background-image: url('energy.jpg'); /* Different image for smaller screens */
  }

  .app {
      margin: 40% auto 0; /* Adjust top margin for better positioning on mobile */
      padding: 20px; /* Adjust padding for mobile view */
      ;
  }

  .quiz h2 {
      font-size: 16px; /* Smaller font size for mobile */
  }

  .btn {
      font-size: 18px; /* Smaller font size for mobile buttons */
  }

  #next-btn {
      width: 120px; /* Adjust button width for mobile */
  }

  .howToPlayBtn img{
    width: 50%;
    height: auto;
  }

}