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

body {
    font-family: 'Inter', -apple-system, BlinkMacMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* Add this new footer section */
footer {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    letter-spacing: 0.7px;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-align: center;
    padding: 40px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

footer p {
    color: #64748b;
    line-height: 1.8;
}

footer p:first-child {
    margin-bottom: 8px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* Added for absolute positioning of thank you message */
}

header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 40px 0;
    text-align: center;
}

.thank-you-message {
    position: absolute;
    top: 10px; /* Adjust as needed */
    left: 20px; /* Matches container padding */
    font-size: 0.85rem;
    color: #64748b; /* Lighter text color */
    background: rgba(255, 255, 255, 0.5); /* Slightly translucent background */
    padding: 8px 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    z-index: 50; /* Ensure it's above other elements if necessary */
    max-width: 250px; /* Limit width */
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.thank-you-message .username {
    font-weight: 600;
    color: #0f172a; /* Darker to stand out */
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Space between logo and V2 text */
}

.logo-svg {
    height: 60px;
    width: auto;
}

.v2-logo-text {
    height: 40px; /* Adjust size as needed for the hand-drawn look */
    width: auto;
    transform: rotate(5deg) translateY(-5px); /* Slightly rotate and shift for a drawn effect */
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.2)); /* A little shadow for depth */
}

.tagline {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 20px; /* Add margin to separate from new banner */
}

/* New: Announcement Banner Style */
.announcement-banner {
    background-color: #fef08a; /* Yellowish background */
    color: #422006; /* Dark brown text for contrast */
    padding: 15px 25px;
    margin: 20px auto 0; /* Top margin from tagline, bottom margin for next element */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px; /* Limit width */
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid #eab308; /* Slightly darker yellow border */
}

.announcement-banner p {
    margin: 0; /* Remove default paragraph margin */
    padding: 0;
}

main {
    padding: 60px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.game-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    justify-content: center; /* Center children horizontally */
    align-items: center; /* Center children vertically */
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain */
    transition: transform 0.3s ease;
    object-position: center; /* Ensure proper centering */
}

.game-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 20px 20px 8px;
    color: #0f172a;
}

.game-card p {
    padding: 0 20px 20px;
    color: #64748b;
    font-size: 0.95rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    overflow: hidden; /* Ensures contents are clipped */
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #64748b;
    font-size: 35px;
    font-weight: 300;
    z-index: 1001;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #0f172a;
}

#game-container {
    width: 100%;
    height: 100%;
    overflow: auto; /* This is the scrollable area for the game */
    position: relative; /* Crucial for absolute positioning of game elements */
    background: #00000a; /* Base background for the game tab */
}

.new-project-button {
    background: linear-gradient(45deg, #10b981, #059669); /* Greenish gradient */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    margin-top: 15px; /* Space from tagline */
}

.new-project-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .logo-svg {
        height: 45px;
    }

    .v2-logo-text {
        height: 30px;
    }

    .tagline {
        margin-bottom: 15px; /* Adjust margin for mobile */
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        width: 98%;
        height: 95vh;
        margin: 1% auto;
    }

    .new-project-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}