

body {
    background: url("purple-bg.jpg") no-repeat fixed;
    background-size: cover;
    background-color: #f0f8ff; /* Light blue background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-size: 100% 100%;

font-size: 22px;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#welcome-screen,
#end-screen {
    text-align: center;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px dashed black;
    padding: 30px;
    max-width: 600px;
    width: 100%;
}

#welcome-screen h1,
#end-screen h1 {
    font-size: 48px;
    color: #8460de;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

#welcome-screen p,
#end-screen p {
    font-size: 24px;
    margin-bottom: 30px;
}

#welcome-screen button,
#end-screen button {
    height: 40px;
    width: 168px;
    cursor: pointer;
    background-color: #d1ae45;
    color: rgb(23, 23, 23);
    border: none;
    border-radius: 5px;
    font-size: 24px;
    transition: background-color 0.3s ease;
}


#game-container {
    background-color: transparent;
    
    
}

#game-board {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px dashed black;
    padding: 30px;
    max-width: 600px;
    width: 100%;
}

#problem {
    font-size: 36px;
    color: #6948c9;
    margin-bottom: 20px;
    line-height: 1.5;
}

#input-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#divisor-input {
    padding: 10px 15px;
    font-size: 24px;
    border-radius: 10px;
    border: 3px solid #8460de;
    flex-grow: 1;
    margin-right: 10px;
}

#submit-btn {
    height: 40px;
    width: 168px;
    cursor: pointer;
    background-color: #d1ae45;
    color: rgb(23, 23, 23);
    border: none;
    border-radius: 5px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


#result {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

#score-container {
    font-size: 24px;
    text-align: center;
}

#timer-container {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}
#game-container h1{
    font-size: 40px;
    font-weight: bolder;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 20px;
    padding: 10px;
    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: 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: 30%;
    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: #3FBAD9;
    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: 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: #793DAE;  
    /* 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 */
  }
  
  .close {
    color: #8460de;
    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 */
}
.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: #793DAE;  
  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: 768px) {
  body {
      font-size: 18px;
  }

  #welcome-screen h1,
  #end-screen h1,
  #game-container h1 {
      font-size: 32px;
  }

  #welcome-screen p,
  #end-screen p {
      font-size: 18px;
  }

  #welcome-screen button,
  #end-screen button {
      font-size: 18px;
      height: auto;
      padding: 10px 15px;
  }

  #problem {
      font-size: 20px;
  }

  #input-container {
      flex-direction: column;
  }

  #divisor-input {
      margin-right: 0;
      margin-bottom: 10px;
  }

  #submit-btn {
      width: 100%;
  }

  .homeBtn {
    position: absolute;
    top: 90px; /* Adjust the top position as needed */
    left: 10px;
    z-index: 1;
  
  
  }
  #imgbtn {
    height: 50px;
    width: 50px;
  }
  #game-board {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px dashed black;
    padding: 30px;
    max-width: 600px;
    width: 84%;
}

}
@media (max-width: 480px) {
  /* Styles for screens with a maximum width of 480px (smartphones) */
  .container {
    max-width: 95%;
    padding: 0.5rem;
  }

  .modal-content {
    width: 75%;
    margin: 40% auto;
  }

  .modal-content p {
    font-size: 16px;
  }

  .modal-header img {
    max-width: 50%;
  }

  .modal-content iframe {
    height: 150px;
    width: 350px;
  }
}
