:root {
    --primary-color: #4CAF50;
    --secondary-color: #FFC107;
    --bg-color: #f9f9f9;
    --text-color: #333;
    --card-bg: #fff;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --card-hover: 0 8px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] {
    --primary-color: #66BB6A;
    --secondary-color: #FFCA28;
    --bg-color: #1a1a1a;
    --text-color: #f9f9f9;
    --card-bg: #2d2d2d;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    --card-hover: 0 8px 16px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--primary-color);
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    border: 3px solid transparent;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover);
    border-color: var(--secondary-color);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.game-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--primary-color);
    font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        gap: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
} 