body {
    font-family: Arial, sans-serif;
    background: #f0f4f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

h1 {
    margin-top: 40px;
    color: #333;
}

#game {
    background: #fff;
    padding: 30px 40px 20px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#board {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    gap: 10px;
    margin-bottom: 20px;
}

.cell {
    width: 80px;
    height: 80px;
    background: #e3eaf2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #2d6cdf;
    cursor: pointer;
    transition: background 0.2s;
}

.cell:hover {
    background: #d0d8e8;
}

#status {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #444;
    min-height: 24px;
}

#restart {
    padding: 8px 24px;
    font-size: 1rem;
    background: #2d6cdf;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

#restart:hover {
    background: #1b4e9b;
}

#adsense-placeholder {
    margin-top: 30px;
}

/* Header Styles */
.site-header {
    width: 100%;
    background: linear-gradient(90deg, #2d6cdf 0%, #4e9cff 100%);
    box-shadow: 0 2px 8px rgba(44, 108, 223, 0.08);
    padding: 0;
}
.header-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}
.logo-icon {
    font-size: 2rem;
    margin-right: 10px;
}
.logo-text {
    letter-spacing: 1px;
}
.nav-bar {
    display: flex;
    gap: 24px;
}
.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}
.nav-link:hover {
    color: #e3eaf2;
    border-bottom: 2px solid #fff;
}

/* Main Content */
.main-content {
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 0 16px 40px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#game-section {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 32px 0 24px 0;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
}

h1 {
    margin-top: 0;
    color: #2d6cdf;
    font-size: 2.2rem;
    letter-spacing: 1px;
}

#game {
    background: #f8fafc;
    padding: 24px 32px 16px 32px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(44, 108, 223, 0.06);
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#board {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    gap: 10px;
    margin-bottom: 20px;
}

.cell {
    width: 80px;
    height: 80px;
    background: #e3eaf2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #2d6cdf;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(44, 108, 223, 0.04);
}

.cell:hover {
    background: #d0d8e8;
    box-shadow: 0 2px 8px rgba(44, 108, 223, 0.10);
}

#status {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #444;
    min-height: 24px;
}

#restart {
    padding: 8px 24px;
    font-size: 1rem;
    background: #2d6cdf;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

#restart:hover {
    background: #1b4e9b;
}

.adsense-box {
    margin: 32px 0 32px 0;
    min-height: 90px;
    background: #f9f9f9;
    border: 1.5px dashed #b3c6e0;
    text-align: center;
    padding: 24px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.info-section {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(44, 108, 223, 0.06);
    padding: 28px 32px 20px 32px;
    margin-bottom: 24px;
}
.info-section h2 {
    color: #2d6cdf;
    margin-top: 0;
}
.info-section p, .info-section a {
    color: #444;
    font-size: 1.05rem;
}
.info-section a {
    color: #2d6cdf;
    text-decoration: underline;
}

/* Footer Styles */
.site-footer {
    width: 100%;
    background: #2d6cdf;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    margin-top: 0;
}
.footer-container {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Layout for sidebars and center content */
.layout-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto 0 auto;
    padding: 0 8px;
    width: 100%;
    box-sizing: border-box;
    min-height: 600px;
}
.sidebar {
    flex: 0 0 180px;
    min-width: 120px;
    max-width: 220px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.left-sidebar, .right-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}
.center-content {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sidebar-adsense {
    height: 100%;
    min-height: 400px;
    width: 100%;
    margin-bottom: 24px;
    margin-top: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #f9f9f9;
    border: 1.5px dashed #b3c6e0;
    border-radius: 10px;
    box-sizing: border-box;
}

/* Responsive: stack sidebars below on mobile */
@media (max-width: 900px) {
    .layout-container {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
    }
    .sidebar {
        flex-direction: row;
        flex: none;
        min-width: 0;
        max-width: 100%;
        margin: 0 0 16px 0;
        justify-content: center;
        height: auto;
    }
    .left-sidebar, .right-sidebar {
        margin: 0 0 16px 0;
        height: auto;
    }
    .sidebar-adsense {
        min-height: 120px;
        height: 120px;
    }
    #game-section {
        min-height: 300px;
    }
}

/* Existing styles below... */

/* Responsive Design */
@media (max-width: 600px) {
    .header-container, .main-content, .footer-container {
        padding-left: 8px;
        padding-right: 8px;
    }
    #board {
        grid-template-columns: repeat(3, 56px);
        grid-template-rows: repeat(3, 56px);
    }
    .cell {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    #game, .info-section {
        padding: 12px 6px 10px 6px;
    }
} 