/* Genre Results */

.watchlist-container h1,
.genre-container h1 {
    display: flex;
    justify-content: center;
    margin: 2rem 0 1rem 0;
    padding: 0 2rem;
    color: #d8c078;
    font-size: 2.5rem;
}

.watchlist-content,
.genre-content {
    display: grid;
    padding: 1rem;
}
.card-desktop,
.card-mobile {
    justify-content: center;
    overflow: hidden;
}

.genre-content .card-desktop,
.person-content .card-desktop {
    transition: all 300ms ease;
}

.genre-content .card-desktop > img,
.person-content .card-desktop > img {
    margin: 1rem;
    border-radius: 1rem;
}

.genre-content .card-desktop:hover,
.person-content .card-desktop:hover {
    transform: scale(1.1);
}

.load-btn {
    display: flex;
    width: 100%;
    height: 450px;
    position: absolute;
    transform: translateY(-250px);
    margin: 1rem 0;
    background: linear-gradient(0deg, rgb(10, 10, 10) 50%, transparent);
    justify-content: center;
}

.load-btn button {
    display: flex;
    /* margin-top: 5rem; */
    position: absolute;
    padding: .5rem 1rem;
    font-size: 1rem;
    color: white;
    font-weight: 500;
    width: 100%;
    height: 100%;
    border: none;
    background: linear-gradient(0deg, black, transparent 80%);
    /* backdrop-filter: blur(5px); */
    border-radius: 20px;
    cursor: pointer;
    justify-content: center;
}

.load-btn button:hover {
    background: linear-gradient(0deg, black 40%, transparent 80%);
}

.load-btn h4 {
    text-shadow: 0 8px 10px black;
    margin-top: 5rem;
    font-size: 2rem;
    transition: all 300ms ease;
}

.load-btn h4:hover {
    font-size: 2.2rem;
    text-shadow: 0 10px 10px black;
}

@media screen and (max-width: 768px) {
    .watchlist-content,
    .genre-content {
        grid-template-columns: 33% 33% 33%;
    }
}

@media screen and (min-width: 768px) {
    .watchlist-content,
    .genre-content {
        grid-template-columns: 25% 25% 25% 25%;
    }
}

@media screen and (min-width: 1200px) {
    .watchlist-content,
    .genre-content {
        grid-template-columns: 20% 20% 20% 20% 20%;
    }
}

/* Person Results */

.person-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.person-profile {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 3rem;
    /* max-width: 900px; */
    background: #151515;
    border-radius: 12px;
}

.profile-left-container {
    display: flex;
    justify-content: center;
    width: 40%;
    align-items: center;
}

.person-profile-image {
    display: flex;
    justify-content: center;
}

.person-profile-image img {
    aspect-ratio: 2 / 3;
    width: 70%;
    margin: 2rem;
    border-radius: 12px;
}

.profile-right-container {
    width: 50%;
    height: 100%;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-right-container h1 {
    color: #d8c078;
    padding-bottom: 1rem;
}

.person-details p {
    color: white;
}

.person-details-top-section {
    padding-bottom: 1rem;
}

.person-content {
    display: grid;
    justify-content: center;
    grid-template-columns: 25% 25% 25% 25%;
    padding: 3rem;
    margin: 1rem;
    gap: .5rem;
}

.person-details-bottom-section {
    display: flex;
    flex-direction: row;
}

.person-pob {
    padding-right: 1rem;
}

@media screen and (max-width: 768px) {
    .person-profile {
        flex-direction: column;
        margin: 3rem 4rem;
    }

    .profile-left-container {
        width: 100%;
    }

    .person-profile-image img {
        width: 80%;
        margin: 2rem 2rem 1rem 2rem;
    }

    .profile-right-container {
        width: 80%;
        padding: 1rem 0 2rem 0;
        text-align: center;
    }

    .person-details-bottom-section {
        flex-direction: column;
    }

    .person-pob {
        padding-right: 0;
        padding-bottom: 1rem;
    }
}

/* Movie/TV Results */

.page-title {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.page-title h1 {
    display: flex;
    justify-content: center;
    color: #d8c078;
    font-size: 2.5rem;
}

@media screen and (min-width: 1600px) {
    .page-title {
        height: 250px;
    }
    
}

/* Category Page */

.main-categories {
    padding: 0 1rem;
    margin: auto;
    transition: all 300ms ease;
}

.categories-container {
    max-width: 1440px;
}

.toggle-container {
    height: 50px;
    padding: 0 2rem;
    margin: 1rem 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.toggle-container .toggle-button {
    color: #e3d2a1;
    font-weight: 500;
    background: rgb(24 23 23);
    border: 2px solid rgb(34 34 34 / 50%);
    height: 40px;
    padding: 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-container .toggle-button:hover {
    background: rgb(30 30 30) !important; 
}

.toggle-container .activeToggle:hover {
    background: rgb(45 45 45) !important; 
}

.activeToggle {
    background: rgb(41 41 41) !important;
}

.toggle-container input {
    display: none;
}

.type-options .toggle-button:nth-child(1) {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.type-options .toggle-button:nth-child(2) {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.genre-options label[id="genreOptions"] {
    border-radius: 8px;
    margin-right: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px 2px rgba(10, 10, 10, .5);
}

.genre-options {
    height: 256px;
    width: 500px;
    flex-wrap: wrap;
}

.categories {
    display: grid;
    grid-template-columns: 50% 50%;
}

.categories li {
    opacity: 0;
    margin: 3rem;
    transition: all 300ms ease;
}

.categories li:hover {
    transform: scale(1.1);
}

.categories-img {
    width: 100%;
    border-radius: 20px;
    opacity: .8;
    transition: all 300ms ease;
}

.categories li:hover .categories-img {
    opacity: 1;
}

.category-text-container {
    display: flex;
    position: absolute;
    height: 80px;
    transform: translateY(-65px) translateX(-10px);
    align-items: flex-end;
}

.category-text-container h4{
    color: #ffe9a6;
    font-size: 2rem;
    text-shadow: 0px 2px 10px rgba(10, 10, 10, .5);
    transition: all 300ms ease;
}

.categories li:hover .category-text-container h4{
    color: #fddc7a;
    text-shadow: 0px 2px 10px rgba(10, 10, 10, .8);
}

.card-desktop .card-title {
    text-shadow: 0px 2px 10px rgba(10, 10, 10, .8);
}

@media screen and (max-width: 400px) {
    .categories {
        grid-template-columns: 100%;
    } 
}

@media screen and (min-width: 400px) {
    .categories {
        grid-template-columns: 100%;
    } 
}

@media screen and (min-width: 576px){
    .categories {
        grid-template-columns: 50% 50%;
    } 
    .categories li {
        margin: 2rem;
    }
}

@media screen and (min-width: 768px) {

    .categories li {
        margin: 3rem;
    }
}

@media screen and (min-width: 1200px) {
    .main-categories {
        padding: 0 4rem;
        margin: auto;
    }
    .categories {
        grid-template-columns: 33% 33% 33%;
    }
    .categories li {
        margin: 2rem;
    }
}

@media screen and (min-width: 1600px) {
    .main-categories {
        padding: 0 5rem;
        margin: auto;
    }
    .category-text-container h4{
        font-size: 2.5rem;
    }
}

/* randomGen */

.results-container {
    width: 100%;
    height: 550px;
    aspect-ratio: 16 / 9;
    margin: 1rem 0;
}

.control-panel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 400px;
}

.control-panel-card {
    background: rgba(16, 16, 16, .8);
    border-radius: 20px;
    padding: 2rem;
    transform: scale(.7) translateY(-100px);
}

.control-panel-card .type-options .toggle-button {
    flex-grow: 1;
    justify-content: center;
}

.control-panel-container h2 {
    color: #fff3cf;
    text-align: center;
    margin: auto;
    /* padding: 1rem; */
}

.control-panel-container h4 {
    color: #fff3cf;
    text-align: center;
    margin: auto;
    padding: .5rem;
}

.control-panel {
    color: white;
    text-align: center;
}

.control-panel .toggle-container {
    justify-content: center;
    height: auto;
}

.control-panel h2,
.control-panel div {
    padding: 0 0 1rem 0;
}

.results-slider {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
    padding: 0 4rem;
}

.results-card {
    position: relative;
    width: auto;
    aspect-ratio: 16 / 9;
    margin: auto;
    height: 100%;
    align-items: center;
    transform: scale(.95);
    transition: all 300ms ease;
}

.results-card:hover {
    transform: scale(1);
}

/* .random-movie-container .results-card {
    height: 512px;
} */

.results-card .img-container img {
    border-radius: 10px;
}

.random-movie-container .logo-container img {
    width: 75%;
}

.random-movie-container .results-card .img-container {
    margin: 1.2rem;
    width: max-content;
}

.results-card .img-container {
    margin: 1.5rem;
}

.randomize-button {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: .1rem;
    color: white;
    background: rgba(25, 25, 25, 1);
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    transition: all 300ms ease;
}

.randomize-button:hover {
    background: rgba(35, 35, 35, 1);
}

@media  screen and (max-width: 768px) {
    .results-container,
    .results-container .card-mobile {
        height: auto;
    }

    .results-card {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9 !important;
        padding: 2rem;
        height: 100%;
    }

    .random-movie-container .logo-container img {
        width: 35%; 
    }

    .logo-container {
        padding: 2rem;
    }

    .genre-options {
        width: 100%;
    }

    .results-slider {
        grid-template-columns: 100%;
        padding: 0 1rem;
    }

    .random-movie-container .results-card .img-container {
        margin: 2rem;
    }

    .control-panel-container {
        height: 475px
    }

    .control-panel-card {
        transform: scale(.8) translateY(-100px);
    }

    .page-title {
        height: 0px;
    }

    .control-panel .toggle-container .toggle-button {
        font-size: .7rem;
    }
}

@media screen and (min-width: 768px) {
    .results-container {
        height: 350px;
        /* height: auto; */
    }

    /* .results-card {
        padding: 2rem;
    } */

    .results-slider {
        display: grid;
        grid-template-columns: 50% 50%;
        padding: 0 4rem;
    }
    
    .control-panel-card {
        margin-top: 3rem;
        max-width: 800px;
        transform: scale(.8) translateY(-100px);
        /* transform: scale(.7) translateY(-150px); */
    }

    .genre-options {
        width: 100%;
    }
}

@media screen and (min-width: 1200px) {
    .results-container {
        height: 425px;
    }

    .control-panel-container {
        height: auto;
    }

    .results-card {
        height: 100%;
    }

    .random-movie-container .logo-container img {
        width: 50%;
    }

    .results-slider {
        display: grid;
        grid-template-columns: 25% 25% 25% 25%;
        padding: 0 4rem;
    }
    
}

@media screen and (min-width: 1800px) {

    .control-panel-card {
        position: absolute;
        left: 0;
        top: 0;
        margin-top: 10rem;
        width: 550px;
    }

    .control-panel-container {
        height: auto;
    }

    .results-card {
        height: 100%;
    }

    .random-movie-container .logo-container img {
        width: 50%;
    }

    .results-slider {
        display: grid;
        grid-template-columns: 25% 25% 25% 25%;
        padding: 0 4rem;
    }
    
}