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

body {
    background-color: #121212;
    color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://source.unsplash.com/random/1920x1080/?gaming');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: filter 0.5s ease;
}

body:hover .background-image {
    filter: blur(5px);
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.game-button {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    perspective: 1000px;
}

.polaroid {
    background: white;
    padding: 15px 15px 30px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.game-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
    border-radius: 2px;
}

.game-title {
    font-size: 18px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-button:hover {
    z-index: 10;
}

.game-button:hover .polaroid {
    transform: scale(1.05) rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive design */
@media (max-width: 900px) {
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .button-grid {
        grid-template-columns: 1fr;
    }
}

