@import url('https://fonts.googleapis.com/css2?family=ABeeZee:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Londrina+Shadow&display=swap');
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ABeeZee', sans-serif;
    background-color: #121212; /* Dark background for modern theme */
    color: #E0E0E0; /* Light text for contrast */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Header Styles */
header {
    width: 100%;
    max-width: 1200px;
    background-color: #1E1E1E; /* Darker header */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-x, .score-o {
    font-size: 1.2em;
    font-weight: bold;
}

.score-x {
    color: #42A5F5; /* Blue for X */
}

.score-o {
    color: #EF5350; /* Red for O */
}

h1 {
    font-size: 1.8em;
    margin: 0;
    text-align: center;
    color: #FFFFFF;
}

/* Main Content Styles */
main {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 40px;
    flex-grow: 1;
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
}

.game-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 300px; /* Minimum width for mobile */
}

.grid {
    display: grid;
    gap: 5px;
    background-color: #1E1E1E;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.grid div {
    width: 60px;
    height: 60px;
    border: 2px solid #333; /* Darker borders */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    border-radius: 4px;
    color: #E0E0E0;
    background-color: #2C2C2C; /* Cell background */
}

.grid div:hover {
    background-color: #3A3A3A; /* Hover effect */
    transform: scale(1.05);
}

.turn-indicator {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #BBBBBB;
}

/* Settings Section Styles */
.settings-section {
    flex: 1;
    background-color: #1E1E1E;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 300px; /* Minimum width for mobile */
}

h2 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.setting-group {
    margin-bottom: 15px;
    margin-top: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #AAAAAA;
}

input {
    width: 100%;
    padding: 8px;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 1em;
    background-color: #2C2C2C;
    color: #E0E0E0;
}

/* Button Styles */
button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50; /* Green primary button */
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #388E3C; /* Darker green on hover */
}

/* Footer Styles */
footer {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-bottom: 20px;
}

footer button {
    width: auto;
    background-color: #757575; /* Gray for secondary buttons */
}

footer button:hover {
    background-color: #616161;
}

footer button:first-child {
    background-color: #FFC107; /* Yellow for restart */
    color: #333333;
}

footer button:first-child:hover {
    background-color: #FFA000;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        gap: 20px;
    }

    header {
        padding: 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    .grid div {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }

    .settings-section {
        padding: 15px;
    }

    footer {
        flex-direction: column;
        gap: 10px;
    }

    footer button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .grid {
        gap: 3px;
        padding: 5px;
    }

    .grid div {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }

    input, button {
        font-size: 0.9em;
    }
}

.header-logo-text{
    font-family: "Londrina Shadow", sans-serif;
}