*,
*::after,
*::before {
    box-sizing: border-box;
}



/* * {
    border: red solid 2px;
} */

u,
p {
    margin: 0;
}

html {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

}

/* scrollbar style change */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar:hover {
    cursor: auto;
    cursor: pointer;
}

::-webkit-scrollbar-track {

    border-radius: 22px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 22px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

:root {
    --slider-padding: 5rem;
}

:root {
    --text: #f8f7ff;
    --mainBackground: #022B3A;
    --containertext: #022B3A;
    --containerBackground: #f8f7ff;
    --color1: #ff99c8;
    --color2: #d0f4de;
    --color3: #fdfcdc;
    --overlay: rgba(225, 229, 242, 0.73);
}





body {
    margin: 0;
    background-color: var(--mainBackground);
    color: var(--text);
    font-family: 'Oswald', sans-serif;
    letter-spacing: .3rem;
    overflow: hidden;

}

/* main section */

.main-container {
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    width: 100%;
    /* margin-top: 9.5rem; */
    justify-content: center;
    flex-direction: column;
    align-items: center;

    position: relative;
    padding-bottom: 2rem;


}

/* search section  */
.search-element {
    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;
    width: 100%;
    transition: 500ms ease-in-out;
}

.search-element h1 {
    font-size: 5.5rem;
    color: var(--color2);
    text-align: center;
}

.search-element form {
    margin-top: 1rem;
}

.form-control {
    border-radius: 0;
    font-size: 1rem;
    outline: none;
    color: var(--text);

}

.form-control:focus {
    border-color: green;
    box-shadow: none;
}

#searchForm {
    height: 50px;
    display: flex;
    position: relative;

}


#searchForm button {
    border: var(--color2) solid 3px;
    color: var(--containertext);
    background-color: var(--containerBackground);
    transition: all 250ms ease-in-out;
    font-size: 1.5rem;
    padding: 0 1rem .2rem;
}

#searchForm button:hover {
    border: var(--text) solid 3px;
    color: var(--containerBackground);
    background-color: var(--containertext);
}

#searchForm input {
    width: 250px;
    /* margin-right: 1rem; */
    border: var(--color2) solid 3px;
    transition: all .4s ease-in-out;
    background-color: var(--mainBackground);
}

#searchForm input:hover,
#searchForm input:focus {
    color: black;
    border: var(--color3) solid 3px;
    background-color: white;
}

/* result type buttons */
#result-type-container {
    display: flex;
    margin: 1rem 0;
    padding: 0;
}

.result-btn {
    background-color: var(--containerBackground);
    color: var(--containertext);
    border: var(--containertext) solid 2px;
    list-style: none;
    padding: .5rem 1rem;
    cursor: pointer;
    font-size: 1.5rem;

}



.active,
.result-btn:hover {
    background-color: var(--containertext);
    color: var(--containerBackground);
    border: var(--containerBackground) solid 2px;
}

/* dropdown search list */

.search-list {
    position: absolute;
    width: 100%;
    right: 0;
    top: 100%;
    max-height: 300px;
    overflow-y: scroll;
    z-index: 10;
    height: none;
    flex-direction: column;
    align-items: center;
    display: none;
    opacity: 0;

    transition: 500ms ease-in-out;
}



.search-list-item {
    background-color: var(--containerBackground);
    color: var(--containertext);
    border: var(--containertext) solid 1px;
    padding: 0.5rem;

    width: 100%;

    cursor: pointer;
    -webkit-transition: background-color 200ms ease;
    -o-transition: background-color 200ms ease;
    transition: background-color 200ms ease;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;

    align-items: center;

}

.search-list-item:Hover {
    background-color: var(--color3);

    border: var(--color1) solid 1px;
}


.search-item-thumbnail img {
    width: 40px;
    margin-right: 1rem;
}

.search-item-info h3 {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.search-item-info p {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 600;
    opacity: 0.6;
    margin: 0;
}

/* .img-flex-container {
    background-color: aliceblue;
} */

/* individual result modal */

#modal {
    z-index: 100;
    display: none;
    opacity: 0;
    transition: opacity 500ms ease-in-out;
}

.overlay {
    position: fixed;

    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--overlay);
    display: flex;
    justify-content: center;
    align-items: center;

}

.result-container {
    background-color: var(--mainBackground);
    padding: 6rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    -webkit-box-shadow: 0px 0px 38px 6px rgba(0, 0, 0, 0.19);
    box-shadow: 0px 0px 38px 6px rgba(0, 0, 0, 0.19);
    /* max-height: 90%; */


}

.movie-info-container {
    display: flex;
    justify-content: center;
    align-items: center;

}

.movie-poster,
.movie-info {

    margin: 0 1rem 0;
    letter-spacing: .2rem;
    text-align: center;
    color: var(--text);

}

.movie-info {
    max-width: 500px;
}



.movie-poster img {
    padding: 0;
    margin: 0 auto;
    border: var(--text) solid 5px;
    max-width: 135px;
}

/* movie info stylings */
.movie-misc-info {
    list-style-type: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0;
}

.movie-misc-info li {
    margin: 0 .3rem;
}



.movie-info-title {
    font-size: 2rem;
    color: var(--color2);
    margin-bottom: 1rem;
    text-align: center;
    max-width: 400px;
}

.movie-info span {
    color: var(--color1);
}

.movie-info .plot {
    max-width: 400px;
    max-height: 200px;
    overflow-y: scroll;
    margin: 1rem auto;

}


.modal-buttons {

    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.modal-btn {
    background-color: var(--containerBackground);
    color: var(--containertext);
    border: var(--color2) solid 2px;
    padding: .5rem 2rem;
    transition: 300ms ease-in-out;
    cursor: pointer;
    margin: 0 1rem;
    text-decoration: none;
}

#btn-close {
    letter-spacing: .2rem;

}

.modal-btn:hover {
    background-color: var(--containertext);
    color: var(--containerBackground);
    border: var(--containerBackground) solid 2px;

}

/* results slider */

.slider-container {
    margin-top: 3rem;
    display: none;
    /* overflow-x: hidden; */
    justify-content: center;

    opacity: 0;
    transition: opacity 1s ease-in-out;
    min-width: 100vw;

}

.slider {
    --images-per-screen: 5;
    --slider-index: 0;
    flex-grow: 1;
    display: flex;
    margin: 0 .25rem;
    transform: translateX(calc(var(--slider-index)*-100%));
    transition: transform 500ms ease-in-out;


}

.movie-container {
    position: relative;
    max-width: calc(100%/var(--images-per-screen));
    flex: 0 0 calc(100%/var(--images-per-screen));
    padding: 0 .5rem;
    border-radius: 50%;
    transition: transform .5s ease-in-out;
    display: inline-block;

}

.movie-container:hover {

    transform: scale(1.5);
    /* filter: blur(3px); */
    z-index: 100;
    flex-basis: 3;
}

.movie-container img {
    width: 100%;
    aspect-ratio: 16/16;
    min-height: 100;
    transition: filter 500ms ease-in-out;
}



.info-container,
.bio-overlay {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    flex-direction: column;
    align-items: center;
    -webkit-box-shadow: 0px 0px 15px 7px rgba(0, 0, 0, 0.17);
    box-shadow: 0px 0px 15px 7px rgba(0, 0, 0, 0.17);
}



.info-container {
    background: var(--mainBackground);
    border: var(--text) solid 2px;
    color: var(--text);
    display: flex;
    justify-content: center;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.info-container:hover {
    opacity: .9;
}

.movie-title {
    font-size: 1.6rem;
    color: var(--color2);
    margin-bottom: 1rem;
    text-align: center;
    max-width: 80%;
}



.info-container h4 {
    letter-spacing: .1rem;
    text-align: center;
    /* max-width: 80%; */
    font-size: .7rem;
    margin-bottom: .1rem;
}









.info-container h4:nth-of-type(1) {
    margin-top: .3rem;
}

.hover-btn {
    font-size: 2rem;
    color: var(--mainBackground);
    background-color: var(--text);
    border: var(--color2) solid 2px;
    padding: .2rem .5rem .3rem .7rem;
    opacity: 1;
    transition: 250ms ease-in-out;
    cursor: pointer;

    letter-spacing: 3px;
    margin-top: .5rem;

}


.hover-btn:hover {
    background-color: var(--mainBackground);
    color: var(--text);
    border: var(--text) solid 2px;
}

.bio-overlay {
    background: var(--text);
    border: var(--mainBackground) solid 2px;
    color: var(--mainBackground);
    display: none;
    position: absolute;
    height: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;

    font-size: .7rem;
    cursor: default;
    margin: 0;
    padding: 1rem;
    justify-content: center;
    position: absolute;
    width: 100%;

    opacity: 0;
    transition: all 0.8s ease-in-out;
    flex-direction: column;
    align-items: center;
    -webkit-box-shadow: 0px 0px 15px 7px rgba(0, 0, 0, 0.17);
    box-shadow: 0px 0px 15px 7px rgba(0, 0, 0, 0.17);
}



.bio-overlay h4 {
    font-size: 1rem;
    text-align: center;
    margin-top: 1rem;

    color: var(--mainBackground);
}

.bio-overlay p {
    margin: 1.5rem 1rem 1rem;
    text-align: center;


}



.close-bio-text {
    position: absolute;
    left: 10px;
    top: 12px;
    width: 15px;
    height: 15px;
    opacity: 0.3;
}

.close-bio-text:hover {
    opacity: 1;
    cursor: pointer;
}

.close-bio-text:before,
.close-bio-text:after {
    position: fixed;
    left: 18px;
    content: ' ';
    height: 15px;
    width: 3px;
    background-color: var(--mainBackground);
}

.close-bio-text:before {
    transform: rotate(45deg);
}

.close-bio-text:after {
    transform: rotate(-45deg);
}




.handle {
    border: none;

    flex-grow: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.25);
    display: flex;
    cursor: pointer;

    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all .5s ease-in-out;
    opacity: 0;


}

.handle:hover {
    background-color: var(--overlay);
    color: var(--mainBackground);
}

.left-handle {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.right-handle {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.arrow {
    font-size: 8rem;
    transition: transform 300ms ease-in-out;
    height: 100%;
    display: flex;
    align-items: center;
    padding-bottom: 40px;

}

.arrow:hover,
.arrow:focus {
    transform: scale(1.2);
}

.row {
    --bs-gutter-x: 0;
}

.header-info {
    display: flex;
    opacity: 0;

    transition: .5s ease-in-out;
    justify-content: space-evenly;
    margin-top: 1rem;
}

.title {
    margin: 0;

}

.progress-bar {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    gap: .25rem;
    /* width: 50%; */
    margin-right: 0;
    height: 100%;
}

.progress-item {
    flex: 0 0 2.5rem;
    min-width: 2.5rem;
    height: .8rem;
    background-color: var(--color2);
    opacity: .5;
}

.progress-item.active {
    background-color: var(--color3);
    opacity: 1;
}

.no-results {
    margin-top: 2rem;
    width: 40%;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: 1.5s ease-in-out;

}


/* bootstrap Breakpoints
X-Small	None	<576px
Small	sm	≥576px
Medium	md	≥768px
Large	lg	≥992px
Extra large	xl	≥1200px
Extra extra large	xxl	≥1400px */
/* @media screen and (max-width: 1500px) {
    :root {
        font-size: 13px;
    }

    .main-container {
        margin-top: 4rem;
    }
} */

@media screen and (max-width: 1375px) {
    :root {
        font-size: 12px;
    }

    .header-info {
        margin-top: 2rem;
    }

    .slider-container {
        margin-top: 2rem;
    }

    .slider {
        --images-per-screen: 4;
    }

    .movie-container:hover {
        transform: scale(1.3);

    }
}

@media screen and (max-width: 1200px) {
    .slider {
        --images-per-screen: 4;
    }

    .movie-container img {
        aspect-ratio: 16/20;
    }

    .result-container {

        padding: 3rem 2rem;


    }
}




@media screen and (max-width: 992px) {
    :root {
        font-size: 12px;
    }

    .movie-container img {
        aspect-ratio: 16/27;
    }
}

@media screen and (max-width: 768px) {
    .slider {
        --images-per-screen: 3;
    }

    .movie-container img {
        aspect-ratio: 16/25;
    }

    .header-info {
        margin-top: 2rem;
    }

    .slider-container {
        margin-top: 2rem;
    }

    .result-container {
        padding: 3rem 2rem;
        overflow-y: scroll;
    }

    .movie-info-container {
        flex-direction: column;
    }



    .movie-poster {
        order: 2;
        margin-top: 2rem;
    }



}

@media screen and (max-width: 576px) {
    .slider {
        --images-per-screen: 3;
    }

    :root {
        font-size: 11px;
    }

    .movie-container img {
        aspect-ratio: 16/30;
    }

    .header-info {
        margin-top: 2.5rem;
    }

    .slider-container {
        margin-top: 2.5rem;
    }

    /* .main-container {
        margin-top: 5rem;
    } */
}

@media screen and (max-width: 500px) {
    .movie-title {
        font-size: .8rem;
        margin-bottom: .1rem;
        letter-spacing: 0px;
    }

    .info-container h4 {
        letter-spacing: .1rem;
        text-align: center;
        /* max-width: 80%; */
        font-size: .6rem;
        letter-spacing: 0px;
    }

    .hover-btn {
        font-size: .7rem;
        border: var(--color2) solid 2px;
        padding: .1rem;
        letter-spacing: 1px;
        margin-top: .15rem;
    }


}

@media screen and (min-width: 500px) {
    .hover-btn:nth-of-type(1) {
        margin-top: .4rem;
    }

    .movie-title {
        font-size: 1.8rem;
        margin-bottom: .1rem;
        letter-spacing: 0px;
    }

    .info-container h4 {
        letter-spacing: .1rem;
        text-align: center;
        /* max-width: 80%; */
        font-size: 1.1rem;
        letter-spacing: 0px;
    }

    .hover-btn {
        font-size: 1rem;
        border: var(--color2) solid 2px;
        padding: .1rem .5rem;
        letter-spacing: 1px;
        margin-top: .5rem;
    }
}

@media screen and (min-width: 1375px) {
    .header-info {
        margin-top: 2rem;
    }
}

@media screen and (min-width: 1300px) {
.movie-poster img {
    padding: 0;
    margin: 0 auto;
    border: var(--text) solid 5px;
    max-width: 250px;
}
}
