body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: 
        url("/static/img/gbp-bg.png") no-repeat center center fixed,
        url("/static/img/poke-patron.jpg") repeat;
    background-size: contain, 120px 120px;
}


.gba-frame {
    position: relative;
    width: 1152px; 
    height: 768px;
}

.intro {
    position: absolute;
    top: 180px;   
    left: 250px;
    width:630px;
    height: 420px;
    object-fit: cover;
    cursor: pointer;
    z-index: 2;
}

#pokedex-content {
    position: absolute;
    top: 145px;
    left: 128px;
    width: 896px;
    height: 512px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hidden {
    display: none;
}

form {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
form input, form button {
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #333;
}
form button {
    cursor: pointer;
    background: #4caf50;
    color: #ffffff;
    border: none;
    transition: background 0.3s ease, transform 0.2s ease;
}
form button:hover {
    background: #45a049;
    transform: scale(1.05);
}

.pokemon-info {
    margin-top: 20px;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #333;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    text-align: center;
    font-family: 'Press Start 2P', monospace; 
    color: #222;
    animation: fadeIn 0.5s ease-in-out;
}

.pokemon-info h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #e63946; 
    text-shadow: 1px 1px 0 #fff, 2px 2px 2px rgba(0,0,0,0.3);
}

.pokemon-info p {
    margin: 5px 0;
    font-size: 14px;
    letter-spacing: 1px;
}

.pokemon-info img {
    margin-top: 10px;
    width: 150px;
    height: 150px;
    image-rendering: pixelated;
    border: 2px solid #333;
    border-radius: 8px;
    background: #f1f1f1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


@keyframes swap {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.pokemon-info {
    animation: swap 0.4s ease-in-out;
}


.nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    width: 896px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none; 
}
.nav-arrows button {
    pointer-events: auto;
    background: linear-gradient(135deg, #2a9d8f, #21867a);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, background 0.3s ease;
}
.nav-arrows button:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, #3bc2aa, #2a9d8f);
}
.nav-arrows button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


#show-moves-btn {
    margin-top: 15px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #ff7b00, #ff5400);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, background 0.3s ease;
}
#show-moves-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #ff9d3c, #ff7b00);
}


#moves-list {
    margin-top: 15px;
    max-height: 220px;
    overflow-y: auto;
    text-align: left;
    background: linear-gradient(135deg, #f9f9f9, #eaeaea);
    padding: 15px;
    border-radius: 12px;
    border: 3px solid #444;
    font-size: 13px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-in-out;
}

#moves-list h3 {
    margin-top: 0;
    font-size: 16px;
    text-align: center;
    color: #2a9d8f;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #2a9d8f;
    padding-bottom: 5px;
}

#moves-list ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

#moves-list li {
    padding: 6px 8px;
    margin-bottom: 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-left: 4px solid #2a9d8f;
    font-family: monospace;
    transition: transform 0.15s ease, background 0.15s ease;
}

#moves-list li:hover {
    background: #2a9d8f;
    color: #fff;
    transform: translateX(4px);
    cursor: default;
}


#moves-list::-webkit-scrollbar {
    width: 8px;
}
#moves-list::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 10px;
}
#moves-list::-webkit-scrollbar-thumb {
    background: #2a9d8f;
    border-radius: 10px;
}
#moves-list::-webkit-scrollbar-thumb:hover {
    background: #21867a;
}
