* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a;
    min-height: 100vh;
    overflow: hidden;
    position: relative; /* For absolute positioning of side ads */
    visibility: visible !important;
}

.layout-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: calc(100% - 320px);
    margin: 0 auto;
}

.central-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
}

.game-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}

.ad-container {
    background-color: green;
}

.side-ad {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 160px;
}

.left-ad {
    left: 0;
}

.right-ad {
    right: 0;
}

.top-ad {
    display: none;
}

#gameCanvas {
    background-color: red;
    display: block;
    width: 100%;
    height: 100vh;
    aspect-ratio: 1/1;
    object-fit: contain;
}

/* Mobile layout */
@media (max-width: 900px) {
    body {
        display: flex;
        flex-direction: column;
        height: 100vh;
    }

    .layout-container {
        width: 100%;
        margin: 0;
        padding: 0;
        align-items: flex-start;
        height: calc(100vh - 64px);
    }
    
    .side-ad {
        display: none;
    }
    
    .top-ad {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 64px;
        z-index: 1000;
    }
    
    .central-column {
        height: 100%;
    }
    
    .game-container {
        height: 100%;
        margin-top: 64px;
    }
    
    #gameCanvas {
        width: 100%;
        height: 100%;
        aspect-ratio: 1/1;
        object-fit: contain;
    }
}