/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to bottom right, #ff7e5f, #feb47b); /* Gradient background */
}

#welcome-screen {
    text-align: center;
}

#welcome-screen h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

#welcome-screen button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
}

.game-container {
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: white;
}

#status {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
    margin-bottom: 20px;
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    background-color: white;
    border: 1px solid #ccc;
    font-size: 2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cell:hover {
    background-color: #f9f9f9;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
}

#result-screen {
    position: fixed; /* Change to fixed positioning */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 100;
}

.hidden {
    display: none;
}

#result-message {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    #game-board {
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(3, 80px);
    }

    .cell {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }

    button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    #result-message {
        font-size: 1.2rem;
    }
}
