﻿/*STYLE GUIDE - FRONT PAGE

    LIGHT LINK PURPLE = #D770FF
    LESS DARK PURPLE = #331946; #3C1B48 (similarlyRatedScroll)
    DARK PURPLE = #0D0711 (nav); #110B15 (bg); #190D20 (loadingScreen)
    WHITE = #FFFFFF

    SCARY PURPLE = #8439A1 (lighter version in gradient is #D14DB1)
    CREEPY GREEN = #20BF55
    GORY RED = #FF331F
    JUMPY ORANGE = #E6AF2E

*/

.bodyBackground {
    background-color: #DEDEDE;
    width: 70%;
    margin: auto;
    min-width: 320px;
    max-width: 760px;
    box-shadow: 0px 0px 5px #555555;
}

#scaryMeterLogo {
    width: 60%;
}

.introductionLogo {
    text-align: center;
    margin-top: 20px;
}

.introductionMessage {
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    color: #FFFFFF;
    font-weight: 300;
    font-size: 1em;
    line-height: 1.1;
    margin-top: 10px;
}

.socials {
    margin-top: 10px;
    text-align: center;
    margin-bottom: 25px;
}

.introBrand {
    font-size: 1.6em;
    margin: 7px;
}

.donate {
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    font-size: 0.9em;
    color: #FFFFFF;
}











 .moviesSection {
    margin-bottom: 30px;
 }

.sectionLabel {
    font-weight: 300;
    font-size: 1.9em;
    color: #FFFFFF;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 4px;
}

.sectionLabel:hover {
    color: #FFFFFF;
}

.moviesSectionwCarets {
    display: flex;
    align-items: center;
    position: relative;
}

.moviesSectionwCaretsSub_centre {
    overflow: hidden;
}

#scariestMoviesContainer {
    position: relative;
    left: -100.48px; /*Change at larger screen widths*/ /*Match .moviePoster width*/
}

.caretLeft {
    padding: 20px 10px 20px 0;
    left: -10px;
    position: absolute;
    transform: scale(1);
    transition: transform 0.3s, opacity 0.3s ease;
    opacity: 85%;
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.4));
    z-index: 1;
    user-drag: none;
    -webkit-user-drag: none;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.caretRight {
    padding: 20px 0 20px 10px;
    right: -10px;
    position: absolute;
    transform: scale(1);
    transition: transform 0.3s, opacity 0.3s ease;
    opacity: 85%;
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.4));
    z-index: 1;
    user-drag: none;
    -webkit-user-drag: none;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.caretLeft:hover, .caretRight:hover {
    cursor: pointer;
}

.sectionScroll {
    overflow: clip; /*To hide the posters, switch to "auto", which is declared in the window.onload section*/
    white-space: nowrap;
    scroll-behavior: smooth;
    scrollbar-width: none;  /*Remove scrollbar in Firefox*/
}

.sectionScroll::-webkit-scrollbar {
    display: none; /*Remove scrollbar in Chrome / Safari / Edge*/
}

.movieSubContainer {
    display: inline-flex;
}

.movieBox {
    display: inline-flex;
    transform: translateX(0); /*This needs to be here for some reason (will-change: transform also works instead)*/
    margin: 0px 4px 0px 0px;
}

@keyframes posterBackdropRight {
  from {
    opacity: 0;
    transform: translateX(90px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes posterBackdropLeft {
  from {
    opacity: 0;
    transform: translateX(-90px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.moviePoster {
    width: 100.48px; /*Change at larger screen widths*/
    height: 150px; /*Change at larger screen widths*/
    border-radius: 5px;
    display: flex;
    border: 1px solid #4E215F;
}

.moviePoster:hover {
    cursor: pointer;
}

.movieBackdropContainer {
    width: 100%; /*Change at larger screen widths*/
    overflow: hidden;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid #3A3A3A;
}

.movieBackdrop {
    mask-image: linear-gradient(to bottom, black 0%, #00000020 90%);
    width: 120%;
}

.movieBackdrop:hover {
    cursor: pointer;
}

.movieBackdropText {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 0 20px 20px 20px; /*Change at larger screen widths*/
}

.movieTitle_scariestMovies {
    color: #FFFFFF;
    font-size: 1.5em;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    text-shadow: 2px 2px 2px #000000C1;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 10px;
    display: flex;
    white-space: normal;
}

.topBadgeNumber {
    vertical-align: sub;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
}

.topBadge {
    width: 30px;
}

.topNumber {
    position: absolute;
    color: #000000;
    font-weight: 400;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9em;
    text-shadow: none;
}

.meterRatingBarLabel {
    color: #FFFFFF;
    font-size: 1.1em;
    font-family: 'Oswald', sans-serif;
    float: left;
}

.ratingNumber {
    font-size: 1.1em;
    font-family: 'Oswald', sans-serif;
    text-align: right;
}

.progress {
    margin: 0;
    height: 7px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    box-shadow: none;
    background-color: transparent;
}

.progress-bar {
    box-shadow: none;
    font-size: 15px;
    padding-top: 6px;
}

.overallProgressBar {
    background-image: linear-gradient(to right, #8439A1, #D14DB1);
}

.movieTitle {
    color: #FFFFFF;
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    margin: 5px;
    text-align: center;
    max-width: 150px;
    white-space: normal;
    display: none;
}
















/*Responsive CSS (minimum size is 320px and maximum is 720px)*/

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

    .movieBackdropContainer {
        width: 330px;
    }

    .movieBackdropText {
        padding: 0 25px 25px 25px;
    }

    .moviePoster {
        width: 120.45px;
        height: 180px;
    }

    #scariestMoviesContainer {
        left: -120.45px; /*Match .moviePoster width*/
    }

    .caretLeft {
        left: -15px;
    }

    .caretRight {
        right: -15px;
    }

}

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

    .movieBackdropContainer {
        width: 370px;
    }

    .moviePoster {
        width: 133.76px;
        height: 200px;
    }

    #scariestMoviesContainer {
        left: -133.76px; /*Match .moviePoster width*/
    }

}

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

    #scaryMeterLogo {
        width: 55%;
    }

    .movieBackdropContainer {
        width: 410px;
    }

    .movieBackdropText {
        padding: 0 30px 30px 30px;
    }

    .moviePoster {
        width: 140.41px;
        height: 210px;
    }

    #scariestMoviesContainer {
        left: -140.41px; /*Match .moviePoster width*/
    }

}

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

    #scaryMeterLogo {
        width: 50%;
    }

    .movieBackdrop {
        width: 440px;
    }

    .moviePoster {
        width: 147.07px;
        height: 220px;
    }

    #scariestMoviesContainer {
        left: -147.07px; /*Match .moviePoster width*/
    }

}

/*End of responsive CSS*/