body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
    overflow-x: hidden;
}

.anime-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.anime {
    position: relative;
    margin: 20px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(253, 130, 255, 0.1);
    transition: transform 0.3s ease;
    user-select: none;
    cursor: pointer;
}

/* .anime img {
    width: 262px;
    height: 379px;
    height: auto;
    border-radius: 10px;

} */

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    color: white;
    transition: 0.5s ease;
    opacity: 0;
    transform: translateY(100%);
}

.anime:hover .overlay {
    opacity: 1;
    transform: translateY(0%);
}

.overlay h2,
.overlay p,
.anime-name {
    margin: 0;
    color: white;
}

.overlay h2 {
    font-size: 1.2em;
    width: 100%;
}

.overlay p {
    font-size: 0.9em;
}

.anime-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px;
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
}

.anime-thumbnail {
    background-size: cover !important;
    background-position-x: center !important;
    background-position-y: center !important;
    background-repeat: no-repeat !important;

    width: 262px;
    height: 397px;
    border-radius: 10px;
}

h1 {
    text-align: center;
    color: #ffffff;
    padding-bottom: 20px;
    border-bottom: 1px solid #ffffff;
    margin-bottom: 20px;
    width: 40%;
}

@media screen and (max-width: 800px) {

    .anime-name {
        font-size: 1em;
    }

    .anime-thumbnail {
        width: 300px;
        height: 450px;
    }

    .overlay h2 {
        font-size: 1em;
    }

    .overlay p {
        font-size: 0.8em;
    }

    .anime.visible {
        transform: translateY(-5px);

        .overlay {
            opacity: 1;
            transform: translateY(0%);
        }
    }

}

@media screen and (min-width: 801px) {
    .anime:hover {
        transform: translateY(-5px);
    }
}