@font-face {
    font-family: 'Feast of Flesh BB';
    src: url('./Feast%20of%20Flesh%20BB%28RUS%20BY%20LYAJKA/feastoffleshbbrusbylyajka.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

@keyframes levitate {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes levitate-island {
    0%, 100% {
        transform: translateX(-45%) scale(0.43) translateY(0);
    }
    50% {
        transform: translateX(-45%) scale(0.43) translateY(-12px);
    }
}

body {
    font-family: 'Feast of Flesh BB', cursive;
    min-height: 100vh;
    background: url('pictures/background.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
    overflow-x: hidden;
    position: relative;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100vh;
    padding: 32px 64px;
    gap: 64px;
}

/* Left section - split into top (title) and bottom (model) */
.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding-top: 0;
}

.main-title-image {
    max-width: 560px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: levitate 3s ease-in-out infinite;
}

.subtitle-image {
    margin-top: 12px;
    max-width: 320px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: levitate 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Island Image */
.model-container {
    position: relative;
    margin-top: 0;
    flex-grow: 1;
    width: 100%;
    min-height: 320px;
}

.island-image {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-45%) scale(0.43);
    transform-origin: bottom center;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    z-index: 1;
    animation: levitate-island 4s ease-in-out infinite;
}

/* Right section - Games grid */
.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 680px;
}

.game-card {
    background: transparent;
    border-radius: 16px;
    padding: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: levitate 3s ease-in-out infinite;
}

.game-card:nth-child(1) { animation-delay: 0s; }
.game-card:nth-child(2) { animation-delay: 0.3s; }
.game-card:nth-child(3) { animation-delay: 0.6s; }
.game-card:nth-child(4) { animation-delay: 0.9s; }
.game-card:nth-child(5) { animation-delay: 1.2s; }
.game-card:nth-child(6) { animation-delay: 1.5s; }

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.bottom-image {
    margin-top: 32px;
    max-width: 240px;
    height: auto;
    animation: levitate 3s ease-in-out infinite;
    animation-delay: 1s;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding: 30px;
        gap: 40px;
    }

    .left-section {
        align-items: center;
        text-align: center;
    }

    .main-title {
        align-items: center;
    }

    .model-container {
        max-width: 100%;
        height: 350px;
        margin: 0 auto;
    }

    .right-section {
        align-items: center;
    }

    .games-grid {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .game-card {
        padding: 25px 30px;
        border-radius: 40px;
    }

    .game-title {
        font-size: 1.5rem;
    }

    .bottom-text {
        font-size: 1.6rem;
    }

    .main-title span {
        font-size: 2.5rem;
    }

    .model-container {
        height: 280px;
    }
}
