﻿::-webkit-scrollbar {
    display: none;
}

html {
    box-sizing: border-box;
}

body {
    box-sizing: inherit;
    margin: 0;
}

.d-none {
    display: none;
}

/*
*
* Boiler Plate stuff 
*
*********************************/
:root {
    --movie-width: 330px;
    --movie-height: 200px;
    --arrow-width: 60px;
    --slider-py: 170px;
    --slider-py-top: 15px;
    --slider-py-bottom: 50px;
}

@media only screen and (max-width: 1000px) {
    :root {
        --movie-width: 300px;
    }
}

.container-slider {
    position: relative;
}

/*
*
* THE SLIDER CONTAINER
*
*********************************/
.slider {
    width: 100%;
    overflow-x: scroll;
    overflow-y: visible;
    white-space: nowrap;
    position: relative;
    padding-top: var(--slider-py-top);
    padding-bottom: var(--slider-py-bottom);
}


/*
*
* SLIDER INDICATORS
*
*********************************/
.container-indicators {
    width: 100px;
    position: absolute;
    right: 0;
    top: calc(var(--slider-py) - 60px);
    visibility: hidden;
}

.indicator {
    width: 15px;
    height: 2px;
    background-color: grey;
    display: inline-block;
}

    .indicator.active {
        background-color: white;
    }

/*
*
* MOVIE ELEMENTS!
*
*********************************/
.movie {
    width: var(--movie-width);
    height: var(--movie-height);
    display: inline-block;
    position: relative;
    color: white;
    padding: 0 5px;
    font-size: 0.8rem;
    transition: all 0.8s ease-in-out;
}

    /*.movie:nth-of-type(1) {
        margin-left: var(--arrow-width);
    }*/

    .movie img {
        object-fit: cover;
        height: 100%;
        width: 100%;
        border-radius: 10px;
    }

.movie-desc-layer {
    z-index: 5999;
    position: absolute;
    background-color: #000000;
    width: 320px;
    margin-top: -10px;
    padding: 10px 15px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.movie-desc-layer-add-item {
    z-index: 5999;
    position: absolute;
    background-color: #d2d2d2;
    width: 320px;
    margin-top: -10px;
    padding: 10px 15px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    height: 38px;
}

.description {
    position: absolute;
    display: none;
    z-index: 5995;
    background-color: #272727;
    width: var(--movie-width);
    margin-top: -10px;
    padding: 10px 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

@media only screen and (min-width: 900px) {
    .movie:hover {
        transform: scale(1.1);
        z-index: 5990;
        overflow: visible !important;
        cursor: pointer;
    }

    /* Make description visible when movie is hovered */
    .movie:hover > .description {
        display: block;
    }

    /*.movie:hover > img {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }*/
}


.description__buttons-container {
    display: flex;
    flex-direction: row;
    padding: 10px;
}

.description__text-container {
    padding: 10px;
}

.description__match {
    color: green;
}

.description__rating {
    outline: 1px solid white;
    padding: 0 3px;
    margin: 0 5px;
}

.description__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    text-align: center;
    font-size: 8px;
    margin-right: 5px;
    border-radius: 100%;
}

.description__button:hover {
    border-color: grey;
    color: grey;
    cursor: pointer;
}

.description__button:nth-of-type(5) {
    margin-left: auto;
    margin-right: 0;
}

.course-icon-label-course {
    background-color: #000;
    color: #FFF;
    font-size: 13px;
    position: absolute;
    left: 5px;
    top: 15px;
    padding: 3px 20px;
}

.course-icon-label-exam {
    background-color: #f7b548;
    color: #FFF;
    font-size: 13px;
    position: absolute;
    left: 5px;
    top: 15px;
    padding: 3px 20px;
}

.course-icon-add {
    position: absolute;
    left: 145px;
    top: 70px;
    font-size: 40px;
    color: #bebaba;
}




/*
*
* BUTTONS
*
*********************************/
.btn-nav {
    width: var(--arrow-width);
    height: calc(var(--movie-height) + 29px);
    border-radius: 5px;
    position: absolute;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    outline: none;
    border: none;
    color: white;
    top: var(--slider-py-top);
    z-index: 6500;
    visibility: hidden;
}

#moveLeft {
    left: 0;
}

#moveRight {
    right: 0;
}

@media only screen and (max-width: 900px) {
    .btn-nav {
        display: none;
    }
}

@media only screen and (min-width: 901px) {
    .container:hover .btn-nav,
    .container:hover .container-indicators {
        visibility: visible;
    }
}
