/* Base Styles - Foundation layout and typography */
/* =================================================== */

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #87CEEB, #4682B4);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

#gameCanvas {
    border: 3px solid #2F4F4F;
    background: #006994;
    display: block;
    margin: 0 auto;
}

button {
    background: #4682B4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

button:hover {
    background: #5F9EA0;
}

.ui {
    color: white;
    margin: 10px 0;
    font-size: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: none;
}

/* Promotional Banner */
.promotional-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #4CAF50;
    color: white;
    padding: 12px 50px 12px 20px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}

.promotional-banner.show {
    display: block !important;
}

.close-banner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-banner:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Adjust game container when banner is shown */
body.banner-shown .game-container {
    margin-top: 60px;
}