body {

    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('purple-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: "Poppins", sans-serif;
    overflow: hidden;
    font-size: 24px;
}

.game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 2px dashed black;
    height: 600px;
    width: 600px;
    padding-right: 70px;
    margin-left: 32%;
    margin-top: 2%;

}

#board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 100px;
    align-items: center;



}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
    background: #ccc;
    font-size: 4rem;
    cursor: pointer;
    user-select: none;
 
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
    font-family: "Poppins", sans-serif;
    
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 600px;
    text-align: center;
    border-radius: 20px;
    border: 2px dashed black;
    font-family: "Poppins", sans-serif;
}

#answerInput {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

#submitAnswer {
   
    cursor: pointer;
    width: 164px;
    height: 40px;
    background-color: #d1ae45;
    border: none;
    border-radius: 5px;
    font-size: 24px;
text-align: center;

}
#hashText {
    
    font-size: 40px;
    font-weight: bolder;
    color: #ffffff; /* Your chosen color */
    text-transform: uppercase;
    letter-spacing: 2px;
   
    text-shadow: -1px -1px black,
    1px -1px black,
    -1px 1px black,
    -1px -1px black;
    margin-top: 5%;
 
    text-align: center;
}
/* Game Over Modal Styles */
#gameOverModal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.4); 
    font-family: "Poppins", sans-serif;
}

#gameOverModal .modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 300px;
    text-align: center;
    border-radius: 20px;
    border: 2px dashed black;
    font-family: "Poppins", sans-serif;
}

#restartGameOver {
    padding: 10px 20px;
    cursor: pointer;
    width: 164px;
    height: 40px;
    background-color: #d1ae45;
    border: none;
    border-radius: 5px;
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    
}
.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;
  }
  .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;
   }

/* Mobile Styles */
@media (max-width: 600px) {
    .game-container {
        height: auto;
        width: auto;
        margin: 0;
        padding: 10px;
        border-radius: 10px;
        border: 1px dashed black;
    }

    #board {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 10px;
    }

    .cell {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 15px;
    }

    #submitAnswer, #restartGameOver {
        width: 100%;
        height: 40px;
        font-size: 1rem;
    }
    @media (max-width: 600px) {
        #hashText {
            font-size: 2rem;
            margin-top: 249px;
        }
    }

    .homeBtn, .howToPlayBtn {
        top: 5px;
        left: 5px;
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* Tablet Styles */
@media (min-width: 601px) and (max-width: 768px) {
    .game-container {
        height: 500px;
        width: 500px;
        margin: 0;
        padding: 15px;
        border-radius: 15px;
        border: 1px dashed black;
    }

    #board {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 20px;
    }

    .cell {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .modal-content {
        width: 80%;
        margin: 15% auto;
        padding: 20px;
    }

    #submitAnswer, #restartGameOver {
        width: 100%;
        height: 40px;
        font-size: 1.2rem;
    }

    #hashText {
        font-size: 2rem;
        margin-top: 10px;
    }

    .homeBtn, .howToPlayBtn {
        top: 10px;
        left: 10px;
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .game-container {
        height: 600px;
        width: 600px;
        margin-left: 32%;
        margin-top: 2%;
        padding: 20px;
        border-radius: 20px;
        border: 2px dashed black;
    }

    #board {
        grid-template-columns: repeat(3, 100px);
        grid-template-rows: repeat(3, 100px);
        gap: 100px;
    }

    .cell {
        width: 150px;
        height: 150px;
        font-size: 4rem;
    }

    .modal-content {
        width: 80%;
        max-width: 600px;
        margin: 15% auto;
        padding: 20px;
    }

    #submitAnswer, #restartGameOver {
        width: 164px;
        height: 40px;
        font-size: 24px;
    }

    #hashText {
        font-size: 40px;
        margin-top: 5%;
    }

    .homeBtn, .howToPlayBtn {
        top: 25px;
        left: 10px;
        padding: 15px;
        font-size: 16px;
    }
}
@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;
    }
}