/* Reset en basis styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.main-header {
    text-align: center;
    margin-bottom: 50px;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-header h1 {
    font-size: 3.5em;
    font-weight: bold;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.3em;
    color: #e0e6ff;
    font-weight: 300;
    opacity: 0.9;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.game-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 50px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.game-card:hover::before {
    transform: translateX(100%);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(255, 255, 255, 0.2) inset;
}

/* Stranger Things card styling */
.stranger-things {
    border-left: 5px solid #ff4757;
}

.stranger-things .game-icon {
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
}

.stranger-things .play-button {
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
}

.stranger-things .play-button:hover {
    background: linear-gradient(45deg, #ff3333, #ff5555);
}

/* Gorilla Jump card styling */
.gorilla-jump {
    border-left: 5px solid #4CAF50;
}

.gorilla-jump .game-icon {
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
}

.gorilla-jump .play-button {
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
}

.gorilla-jump .play-button:hover {
    background: linear-gradient(45deg, #45a049, #5cb85c);
}

.game-icon {
    font-size: 4em;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-info h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.game-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.feature {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.play-button {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.play-button:active {
    transform: translateY(0);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e6ff;
}

.disclaimer {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 0.9em;
    line-height: 1.4;
    color: #d0d6ff;
    backdrop-filter: blur(5px);
}

.disclaimer strong {
    color: #fff;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #e0e6ff;
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Modals */
.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
    transform: scale(1.1);
}

.modal-content h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.modal-content ul {
    list-style: none;
    padding-left: 0;
}

.modal-content li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.modal-content li:last-child {
    border-bottom: none;
}

.controls-section {
    margin-bottom: 25px;
}

.controls-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }

    .main-header h1 {
        font-size: 2.5em;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .game-card {
        padding: 20px;
    }

    .game-icon {
        width: 80px;
        height: 80px;
        font-size: 3em;
    }

    .game-info h2 {
        font-size: 1.8em;
    }

    .game-description {
        font-size: 1em;
    }

    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 2em;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .game-features {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        width: fit-content;
    }
}