

#searchbar {
    background-color: transparent;
}

.topnav {
    display: flex;
    justify-content: center;
    height: 92px;
    width: 100%;
    align-items: center;
    justify-content: space-around;
}

.topnav i:not(.box i) {
    font-size: 35px;
    color: white;
}

.box button {
    background-color: transparent;
}

#metflixlogo{
    padding: 20px;
}

.box {
    background-color: var(--whiteTransparentButton);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 20px;
    border-radius: 30px;
    width: 65%;
    z-index: 50;
}

.box input[type="text"] {
    border: none;
    outline: none;
    background-color: inherit;
    width: 100%;
    color: var(--buttontext);
    font-weight: 200;


}

.topnav ul {
    display: flex;
    margin-left: 5%;
}

.topnav ul li {
    color: white;
    list-style-type: none;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
}



.box i {
    color: rgba(153, 153, 153, 255);
    font-size: 20px;
}



@media (min-width: 1000px) {
    html {
        background-repeat: no-repeat;
        background: url("images/joker1920.png"), no-repeat;
    }


    hr {
        display: none;
    }

    .topnav {
        justify-content: space-between;
        background-color:#1e0342 ;
        border-bottom: 3px solid rgba(255, 255, 255, 0.2);
        height: 60px;
    }

    .topnav i:not(.box i) {
        display: none;
    }

    .box {
        display: flex;
        justify-content: end;
        background-color: transparent;
        width: 360px;
    }

    .box button {
        margin: 10px;
        background-color: rgba(4, 7, 11, 0.2);
        height: 40px;
        width: 40px;
        border-radius: 100%;
    }

    .box button i {
        font-size: 23px;
        color: white;
    }

    .box input[type="text"] {
        transition: all 0.2s ease-in-out;
        width: 0;
    }



    .profile-dropdown-content {
        display: none;
        flex-direction: column;
        position: absolute;
        right: 40px;
        background-color: var(--blackTransparentButton);
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1;
        height: fit-content;
    }

    .profile-dropdown:hover .profile-dropdown-content {
        display: flex;
    }

    .profile-dropdown-content ul {
        display: flex;
        flex-direction: column;
        margin: 0 0 10px 0;
    }

    .profile-dropdown-content ul li {
        color: white;
        font-weight: 300;
    }

    .profile-dropdown-content ul li:hover {
        transform: scale(1.05);
        transition: all 0.5s ease-in-out;
    }
}

@media (max-width:1000px) {
    .topnav ul {
        display: none;
    }
    #mobilehidden{
        display: none;
    }
    
}

@media (min-width:1000px) {
    #hiddendesktop {
    display: none;
}
}


#movieholder{
    padding: 10px;
    transform: scale(0.9);
}




/* ----------------------- BOTTOM NAV BAR ----------------------- */

.botnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    margin: 0 15px;
}


.category,
#categories {
    background-color: var(--whiteTransparentButton);
    color: var(--buttontext);
    width: 90px;
    height: 25px;
    border-radius: 19px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

@media (min-width: 1000px) {
    .botnav {
        display: none;
    }
}

/* ----------------------- PHONE VIEW HAMBURGER BAR ----------------------- */


#phone-menu-button {
    z-index: 0;
}

#phone-menu-button i:nth-child(2) {
    display: none;
}


@media (max-width: 1000px) {
    #phone-menu-button {
        display: block;
        /* marker2 */
    }

    #phone-hamburger-menu {
        display: none;
        position: absolute;
        height: 100vh;
        width: 100vw;
        background-color: rgba(10, 13, 13, 1);
    }

    #phone-hamburger-menu-content {
        margin: 100px 25px;
    }

    #phone-hamburger-menu-content header {
        margin: 0 0 10px 0;
    }

    #phone-hamburger-menu i {
        color: white;
        font-size: 40px;
    }

    #phone-hamburger-menu ul {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #phone-hamburger-menu li {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        color: white;
        font-size: 40px;
    }

    #phone-hamburger-menu li i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 95px;
        height: 95px;
        background-color: var(--whiteTransparentButton);
        border-radius: 3px;
    }

    #phone-hamburger-menu li h5 {
        margin-top: 5px;
    }

    #phone-hamburger-menu ul:nth-child(4) {
        margin: 0 10px;
    }


}

@media (min-width: 1000px) {
    #phone-hamburger-menu {
        display: none;
    }
}

/* ----------------------- MOVIE POSTER ----------------------- */


#movieposter {
    width: 352px;
    height: 474px;
    border-radius: 19px;
    background-color: var(--blackTransparentButton);
    background-image: url("./images/jokerposter.png");
    margin: 20px auto;

}

main {
    width: 100%;
    height: 100%;
}

@media (min-width: 1000px) {
    #movieposter {
        display: none;
    }
}

/* ----------------------- DESKTOP MOVIE INFO 
----------------------- */

.desktop-movie-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin: 4% 0 2% 5%;
}

#desktop-movie-title-preview,
#desktop-movie-title {
    color: white;
    font-size: 27px;
    font-family: 'Jacques Francois', serif;
    text-transform: uppercase;
}

.desktop-movie-info-container ul li {
    color: white;
    font-size: 2em;
    margin: 0 9px;
    font-family: 'Jost', sans-serif;

}

.desktop-movie-info-container ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    font-family: 'Jost', sans-serif;
    text-transform: lowercase;
    font-size: 14px;
}


.desktop-movie-logo {
    width: fit-content;
    height: fit-content;
    margin-bottom: 4%;
}

@media (max-width: 1000px) {
    .desktop-movie-info-container {
        margin: 0;
    }

    main {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
}


/* -----------------------DESKTOP MOVIE HOLDER----------------------- */

@media (min-width: 1000px) {
    #desktop-movie-holder {
        width: 1080px;
        height: 1000px;
        position: absolute;
        left: calc(50vw - (1080px / 2));
    }


    #play-button-desktop-movie-preview i {
        color: black;
        margin: 0 20px;
        font-size: 30px;
    }

    #desktop-movie-infotext-container {
        display: flex;
        text-align: left;
        justify-content: space-between;
        font-size: 12px;
    }

    #desktop-movie-infotext-container span {
        width: 500px;
        margin: 10px;
    }

    #desktop-movie-info-paragraph-one {
        text-align: left;
    }

    #desktop-movie-info-paragraph-two {
        text-align: right;
    }

}

#upper-desktop-movie-holder-wrapper {
    background-image: url("images/background.png");
    overflow: hidden;
    height: 607px;
    border-radius: 40px 40px 0 0;
    background-size: cover;
}

#play-button-desktop-movie-preview {
    background-color: white;
    height: 50px;
    width: 100%;
    margin-top: 10px;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-family: poppins;
    color: black;
}

#upper-desktop-movie-holder-wrapper {
    color: black;
    text-transform: uppercase;
    margin: 0 20px;
    font-size: 24px;
}

#desktop-movie-holder {
    background-color: rgba(20, 20, 20, 1);
    border-radius: 40px 40px 0 0;
    text-align: right;
    transition: 0.2s ease-in-out;
    transform: scale(0);
}

#close-desktop-movie-preview-button-icon {
    font-size: 30px;
    margin: 20px;
    padding: 7px 12px;
    border-radius: 100%;
    background-color: var(--blackTransparentButton);
    color: white;
}

/* marker1 */
@media (max-width: 700px) {
    #flexcontainer {
        align-items: center;
        justify-content: center;
        display: flex;
    }
}


/* ----------------------- MOVIE SCROLL ----------------------- */

.moviecontainer {
    margin: 0 auto;
    height: fit-content;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 20px;
    overscroll-behavior-inline: contain;
}

.movie a {
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.movie {
    width: 108px;
    min-width: 108px;
    height: 154px;
    background-color: var(--blackTransparentButton);
    margin-right: 10px;
}

.movie {
    background-position: center;
    background-size: cover;
}

.scroll-snap {
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 1rem;
}

.scroll-snap>* {
    scroll-snap-align: start;
}

.categoryname {
    color: var(--buttontext);
    margin: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
}

.moviescontainer {
    margin: 0px 0;
}

@media (min-width: 1000px) {
    .movie {
        width: 291px;
        min-width: 291px;
        height: 165px;
        background-color: var(--blackTransparentButton);
        margin-right: 15px;
        border-radius: 5px;
    }

    /* Detta är för när jag byter ut divs till bilder */
    .moviescontainer>img {
        inline-size: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .movie img {
        height: 100%;
        width: 100%;
    }

    .categoryname {
        font-size: 2em;
    }


}


/* movies */

#movie1 {
    background-image: url("images/teinf21/teinf21poster.jpg");
}

#movie2 {
    background-image: url("/images/inception/inceptionposter.jpg");
}