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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.ad-container {
    margin: 20px 0;
    text-align: center;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    overflow: hidden;
}

.top-ad {
    width: 100%;
    min-height: 90px;
    max-width: 970px;
    margin: 0 auto;
}

.game-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.side-ad {
    display: none;
    width: 160px;
    min-height: 600px;
    position: relative;
}

.side-ad ins {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#gameCanvas {
    background-color: #fff;
    border: 2px solid #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.game-ui {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.mobile-controls {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    gap: 20px;
}

.mobile-controls button {
    width: 60px;
    height: 60px;
    font-size: 24px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #333;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-controls button:active {
    background-color: rgba(200, 200, 200, 0.8);
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .side-ad {
        display: block;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .game-container {
        padding: 10px;
    }

    .mobile-controls {
        display: flex;
    }

    #gameCanvas {
        width: 100%;
        height: auto;
    }
} 