/* Font Import */
@font-face {
    font-family: 'Press Start 2P';
    src: url('press-start-2p.woff2') format('woff2');
}

/* General Styles */
body {
    margin: 0;
    font-family: 'Press Start 2P', sans-serif;
    background-color: #222;
    color: #fff;
    text-align: center;
    line-height: 1.5;
}

/* Header */
.header {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 30px 10px;
    border-bottom: 3px solid white;
    animation: pulse 1s infinite alternate;
            box-shadow: 0 0 15px rgba(52, 152, 219, 1),
                        0 0 30px rgba(52, 152, 219, 0.7),
                        0 0 50px rgba(52, 152, 219, 0.5);
}

.header h1 {
    font-size: 48px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    animation: neon 1.5s ease-in-out infinite alternate;
}

.header p {
    font-size: 18px;
    margin: 5px 0 0;
    animation: neon 1.5s ease-in-out infinite alternate;
}

/* Neon Glow Animation */
@keyframes neon {
    0% {
        text-shadow: 0 0 5px cyan, 0 0 10px pink, 0 0 20px lime;
    }
    100% {
        text-shadow: 0 0 10px yellow, 0 0 20px orange, 0 0 30px violet;
    }
}

/* Main Content */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: #111;
    border: 2px solid cyan;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px cyan;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
}

.card:hover {
    transform: scale(1.10);
    box-shadow: 0 4px 50px lightblue;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: fill;
    border: 2px solid cyan;
}

.card-title {
    font-size: 15px;
    color: cyan;
    margin: 15px 0 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.card-description {
    font-size: 10px;
    color: #ccc;
    margin: 0 0 15px;
    line-height: 2;
    background: linear-gradient(45deg, 
        #ffb3ba, #ffdfba, #ffffba, #baffc9, #bae1ff, #d4baff, 
        #ffb3ba, #ffdfba, #ffffba, #baffc9, #bae1ff, #d4baff, 
        #ffb3ba, #ffdfba, #ffffba, #baffc9, #bae1ff, #d4baff, 
        #ffb3ba, #ffdfba, #ffffba, #baffc9, #bae1ff, #d4baff);
    background-size: 300% 300%; 
    -webkit-background-clip: text; 
    color: transparent; 
    animation: gradientAnimation 6s linear infinite; 
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}




.card-button {
    background-color: cyan;
    color: #000;
    border: 2px solid cyan;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    bottom: 0%;
}

.card-button:hover {
    background-color: white;
    color: #000;
    border-color: white;
    box-shadow: 0 0 10px white, 0 0 20px white;
}

/* Footer */
.footer {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    border-top: 3px solid white;
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 2;
    animation: pulse 1s infinite alternate;
            box-shadow: 0 0 15px rgba(52, 152, 219, 1),
                        0 0 30px rgba(52, 152, 219, 0.7),
                        0 0 50px rgba(52, 152, 219, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 15px rgba(52, 152, 219, 1),
                    0 0 30px rgba(52, 152, 219, 0.8),
                    0 0 50px rgba(52, 152, 219, 0.4);
    }
    100% {
        box-shadow: 0 0 25px rgba(52, 152, 219, 1),
                    0 0 50px rgba(52, 152, 219, 0.8),
                    0 0 75px rgba(52, 152, 219, 0.3);
    }
}

.footer p{
    animation: neon 1.5s ease-in-out infinite alternate;
}

/* Style for the Return to Home Button in Top Left Corner */
#restart-btn {
    font-family: 'Press Start 2P', sans-serif;
    font-size: 24px;
    font-weight: bold;
    padding: 12px 24px;
    background-color: #ff6b6b;  
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    position: absolute;  
    top: 10px;  
    left: 10px;  
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#restart-btn:hover {
    background-color: #f7c8b0;  
    transform: scale(1.1);  
}

#restart-btn:active {
    background-color: #ff6b6b;  
    transform: scale(0.95);  
}

/* Style for the Return to Home Button in Top Left Corner */
#full-screen-btn {
    font-family: 'Press Start 2P', sans-serif;
    font-size: 24px;
    font-weight: bold;
    padding: 12px 24px;
    background-color: #ff6b6b;  
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    position: absolute;  
    top: center;  
    right: center;  
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#full-screen-btn:hover {
    background-color: #f7c8b0;  
    transform: scale(1.1);  
}

#full-screen-btn:active {
    background-color: #ff6b6b;  
    transform: scale(0.95);  
}

.scale-down {
    transform: scale(0.8); /* Adjust the scale value as needed */
    transform-origin: top left;
}
