body {
    font-family: 'Press Start 2P', cursive;
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    overflow: hidden;
}

.page-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.left-section {
    flex: 0.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 50px;
    gap: 20px;
}

.menu-row {
    position: relative;
    margin-bottom: 20px;
}

.menu-title {
    font-size: 48px;
    color: #888;
    margin: 0 0 10px 0;
    animation: titleSway 3s ease-in-out infinite;
}

.menu-row:nth-child(1) .menu-title { animation-delay: 0s; }
.menu-row:nth-child(3) .menu-title { animation-delay: 1s; }
.menu-row:nth-child(5) .menu-title { animation-delay: 2s; }

.menu-link {
    display: block;
    text-decoration: none;
    animation: sway 4s ease-in-out infinite;
}

.menu-row:nth-child(1) .menu-link { animation-delay: 0s; }
.menu-row:nth-child(2) .menu-link { animation-delay: 0.5s; }
.menu-row:nth-child(3) .menu-link { animation-delay: 1s; }
.menu-row:nth-child(4) .menu-link { animation-delay: 1.5s; }
.menu-row:nth-child(5) .menu-link { animation-delay: 2s; }

.menu-image {
    width: 200px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.menu-link:hover .menu-image {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.pokedex-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: white;
    display: block;
    padding: 25px 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.menu-link:hover .pokedex-text {
    transform: scale(1.05);
    color: #ffff99;
}

.right-section {
    flex: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.character-gif {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-gif img {
    width: 100%;
    height: auto;
    transform: scale(1.5);
    object-fit: contain;
}

@keyframes sway {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(15px); }
}

@keyframes titleSway {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(-20px); }
}

@media (max-width: 768px) {
    body {
        overflow: auto;
    }
    
    .page-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .left-section {
        flex: none;
        padding: 20px;
        gap: 15px;
        align-items: center;
    }
    
    .menu-title {
        font-size: 24px;
        text-align: center;
    }
    
    .menu-image {
        width: 150px;
    }
    
    .pokedex-text {
        font-size: 12px;
        width: 150px;
        text-align: center;
        padding: 20px 0;
    }
    
    .right-section {
        flex: none;
        height: 50vh;
        padding: 10px;
    }
    
    .character-gif img {
        transform: scale(1);
        max-height: 40vh;
    }
}
