/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;900&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* font-family: 'Poppins', sans-serif; */
  font-family: 'Rubik', sans-serif;
}
body{
  display: flex;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  /* background: #96E2EC; */
  
  background-image: url(water-bg.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;  
}
.container{

  width: 500px;
  border-radius: 7px;
  background: #ffffff;
  /* box-shadow: 0 10px 20px rgba(0,0,0,0.08); */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.container h2{
  font-size: 25px;
  font-weight: 500;
  padding: 16px 25px;
  border-bottom: 1px solid #ccc;
  text-align: center;
}

.startArea {
 display: flex;
 justify-content: center;
 align-items: center;
}

.startBtn {
  border: none;
  outline: none;
  color: #fff;
  cursor: pointer;
  margin: 15px;
  padding: 10px 0;
  font-size: 17px;
  border-radius: 5px;
  width: calc(100% / 2 - 8px);
  transition: all 0.5s ease;
  background: #1b5fde;

}

.startBtn:hover{
  background: #3A7CBF;
}


.container .content{
  display: none; 
  margin: 25px 20px 35px;
}
.content .word{
  user-select: none;
  font-size: 31px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 24px;
  margin-right: -24px;
  /* word-break: break-all; */
  text-transform: uppercase;
}
.content .details{
  margin: 25px 0 20px;
}
.details p{
  font-size: 18px;
  margin-bottom: 10px;
}
.details p b{
  font-weight: 500;
}
.content input{
  width: 100%;
  height: 60px;
  outline: none;
  padding: 0 16px;
  font-size: 18px;
  border-radius: 5px;
  border: 1px solid #bfbfbf;
}
.content input:focus{
  box-shadow: 0px 2px 4px rgba(0,0,0,0.08);
}
.content input::placeholder{
  color: #aaa;
}
.content input:focus::placeholder{
  color: #bfbfbf;
}
.content .buttons{
  display: flex;
  margin-top: 20px;
  justify-content: space-between;
}
.buttons button{
  border: none;
  outline: none;
  color: #fff;
  cursor: pointer;
  padding: 15px 0;
  font-size: 17px;
  border-radius: 5px;
  width: calc(100% / 2 - 8px);
  transition: all 0.3s ease;
}
.buttons button:active{
  transform: scale(0.97);
}
.buttons .refresh-word{
  background: #6C757D;
}
.buttons .refresh-word:hover{
  background: #5f666d;
}
.buttons .check-word{
  background: #1b5fde;
}
.buttons .check-word:hover{
  background: #3A7CBF;
}



/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  padding-top: 300px;

}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}


.modal-wrong {
border: 2px solid red;
}

.modal-correct {
  border: 2px solid green;
  }

/* The Close Button */
.close {
  /* color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold; */
  float: right;
  width: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  cursor: pointer;
  border-radius: 0.25rem;
  background-color: lightgray;

  
}
.close:hover {
  background-color: darkgray;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.score-area {
  padding-top: 15px;
  font-size: 18px;
  color: black;
}

.score {
 color: #3571AE;
}

@media screen and (max-width: 470px) {
  .container h2{
    font-size: 22px;
    padding: 13px 20px;
  }
  .content .word{
    font-size: 26px;
    letter-spacing: 20px;
    margin-right: -20px;
  }
  .container .content{
    margin: 20px 20px 30px;
  }
  .details p{
    font-size: 16px;
    margin-bottom: 8px;
  }
  .content input{
    height: 55px;
    font-size: 17px;
  }
  .buttons button{
    padding: 14px 0;
    font-size: 16px;
    width: calc(100% / 2 - 7px);
  }
}


/* how to play */
.modal1 {
  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-content1 {
  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-content1 p {
  font-size: 24px;
  color: #000000;
  margin-bottom: 20px;
}
.modal-content1 .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-content1 .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;
} */

.close1 {
  font-family: "Poppins", sans-serif;
  /* color: #8460de; */
  color: black;
  float: right;
  font-size: 24px;
  font-weight: bold;
}

.close1:hover,
.close1:focus {
  font-family: "Poppins", sans-serif;
  color: black;
  text-decoration: none;
  cursor: pointer;
}


.modal-header1 {
  text-align: center;
  margin-bottom: 10px;
}

.modal-header1 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-content1 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;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .modal-content1 {
      width: 85%; /* Increase the width on smaller screens */
      margin: 10% auto; /* Adjust the margin */
      padding: 15px; /* Reduce padding */
      font-size: 14px; /* Adjust font size */
      margin-top: 300px;
  }
}