/* Main styles for A-Games */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    position: fixed;
    font-family: "Comic Sans MS", sans-serif;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    overscroll-behavior: none;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #333333;
    border: 3px solid #666666;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    overflow-y: auto;
    max-height: 100vh;
    -webkit-overflow-scrolling: touch;
}

header {
    margin-bottom: 30px;
}

h1 {
    font-size: 48px;
    margin: 0;
    text-shadow: 3px 3px 5px #ff00ff;
    letter-spacing: 2px;
}

.tagline {
    font-size: 18px;
    color: #cccccc;
    margin-top: 10px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.game-card {
    background-color: #222222;
    border: 2px solid #555555;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    border-color: #ffffff;
}

.game-title {
    font-size: 24px;
    margin: 10px 0;
    color: #00ff00;
}

.game-description {
    font-size: 14px;
    color: #bbbbbb;
    margin-bottom: 15px;
}

.game-thumbnail {
    width: 100%;
    height: 150px;
    background-color: #444444;
    border: 1px solid #777777;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-thumbnail img {
    max-width: 100%;
    max-height: 100%;
}

.play-button {
    background: linear-gradient(to bottom, #00cc00, #008800);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-weight: bold;
    cursor: pointer;
    font-family: "Comic Sans MS", cursive, sans-serif;
}

.play-button:hover {
    background: linear-gradient(to bottom, #00ff00, #00cc00);
}

footer {
    margin-top: 40px;
    font-size: 12px;
    color: #888888;
}

.counter {
    margin-top: 20px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    color: #666666;
}

.blink {
    animation: blink-animation 1s steps(5, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

.marquee {
    background-color: #111111;
    padding: 5px 0;
    margin: 20px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@media (max-width: 850px) {
    .container {
        width: 95%;
        padding: 10px;
        border-width: 2px;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .game-card {
        padding: 10px;
    }
    
    .game-title {
        font-size: 20px;
    }
    
    .game-description {
        font-size: 13px;
    }
    
    .game-thumbnail {
        height: 120px;
    }
    
    .marquee {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 8px;
        border-radius: 6px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .tagline {
        font-size: 14px;
    }
    
    .game-card {
        padding: 8px;
    }
    
    .game-title {
        font-size: 18px;
        margin: 5px 0;
    }
    
    .game-description {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .game-thumbnail {
        height: 100px;
    }
    
    .play-button {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    footer {
        margin-top: 20px;
        font-size: 10px;
    }
    
    .counter {
        font-size: 10px;
    }
}
