@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');



*{
  margin: 0;
  padding: 0;
  /* font-family: 'Poppins', sans-serif; */
  font-family: 'Rubik', sans-serif;
  box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    background-image: url('group-1-bg-image.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*overflow: hidden; /* Prevent scrolling */
    height: 100vh;
    margin-top: 10px;
}

h1 {
    color: #000000;
    margin-bottom: 150px;
    font-size: 2.5em;
}
 
.game-container {
    position: relative;
    margin-top: -150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    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: 20% auto; /* Centers the modal vertically */
    padding: 15px;
    border: none;
    width: 90%; /* Adjust width for smaller screens */
    max-width: 600px; /* Maintain maximum width for larger screens */
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
  }
  
  /* Media query for phones (max-width: 768px) */
  @media only screen and (max-width: 768px) {
    .modal-content {
        width: 95%; /* Make modal take more width on small screens */
        padding: 10px;
    }
  
    .modal-content p {
        font-size: 18px; /* Reduce font size for better readability */
    }
  
    .modal-content img {
        max-width: 70%; /* Adjust image size on small screens */
        height: auto;
    }
  
    .modal-content .popButton {
        padding: 8px 15px;
        font-size: 18px; /* Reduce button font size */
    }
  
    .modal-content iframe {
        width: 100%; /* Ensure embedded iframes are responsive */
        height: auto;
    }
  }
  .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;
  } */

#gameCanvas {
    /* border: 2px solid #333; */
    /* background-color: white ;
    opacity: 50%; */
    margin-bottom: 20px;
    margin-top: 40px;
    
    height: 600px;
    width: 700px;
}

.container {
    text-align: center;
    /* background-color: rgba(255, 255, 255, 0.9); Add transparency with rgba */
    background-image: url("cv.png"); /* Add the image */
    background-size: cover; /* Adjust based on preference (cover, contain, etc.) */
    background-position: center;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    width: 800px;
    height: 970px;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.2);
    margin-top: 80px;
}


.hidden {
    display: none;
}

#questionContainer {
    background-color: #fff;
    /* border: 1px solid #333; */
    padding: 20px;
    box-shadow: 0 0 10px 5px #ff9d9d;
    border-radius: 8px;
    /* width: 250px; */
    text-align: center;    /* Text align */
    margin-top: -10px;
    margin-bottom: 20px;
    
}

/* #questionText {
    margin-bottom: 10px;
    font-size: 20px;
    color: #555;
    font-family: 'Roboto', sans-serif;
    
}

#hintText {
    margin-bottom: 10px;
    font-size: 16px;
    color: #888;
    font-style: italic;
    font-family: 'Roboto', sans-serif;
   
} */
#questionText {
    font-family: 'Merriweather', serif;
    margin-bottom: 10px;
    font-size: 25px;
    color: #000000; /* Black color for better contrast */
    font-weight: bold; /* Make the text bold */
}


#hintText {
    margin-bottom: 10px;
    font-size: 20px; /* Slightly larger font size */
    color: #000000; /* Black color for better contrast */
    
    font-family: 'Merriweather', serif; /* Same font family as question text */
}

#optionsText {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    color: #000000;
    font-style: normal; /* Ensure text is not italicized */
}

#answerInput {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-left: -10px;
    margin-right: 10px;
}

#submitAnswer {
    background-color: #008300;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#submitAnswer:hover {
    background-color: #45a049;
}

#feedbackText {
    margin-top: 10px;
    font-size: 20px;
}

.correct {
    color: #40cf2d; /* Green color for correct answers */
}

.wrong {
    color: #cf4040; /* Red color for wrong answers */
}


/* Controls styling */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.controls div {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.control-btn {
    background-color: #183009;
    color: white;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background-color: #45a049;
}

@media (max-width: 600px) {
    #gameCanvas {
        width: 100%;
        height: auto;
    }

    #questionContainer {
        width: 90%;
    }

    .controls {
        flex-direction: column;
    }

    .controls div {
        flex-direction: row;
    }

    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 200px) {
    .control-btn {
        width: 2px;
        height: 2px;
        font-size: 18px;
    }
}




#restartButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    font-size: 18px;
    background-color: #008300;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 340px;
}

#restartButton.hidden {
    display: none;
}