:root {
    --border: #000000;
}


body{
    font-family: "Poppins", sans-serif;

    background-color: #3fbad9;
    font-size: 24px;
}

div.canvas{
    display: flex;
    justify-content: center;
}

div.in{
    display: flex;
    justify-content: center;
}

div.guesses{
    display: flex;
    justify-content: center;
    margin-top: 2px;
    font-size: 16px;
}
#correct-answer-container {
  text-align: center;
  margin-bottom: 20px;
}

#correct-answer {
  color: green;
  font-size: 24px;
}


input{
    background-color: W#3fbad9;
    border: 3px solid #3fbad9;
    border-radius: 20px;
    height: 30px;
    padding: 4px;
    margin-bottom: 5px;
}

button{
    background-color: #3fbad9;
    border: 3px solid #3fbad9;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s;
    margin-bottom: 2px;
}

button:hover{
    background-color: rgb(218, 218, 218);
    transition: all 0.3s;
}

button:active{
    background-color: rgb(134, 134, 134);
    transition: all 0.3s;
}

div.guess{
    width: 76px;
    position: relative;
    border: 2px solid #3fbad9;
    border-radius: 5px;
    color: white;
    text-align: center;
    vertical-align: middle;
    padding: 4px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #3fbad9;
}

#tries {
    position: absolute;
    top: 130px;
    left: 650px;
    color: rgb(0, 0, 0);
    font-size: 18px;
    
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #3fbad9;
    color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: modal-fade-in 0.5s ease-out;
}

.modal-content h2 {
    color: #3fbad9;
}

.modal-content p {
    margin-bottom: 20px;
}

.modal-content button {
    background-color: #3fbad9;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-content button:hover {
    background-color: #3fbad9;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
body {
    font-family: "Poppins", sans-serif;
    background-image: url(blue-bg.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
   
    background-attachment: fixed;
  
  }
  
          .modal {
              display: none;
              position: fixed;
              z-index: 1;
              left: 0;
              top: 0;
              width: 100%;
              height: 100%;
              overflow: auto;
              background-color: rgba(0, 0, 0, 0.5);
          }
          .modal-content {
              background-color: #fefefe;
              margin: 15% auto;
              padding: 20px;
              border: 1px solid #888;
              width: 80%;
              text-align: center;
          }
          #gg {
    font-family: "Poppins", sans-serif;
    background-color: white;
    
    margin-top: 1%;
    margin-left: 33.3%;
    height: 800px;
    width: 600px;
    border: 2px dashed black;
    border-radius: 20px;
  
  
  /* Align flex items at the start of the container */
  }
  #hashText {
    font-family: "Poppins", sans-serif;
    font-size: 40px;
    font-weight: bolder;
    color: #ffffff; /* Your chosen color */
    text-transform: uppercase;
    letter-spacing: 2px;
   margin-top: 2%;
    padding: 10px;
  z-index: 1;
  text-shadow: -1px -1px black,
  1px -1px black,
  -1px 1px black,
  -1px -1px black;
    text-align: center;
  }
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: -2%;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s;
    overflow: hidden;

    animation: fadeIn 0.3s;
  }
  
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  .modal-con {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: none;
    width: 30%;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;

  }
  .modal-con p {
    font-size: 24px;
    color: #3fbad9;
    margin-bottom: 20px;
  }
  .modal-con .popButton {
    padding: 10px 20px;
    font-size: 24px;
    background-color: #3fbad9;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .modal-con .popButton:hover {
    background-color: #3fbad9;
  }
  /* Position the button at the top-left corner */
  .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: #00BAD3;  
    /* color: #8460de;  */
    border: none;
    font-weight: bolder;
    background-color: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
   }
  
  /* Add a hover effect */
  .howToPlayBtn:hover {
    background-color: #c2b7b7; /* Slightly darker purple on hover */
  }
  .modal {
    display: none;
    position: fixed;
    z-index: 2; /* Ensure the modal is above other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
  }
  
  /* Style the modal content */
  .modal-content {
    background-color: #ffffff; /* Use a white background for the modal content */
    font-family: "Poppins", sans-serif; /* Use the same font as the game */
    color: #000000; /* Set the text color to black */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* Add a subtle shadow */
    border-radius: 10px; /* Rounded corners */
  }
  
  
  .close {
    color: #3fbad9;
    float: right;
    font-size: 24px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    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 */
}
.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: #00BAD3;  
  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;
}


@media (max-width: 480px) {
  .howToPlayBtn img,
  .homeBtn img {
    width: 50px;
    height: 50px;
  }

  .button-container {
    display: flex;
    flex-direction: column; /* Change the flex direction to column */
    align-items: center; /* Center the buttons horizontally */
    padding: 10px; /* Add some padding for spacing */
  }
  .homeBtn {
    position: absolute;
    top: 90px; /* Adjust the top position as needed */
    left: 10px;
    z-index: 1;
  
  
  }
  .btn {
    outline: none;
    width: 168px;
    padding: 8px;
    margin: 10px 0; 
    border-radius: 5px;
    background-color: #d1ae45;
    height: 40px;
    border: none;
    
  }
}
@media (max-width: 480px) {
  /* Styles for screens with a maximum width of 480px (smartphones) */
  .container {
    max-width: 95%;
    padding: 0.5rem;
  }

  .modal-content {
    width: 90%;
    margin: 40% auto;
  }

  .modal-content p {
    font-size: 16px;
  }

  .modal-header img {
    max-width: 50%;
  }

  .modal-con iframe {
    height: 200px;
    width: 250px;
  }
} 
@media only screen and (max-width: 768px) {
  /* Styles for screens up to 768px (tablets) */
  body {
    font-size: 18px;
  }

  #gg {
    margin-left: 10%;
    width: 80%;
    height: auto;
  }

  #hashText {
    font-size: 30px;
  }

  .modal-con {
    width: 80%;
  }

  #tries {
    top: 100px;
    left: 20px;
  }

  .homeBtn {
    top: 100px;
    left: 70%;
  }

  .homeBtn button {
    padding: 10px 15px;
  }

  .howToPlayBtn {
    top: 15px;
    left: 5px;
  }
}

@media only screen and (max-width: 480px) {
  /* Styles for screens up to 480px (mobile devices) */
  body {
    font-size: 16px;
  }

  #gg {
    margin-left: 5%;
    width: 90%;
  }

  #hashText {
    font-size: 24px;
    padding-top: 100px;
  }

  .modal-con {
    width: 90%;
  }

  #tries {
    top: 80px;
    left: 10px;
    padding-top: 90px;
    padding-left: 95px;
  }


}
@media only screen and (max-width: 480px) {
  /* Styles for screens up to 480px (mobile devices) */
  /* ... */

  .howToPlayBtn {
    top: 10px;
    left: 5px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .howToPlayBtn img {
    width: 50px;
    height: 50px;
  }

  .homeBtn {
    top: 60px;
    left: 5px;
    width: 16px;
    height: 16px;
  }

  .homeBtn button {
    padding: 6px 12px;
    font-size: 12px;
  }

  #home1{
    height: 50px;
    width: 50px;
  }
  


  
}
@media (max-width: 767px) {
  .modal-con {
      width:58%;
      margin: 13%;
  }
  .modal-con p {
      font-size: 18px;
  }
  .modal-con .popButton {
      font-size: 18px;
  }
}

/* For laptop screens */
@media (min-width: 768px) and (max-width: 1199px) {
  .modal-con {
      width: 50%;
  }
}
/* Make the iframe responsive */
.responsive-iframe {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Media queries for different screen sizes */

/* For mobile screens */
@media (max-width: 767px) {
  .responsive-iframe {
      padding-top: 75%; /* Adjust the aspect ratio for mobile */
  }
}

/* For laptop screens */
@media (min-width: 768px) and (max-width: 1199px) {
  .responsive-iframe {
      padding-top: 56.25%; /* 16:9 aspect ratio */
  }
}
@media (max-width: 480px) {
  /* Styles for screens with a maximum width of 480px (smartphones) */
  .container {
    max-width: 95%;
    padding: 0.5rem;
  }

  .modal-content {
    width: 90%;
    margin: 40% auto;
  }

  .modal-content p {
    font-size: 16px;
  }

  .modal-header img {
    max-width: 50%;
  }

  .modal-content iframe {
    height: 150px;
    width: 350px;
  }
}
