﻿.browse-card-wrapper{
    width: auto;
    height: auto;
}

.anime-card-wrapper {
    position: relative;
    width: 250px;
    height: 450px;
}

.anime-card-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 450px;
    background: var(--card-background);
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-content: center;
    padding: 15px 10px 0px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: top 0.4s ease, left 0.4s ease, transform 0.4s ease, width 0.4s ease, height 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.card-can-hover {
    transition: 0.1s ease-out, box-shadow 0.2s;
}

.card-can-hover:hover {
    transform: scale(105%)
}

.anime-card-container.card-selected {
    transform: translate(calc(50vw - 50%), calc(50vh - 50%));
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 101;
}


.anime-card-img-container {
    width: 100%;
    height: auto;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .anime-card-img-container img {
        border-radius: 5px;
        height: 100%;
    }

.anime-card-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background-size: contain;
    background-position: center;
}

.anime-card-title-container {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.anime-card-title {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    background: var(--card-title-background);
    padding: 0 10px;
}


.anime-card-center {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(calc(50vw - 50%), calc(50vh - 50%)) scale(1.1);
}



.anime-card-details-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-content: center;

    background: var(--background);
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 700px) {
    .anime-card-wrapper {
        width: 100px;
        height: 200px;
    }

    .anime-card-container {
        width: 100px;
        height: 180px;
        padding: 10px 5px 0px 5px;
    }

    .anime-card-img-container {
        min-height: 50px;
    }

    .anime-card-title-container {
        width: 100%;
        height: 50px;
    }

    .anime-card-title {
        width: 100%;
        height: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 5px;
        text-align: center;
        font-size: 7px;
        font-weight: 800;
        background: var(--card-title-background);
        padding: 0 10px;
    }

    .anime-card-container.card-selected {
        display: none;
    }
}
