header {
    padding-top: 1em;
}

.search_icon {
    font-size: 2em;
    cursor: pointer;
}

#card_wrapper .card {
    margin: auto;
}

#addListWrapper .card {
    margin: auto;
}

#card_wrapper>div>img {
    height: 20em;
    object-fit: contain;
}

.fadeoutright {
    animation: fadeoutright 0.3s;
    animation-fill-mode: both;
}

@keyframes fadeoutright {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(10em) rotate(20deg);
    }
}

.fadeoutleft {
    animation: fadeoutleft 0.3s;
    animation-fill-mode: both;
}

@keyframes fadeoutleft {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(-10em) rotate(-20deg);
    }
}

.fadeinleft {
    animation: fadeinleft 0.3s;
    animation-fill-mode: both;
}

@keyframes fadeinleft {
    0% {
        opacity: 0;
        transform: translateY(10em);
    }

    100% {
        opacity: 1;
    }
}

.like,
.nope,
.trailer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    opacity: 0;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    font-size: 10em;
}

#swipeHint {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    font-size: 1.2em;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: hintPulse 1.5s infinite;
}

@keyframes hintPulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

#swipeHint.hide {
    animation: fadeOutHint 0.5s forwards;
}

@keyframes fadeOutHint {
    to {
        opacity: 0;
        pointer-events: none;
    }
}