.dark {
    /* background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2)); */
    /* width: 2px; */
    filter: brightness(30%);
}

#lower-footer {
    background-color: rgba(0, 0, 0, 0.2);
}

.background-images {
    margin: 2em auto;
    box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.7) !important;
}

.scrolling {
    height: 57%;
    overflow-y: scroll;
}

#movie-images {
    margin: 0 auto;
    max-width: 500px;
}

#tv-show-images {
    margin: 0 auto;
    max-width: 500px;
}

.centered {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
} 

.poster-text {
    z-index: 20;
    font-size: 4.5vw;
    text-align: center;
    text-shadow: .1vmax .3vmax .3vmax red;
    line-height: 120%;
}

#count {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#movie-count {
    float: left;
}

#show-count {
    float: right;
}

#movie-count, #show-count {
    font-weight: 300;
    span {
        font-weight: 700;
    }
}

.poster-text, .poster-text:link, .poster-text:hover {
    color: white;
    text-decoration: inherit;
}

.categories {
    margin: -5px;
    padding: 20px auto;
    padding-bottom: 3em;
    padding-top: 1.5em;
    position: absolute;
    top: 57%;
    left: 50%;
    /* DYNAMIC SIZING */
    /* min-width: 60%; */
    max-width: 80vw;
    overflow-y: hidden;
}

.selected {
    border: 2px solid red;
}

.category-btn {
    text-align: center;
}

.category-btn:hover {
    cursor: pointer;
}

.back-button {
    position: absolute;
    left: 4%;
    top: 84%;
    margin-bottom:20px !important;
}

.continue-button {
    position: absolute;
    left: 90%;
    top: 84%;
    margin-bottom:5px !important;
}

.fade-animation {
    --fa-animation-duration: 1s;
    --fa-fade-opacity: 0.2;
}

#categories-text {
    margin: 2% auto;
    text-align: center;
    font-size: max(3.5vw, 2.5em) !important;
}

.categories .row > .col div {
    font-size: max(1.5vh, 1.125rem);
}

div#random {
    font-weight: bold;
}

#battleBtn {
    position: absolute;
    top: 83%;
    left: 94%;
    margin-left:5px;
}

#skipBtn {
    position: absolute;
    top:83%;
    left:89%;
    margin-right:5px;
}

.battleBox {
    position: absolute; 
    top: 48%;
    /* left: -300%; */
}

.battleImages {
    width: 150%;
    height: 150%;
    box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.5) !important;
}

#backBtn {
    position: absolute;
    top: 86%;
    left: 4%;
}

#leaderboardBtn {
    position: absolute;
    top:72%;
    left:43.65%;
    width:12.5vmax;
}

#leaderboardTable {
    position: absolute;
    top: 12%;
    left: 0%;
    margin: 0 2vmax;
}

.selected.battleImages {
    border: 5px solid red;
}

#left:hover, #right:hover {
    cursor: pointer;
}

#leftTitle, #rightTitle {
    font-size: 1.75rem;
    line-height: normal;
    display: inline-block;
}

#leftText, #rightText {
    font-size: 1.1vmax;   
    text-align: center; 
}

.overview {
    font-size: 1.1vmax;
    /* use vh instead    */
}

.movieText {
    width: fit-content;
    max-width: 60%;
}

.trailer {
    text-decoration: none;
}

.trailer:hover {
    text-decoration: underline;
    cursor: pointer;
}

span.trailer i {
    color: red;
    margin-left:.1em;
}

i.trailer {
    color: red;
}

i.trailer:hover {
    text-decoration: none;
    cursor: pointer;
}

div.trailer {
    padding:0;
    margin:0;
    margin-top:2.3%;
}

#overviewModalLabel {
    font-size: .9em;
}

#overviewModalLabel b {
    font-size: 1.25em;
}

#overviewModal .modal-body {
    text-indent: 1.5em;
    font-size: 1em;
}

#overviewModal .modal-dialog {
    max-width: 50%;
}

#versus {
    width:8%;
    height:fit-content;
    padding:0;
    margin:0;
    margin-top:20%;
}

.skip {
    font-size: .85em !important;
}

#leaderboardText {
    position: absolute;
    top:20%;
    left:50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

img.leaderboard {
    width: 25%;
    height: auto;
    transition: transform .2s;
    box-shadow: 0px 0px 12px 2px rgba(0, 0, 0, 0.35);
}

img.leaderboard:hover {
    transform: scale(2.5);
    box-shadow: 0px 0px 12px 2px rgba(0, 0, 0, 0.65);
}

html, body {
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin-bottom: 1em;
}

footer {
    /* display: none; */
    margin: 0;
    margin-top: 5vh;
    position: relative;
    bottom: 0;
    width: 100%;
}

.specialFooter {
    position: absolute;
    bottom: max(-30vh, calc(-15% - 20vh));
}

.medal {
    padding-left:0px !important;
}

#searchBtn {
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: white;
    border-radius: 0 5px 5px 0;
}

#searchBtn:focus {
    outline: none;
    box-shadow: none;
}

.searchBtn {
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: white;
    border-radius: 0 5px 5px 0;
}

.searchBtn:focus {
    outline: none;
    box-shadow: none;
}

.form-check {
    margin-bottom: .5em;
}

#searchType {
    font-size: .8em;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: white;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: .66em .5em;
}

#search {
    border: 1px solid rgba(255, 255, 255, 0.594);
    border-radius: 0;
    width: 12.5vw !important;
}

#searchYear {
    font-size: .9em !important;
    width: 2.7vw !important;
}

#search:focus, #searchYear:focus, #searchType:focus {
    outline: none !important;
    border: 1px solid white;
    box-shadow: 0 0 10px 1px white;
}

.search {
    border: 1px solid rgba(255, 255, 255, 0.594);
    border-radius: 5px 0 0 5px;
}

.search:focus {
    outline: none !important;
    border: 1px solid white;
    box-shadow: 0 0 10px 1px white;
}   

.searchBtn i {
    --fa-animation-duration: 1s;
}

#searchResults {
    /* border: 1px solid rgba(255, 255, 255, 0.594); */
    margin-left: 0px;
    width:100%;
    margin-top: 2.3em;
    border-radius: 10px;
    border-top-left-radius: 0;
    z-index: 100000;
    display: none;
    overflow-y: scroll;
    overflow-x: scroll;
    max-height: 28em;
} 

.searchResults {
    /* border: 1px solid rgba(255, 255, 255, 0.594); */
    margin-left: 0px;
    width:100%;
    max-width: fit-content;
    margin-top: 5.6vh;
    border-radius: 10px;
    border-top-left-radius: 0;
    z-index: 100000;
    display: none;
    overflow-y: scroll;
}

.dropdown-menu {
    width: 100%;
    padding-left: 10px !important;
    background-color: #212529 !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-top: none !important;
    width: fit-content !important;
    font-size: .85em !important;
    overflow-y: scroll !important;
}

.dropstart .dropdown-menu {
    font-size: .75em !important;
    border: none !important;
    padding: 0 !important;
    padding-left: 5px !important;
    margin-right: 1.2vw !important;
    width: 7.5vw !important;
    min-width: .7em !important;
    overflow-y: scroll !important;
}

.flat-dropdown.show {
    display: block ruby !important;
    inset: unset !important;
}

.movieResults:hover {
    background-color: rgb(231, 231, 231);
    cursor: pointer;
}

.resultsPosters {
    width:20%;
    height:auto;
    box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.35);
}

#container {
    margin: 0;
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: 100%;
    /* background-image: url('https://image.tmdb.org/t/p/original/kd95nBirBiMK5AjMlrB2eqIY7HA.jpg'); */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-x: hidden;
    padding-left: 0;
    display: none;  
}

#getStartedContainer {
    margin: 1.5em;
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: 100%;
}

#getStartedContainer #poster {
    width: 80%;
}

#backgroundContainer, #movieContainer {
    margin-right: -1em;
    background: repeating-linear-gradient(90deg, rgba(201,201,201,.4) 0%, rgba(211,211,211,.45) 50%, rgba(201,201,201,.4) 100%); 
}

#container .col-4 {
    padding-right: 0 !important;
    margin: 1.5em .5em 1.5em 1.5em !important;
}

#container .col {
    margin-left: .5em;
    margin-right: .3em;
    padding-right: 1.2em !important;
}

#container img {
    opacity: .85;
    width:100%;
    height:auto;
    box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.35);
}

#rating {
    margin-left: .1em;
    padding-top: 1vh;
}

#searchBar {
    position: inherit !important;
}

#searchBar #searchResults {
    width: auto;
    display: inline-flex;
}

#introduction {
    font-family: 'REM', sans-serif;
}

#picture {
    width: 100%;
    height: auto;
}

#main {
    font-family: 'Poppins', sans-serif;
}

#aboutContainer {
    margin: 1em;
}

#about {
    background-color: #8BC6EC;
    background-image: linear-gradient(135deg, #8BC6EC 0%, #494edf6f 18%, #46acfb 81%, #258bff 93%);    
}

figcaption {
    color: black !important;
    font-style: oblique 6deg;
    font-weight: lighter;
}

#beg {
    letter-spacing: 2px;
    font-size: 2em;
    font-family: 'Cherry Bomb One', cursive;
}

#dog {
    transition: transform .2s;
}

#dog:hover {
    cursor: pointer;
    transform: scale(1.5);
}

#getStartedContainer .col-4 {
    padding: 0;
    margin-right: 0;
}

#getStartedContainer .col {
    padding-left: 0;
    margin-left: -3em;
    margin-right: 2.5em;
}

#getStartedContainer img {
    box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.4);
}

#leaderboardPage {
    background: none;
    /* FIX FOR THE WEIRD TYPE DROPDOWN */
    min-height: 15vw;
    overflow-y: hidden;
}

#faqs a {
    text-decoration: none;
}

#faqs a:hover {
    text-decoration: underline;
}

#imdb-left:hover, #imdb-right:hover {
    cursor: pointer;
}

small {
    color: white;
}

.moviePoster, .resultsPosters, .background-images, .battleImages, img.leaderboard, #poster {
    border-radius: 8px;
}

/* Dark Mode CSS (START) */

.dark-mode {
    background-color: #121212 !important;
    color: white;
}

.dark-mode#about {
    background-image: linear-gradient(135deg, #2f9be3b1 0%, #494edfa5 18%, #1665a1a7 81%) !important;
}

.dark-mode span:not(.trailer) {
    color: white;
}

.dark-mode .category-btn {
    color: black;
    box-shadow: 0 .25em .5rem rgba(255, 255, 255, 0.315) !important;
}

.dark-mode #poster.moviePoster {
    box-shadow: 0px 0px 20px 3px white !important;
}

.dark-mode img.background-images {
    box-shadow: 0px 0px 8px 2px rgba(255, 255, 255, 0.5) !important;
}

.dark-mode .resultsPosters {
    box-shadow: 0px 0px 4px 1px rgba(255, 255, 255, 0.35) !important;
}

.dark-mode #poster {
    box-shadow: 0px 0px 32px 4px white !important;
}

.dark-mode #container img {
    box-shadow: 0px 0px 8px 2px rgba(255, 255, 255, 0.2) !important;
}

.dark-mode figcaption {
    color: white !important;
}

.dark-mode .typer {
    color: white !important;
}

.dark-mode .searchResults {
    border: 1px solid white;
}

.dark-mode .searchResults li {
    color: white;
    background-color: #121212;
    border-top: .2px solid white;
}

.dark-mode .modal-content {
    background-color: black;
}

.dark-mode .modal-content .btn-close {
    filter: invert(1) brightness(200%) grayscale(100%);
}

.dark-mode .battleImages {
    box-shadow: 0px 0px 8px 2px rgba(255, 255, 255, 0.3) !important;
}

.dark-mode table {
    color: white;
}

.dark-mode img.leaderboard {
    box-shadow: 0px 0px 12px 2px rgba(255, 255, 255, 0.2) !important;
}

.dark-mode img.leaderboard:hover {
    box-shadow: 0px 0px 12px 2px rgba(255, 255, 255, 0.4) !important;
}

.dark-mode #backgroundContainer, .dark-mode #movieContainer {
    background-image: repeating-linear-gradient(90deg, #474747ac, #404142b7, #373b3c9c, #303533b2, #2d2f2a9d);
}

.dark-mode #searchResults {
    color: white !important;
    background-color: #121212 !important;
}

.dark-mode #getStartedContainer #poster {
    box-shadow: 0px 0px 8px 2px rgba(255, 255, 255, 0.35) !important;
}

/* Dark Mode CSS (END) */

/* Remove button outline after press */

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input[type="checkbox"]:focus:not(:focus-visible) {
    box-shadow: none !important;
    outline: none;
}

/* MEDIA QUERIES (FIX SIZING) */

@media (max-width: 1000px) {
    .container.categories.translate-middle {
        max-width: 80vw;
        transform: translate(-50%, -5vh) !important;
        overflow-y: scroll;
    }
    #categories-text {
        margin-top: -3px;
    }
    footer.specialFooter {
        margin-bottom: -10vh;
    }
    #leaderboardPage {
        min-height: 35vw;
    }
    #leaderboardText {
        top: 43% !important;
        width: 85%;
    }
    #leaderboard .leaderboard-btns {
        top: 65% !important;
    }
    #leaderboardBtn {
        top: 85% !important;
        left: 40%;
    }
    #leaderboardTable {
        margin-top: 2.5em;
    }
    #getStartedContainer .row .col .fs-5 {
        font-size: 1.1em !important;
    }
    #getStartedContainer #poster {
        width: 60% !important;
    }
    #faqs .fs-5 {
        font-size: 1em !important;
        line-height: normal;
        .fs-3.fw-bold {
            font-size: 1.35em !important;
        }
    }
    div div.row.row-cols-3 a[target=_self] {
        height: fit-content;
    }
    div div.row.row-cols-3 .w-100 p  {
        font-size: 1.1vmax !important;
    }
    #movie-count, #show-count {
        font-size: 1.2vmax !important;
    }
    .back-button, .continue-button {
        top: 90% !important;
    }
    .continue-button {
        left: 72% !important;    
    }
    .container #backBtn, .container #skipBtn, .container #battleBtn {
        font-size: .8em;
        padding: .25rem .5rem;
    }
    .container #backBtn {
        top: 84.5%;
        left: 10% !important;
    }
    .container #skipBtn {
        left: 81% !important;
    }
    .container #battleBtn {
        left: 89% !important;
    }
    #leftTitle, #rightTitle {
        font-size: .75em;
    }
    #leftYear, #rightYear {
        font-size: .675em;
    }
    .fs-6.fw-normal:is(:has(#leftYear), :has(#rightYear)) {
        margin-top: -8px;
    }
    #leftOverview, #rightOverview {
        font-size: .8em !important;
        line-height: .1 !important;
    }
    #leftText .fs-2.fw-bolder, #rightText .fs-2.fw-bolder {
        margin-bottom: -7px;
    }
    #skipModal .modal-title {
        font-size: 1.5em !important;
    }
    #skipModal .modal-body p {
        font-size: 1.2em !important;
    }
    #overviewModal .modal-dialog {
        max-width: 85% !important;
    }
    .skip {
        font-size: .75em !important;
    }
}

@media (max-width: 650px) {
    .categories .row > .col {
        font-size: .85em;
        div {
            padding: .4rem .2rem !important;
        }
    }
    .categories .row > .col div {
        font-size: 0.85em;
    }
    footer.specialFooter {
        margin-bottom: -25vh;

    }
    #leaderboardPage {
        min-height: 50vw;
        width: 100%;
    }
    #leaderboardTable {
        font-size: 82%;
        margin-top: 12em;
        overflow-x: hidden;
    }
    #leaderboardTable thead tr :last-child,
    #leaderboardTable tbody tr td:last-child {
        display: none;
    }
    #leaderboardTable thead tr :nth-child(2) {
        width: 25% !important;
    }
    #leaderboardTable thead tr :nth-child(3) {
        width: 15% !important;
    }
    #leaderboardTable thead tr :nth-child(6) {
        width: 25% !important;
    }
    #getStartedContainer #poster {
        width: 50% !important;
    }
    #getStartedContainer .row .col .fs-5 {
        font-size: 0.8em !important;
    }
    #faqs {
        width: 90% !important;
    }
    #faqs .fs-5 {
        font-size: .85em !important;
        .fs-3.fw-bold {
            font-size: 1.05em !important;
        }
    }
    .back-button, .continue-button {
        font-size: .85em;
    }
    .container div.battleBox {
        margin-top: 2em;
        left: 70% !important;
        width: 100% !important;
    }
    #left.battleImages, #right.battleImages {
        width: 15vw;
    }
    #leftText, #rightText {
        width: 17vw;
    }
    #leftTitle, #rightTitle {
        font-size: .475em;
    }
    #leftYear, #rightYear {
        font-size: .35em;
    }
    .fs-6.fw-normal:is(:has(#leftYear), :has(#rightYear)) {
        margin-top: -14px;
    }
    #leftOverview, #rightOverview {
        font-size: .8em !important;
        line-height: .1 !important;
    }
    #leftText .fs-2.fw-bolder, #rightText .fs-2.fw-bolder {
        margin-bottom: -12px;
    }
    .container #backBtn {
        top: 85%;
        left: 10% !important;
    }
    .container #skipBtn {
        left: 74% !important;
    }
    .container #battleBtn {
        left: 84% !important;
    }
}