/* সাধারণ স্টাইল (ডার্ক মোড) */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #1e1e2f;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

/* কনটেইনার */
.container {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

/* শিরোনাম */
h1 {
    font-size: 2.5em;
    color: #ffcc00;
    margin-bottom: 20px;
}

/* গেম মেনু */
.game-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-card {
    background: linear-gradient(135deg, #2c2c44, #3b3b5a);
    padding: 15px;
    color: #ffcc00;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.7);
}

/* ইনপুট এবং বোতাম */
input[type="number"] {
    width: 80%;
    max-width: 250px;
    padding: 10px;
    margin: 10px 0;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    outline: none;
    text-align: center;
    background-color: #3b3b5a;
    color: #ffffff;
}

.button {
    background-color: #ffcc00;
    color: #1e1e2f;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #ffd633;
}

/* Guess the Number গেম */
.game-box img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

.game-box p {
    font-size: 1em;
    color: #ffffff;
}

/* Tic Tac Toe */
.player-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
}

.player-red {
    color: red;
}

.player-blue {
    color: blue;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 20px auto;
    max-width: 300px;
}

.cell {
    background-color: #3b3b5a;
    color: #ffffff;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.cell:hover {
    background-color: #2c2c44;
}

.cell.X {
    color: red;
}

.cell.O {
    color: blue;
}

#winner {
    font-size: 1.5em;
    margin-top: 20px;
    color: #ffcc00;
}

/* Rematch Button Styling */
.rematch {
    display: none; /* শুরুতে লুকানো থাকবে */
    margin-top: 20px;
    background-color: #ffcc00;
    color: #1e1e2f;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.rematch:hover {
    background-color: #ffd633;
}

/* মডাল বক্সের জন্য স্টাইল */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    color: #1e1e2f;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
}

.modal-content h2 {
    margin-top: 0;
    color: #1e1e2f;
}

.modal-content p {
    font-size: 1em;
    line-height: 1.5;
    color: #1e1e2f;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5em;
    color: #1e1e2f;
    background: none;
    border: none;
    cursor: pointer;
}

.close-button:hover {
    color: red;
}