@import url('https://fonts.googleapis.com/css2?family=Bungee+Tint&display=swap');

html, body {
    overflow-x: hidden;
    margin: 0;
}

header {
    display: flex;
    background-color: #4c0606;
    border-bottom: 5px solid rgb(0, 0, 0);
}

main {
    padding-top: 25px;
    background-color: #131313;
    position: relative;
    justify-content: center;
    align-items: center;
    align-self: center;
    display: flex;
    flex-direction: column;
}

#logo {
    width: 125px;
    height: auto;
    margin: 15px;
    border-radius: .75vw;
    transition: border-radius .2s;
}

#logo:hover {
    border-radius: 1.25vw;
}

#header {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    margin: auto;
}

#white-top, #white-bottom {
    position: absolute;
    width: 100%;
    max-height: 650px;
    overflow: hidden;
    opacity: 20%;
    filter: blur(9em);
}

#white-top {
    top: 3px;
}

#white-bottom {
    bottom: 3px;
}

h1 {
    font-size: 50px;
    text-shadow: 3px 3px 1px black;
    margin-top: 5px;
    margin-bottom: 0px;
}

h1, h2 {
    font-family: "Bungee Tint", sans-serif;
    color: #FF0000;
    text-align: center;
}

h2 {
    font-size: 35px;
    text-shadow: 1.5px 1.5px 1px black;
}

#menu {
    background-color: #f2f5ea;
    list-style: none;
    display: flex;
    border-radius: 10px;
    padding: 10px;
}

p, h3 {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 20px;
    justify-content: center;
    text-align: center;
}

#instructions p {
    max-width: 600px;
}

ul {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 20px;
}

p, ul {
    color: #F2F5EA;
}

h3 {
    font-weight: bold;
    text-decoration: underline;
    color:#FF0000;
}

#gameImageContainer, #gameContainer, #correctAnswer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#gameImageContainer, #gameContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#correctAnswer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

#correctAnswer .result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#correctAnswer h3 {
    margin: 0.5rem 0;
}

#correctAnswer button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #F2F5EA;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 15px;
}

#gameContainer {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.gameButton {
    background-color:#F2F5EA;
    font-family: "Bungee Tint", sans-serif;
    padding: .75em;
    margin: 15px;
    border: 2px solid black;
    border-radius: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: color .3s, font-weight .3s;
}

#hints {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.hint {
    margin: 10px;
    margin-bottom: 0;
    display: none;
}

#answer {
    background-color: #F2F5EA;
    border-radius: 5px;
    border: #131313;
    padding: 5px;
}

#submit {
    background-color: #F2F5EA;
    border-radius: 10px;
    padding: .5em;
    border: #131313;
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
}

#gameAnswer {
    margin-bottom: 50px;
}

#gameBottomImg {
    margin: 25px;
    width: 20%;
}

.miniGameImage {
    width: 250px;
}

.fullGameImage {
    width: 600px;
}

.page {
    color: black;
    text-decoration: none;
    font-family: "Bungee Tint", sans-serif;
    margin: 1.5vw;
    margin-left: 0;
    margin-right: 0;
    font-size: 20px;
    font-weight: bold;
    position: relative;
}

#tier, #letter, #unseen {
    transition: color .3s ease, font-size .3s ease;
    padding: 1vh;
    padding-left: 11.5vw;
    padding-right: 11.5vw;
}

#tier:hover, #letter:hover, #unseen:hover {
    color: #623CEA;
    font-size: 21px;
}

#tier {
    border-right: 2px solid black;
    border-left: 2px solid black;
}

.slides {
    display: block;
    width: 100%;
    height: auto;
}

#slideshow {
    position: relative;
    overflow: hidden;
    width: 700px; 
    height: auto;
    border-bottom: 5px solid black; 
    border: 2px solid rgb(143, 143, 143);
    border-radius: 25px;
    margin-bottom: 25px;
    margin: 0 auto;
}

.slides-container {
    display: flex;
    width: 100%;
    height: 100%; 
    transition: transform 1s ease-in-out; 
}

.slide {
    min-width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

#slideshow-title {
    transition: opacity 0.5s ease;  /* Smooth fade effect */
    opacity: 1;  /* Fully visible by default */
    font-size: 25px;
}

#gameNav {
    position: absolute;
    left: 49.5%;
    transform: translateX(-50%);
    background-color:#F2F5EA;
    font-family: "Bungee Tint", sans-serif;
    padding: .75em;
    margin: 15px;
    border: 2px solid black;
    border-radius: 15px;
    text-decoration: none;
    transition: color .3s, font-weight .3s;
}

#gameNav:hover {
    color: #623CEA;
    font-weight: bold;
}

#lleft, #lright {
    position: absolute;
    width: 125px;
    max-width: 9vw;
    opacity: 0%;
    cursor: pointer;
    transition: opacity .2s;
}

#lleft {
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
}

#lright {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

#bottom-main {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    align-content: center;
    max-width: 1100px;
    justify-content: center;
    justify-self: center;
    align-self: center;
    margin: 0 auto;
    margin-top: 30px;
}

#main-dump {
    padding-left: 6vw;
    padding-right: 6vw;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 20px;
    text-align: center;
    color: #F2F5EA;
    line-height: 30px;
    margin-bottom: 0;
}

#video-container {
    display: flex;
    justify-content: center;
    width: 80%;
    margin: 0 auto;
    margin-left: -100px;
    margin-right: -100px;
}

.video-slides-container {
    display: flex;
    width: 75%;
    height: 100%;
    transition: transform 1s ease-in-out;
}

video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    border-radius: 25px;
    border: 2px solid rgb(143, 143, 143);
}

#trailer-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 10px;
}

#dleft, #dright {
    width: 150px;
    opacity: 100%;
    cursor: pointer;
    filter: brightness(25%);
    transition: filter .2s;
    margin-top: 50px;
}

#dleft:hover, #dright:hover {
    filter: brightness(50%);
}

#dleft {
    transform: translateY(-50%) rotate(180deg);
}

#dright {
    transform: translateY(-50%);
}

.info {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 40px;
}

#slide-info {
    margin-top: 0px;
}

.movie-night-title {
    font-family: "Bungee Tint", sans-serif;
    font-size: 20px;
    color: #FF0000;
    text-shadow: 1px 1px 1px black;
    margin-bottom: 10px;
}

footer {
    background-color: #4c0606;
    border-top: 5px solid black;
    margin: 0;
    display: flex;
    flex-direction: row;
    position: relative;
}

#copyright {
    color: #F2F5EA;
    font-family:Georgia, 'Times New Roman', Times, serif;
    margin-bottom: 0;
}

.stream {
    border-radius: .5vw;
    max-height: 6vh;
    margin: 20px;
    margin-left: 20px;
    margin-right: 40px;
    transition: max-height .3s;
    display: inline-block;
}

.stream:hover {
    max-height: 6.25vh;
}

#streaming {
    margin-left: 25px;
}

#right-tag {
    position: absolute;
    right: 40px;
    bottom: 15px;
}

#references {
    background-color: #F2F5EA;
    border-radius: .5vw;
    text-decoration: none;
    color: black;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 20px;
    padding: 5px;
    position: absolute;
    right: 140px;
    bottom: 35px;
    transition: border-radius .2s, color .2s;
}

#references:hover {
    border-radius: .75vw;
    color: #623CEA;
}

#streaming-button {
    display: none;
}

#rabbit {
    position: absolute;
    width: 13px;
    opacity: 7%;
    right: 5px;
    bottom: 5px;
    transform: rotate(315deg);
    cursor: default;
}


@media only screen and (max-width: 1900px) {
    #tier, #letter, #unseen {
        padding-left: 10vw;
        padding-right: 10vw;
    }

    .stream {
        margin-left: 20px;
        margin-right: 20px;
        display: inline-block;
    }
  }

  @media only screen and (max-width: 1400px) {
    #tier, #letter, #unseen {
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .stream {
        margin-left: 10px;
        margin-right: 10px;
    }

    #right-tag {
        right: 30px;
        bottom: 15px;
        max-width: 225px;
        text-align: center;
    }

    #references {
        background-color: #F2F5EA;
        border-radius: 10px;
        text-decoration: none;
        font-size: 15px;
        right: 70px;
        bottom: 50px;
    }

    #references:hover {
        border-radius: 15px;
    }

    #logo {
        width: 110px;
    }
  }

  @media only screen and (max-width: 1100px) {
    #streaming-button {
        display: block;
        margin: 25px;
        font-size: 20px;
        font-family: Georgia, 'Times New Roman', Times, serif;
        background-color: #F2F5EA;
        border-radius: 15px;
        padding: 10px;
        transition: border-radius .3s, color .3s;
    }

    #right-tag {
        max-width: 175px;
    }

    #references {
        bottom: 10px;
        right: 175px;
        font-size: 20px;
        padding: 10px;
    }

    #streaming-button:hover {
        border-radius: 17px;
        color:#623CEA;
    }

    .stream {
        display: none;
    }


    #stream-links {
        display: flex;
        margin-top: 10px;
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stream {
        max-height: 50px;
        margin: 5px 10px;
        display: inline-block;
    }
}

  @media only screen and (max-width: 850px) {
    #video-container {
        margin-left: -60px;
        margin-right: -60px;
    }

    #slideshow {
        width: 500px;
    }
    
    #tier, #letter, #unseen {
        padding-left: 3vw;
        padding-right: 3vw;
    }

    #logo {
        width: 100px;
    }

    #movie-night-title, #slideshow-title {
        font-size: 20px;
    }
  }

  @media only screen and (max-width: 700px) {
    #gameNav {
        left: 49%;
    }
    #slideshow {
        width: 400px;
    }
    h1 {
        font-size: 40px;
    }

    .page {
        font-size: 15px;
    }

    #tier:hover, #letter:hover, #unseen:hover {
        color: #623CEA;
        font-size: 16px;
    }
    

    #tier, #letter, #unseen {
        padding-left: 1.5vw;
        padding-right: 1.5vw;
    }

    #logo {
        width: 80px;
    }

    h2 {
        font-size: 30px;
    }

    #main-dump {
        font-size: 15px;
        line-height: 27px;
    }

    #references {
        bottom: 10px;
        right: 175px;
        font-size: 15px;
        padding: 10px;
    }

    #streaming-button {
        margin: 25px;
        font-size: 15px;
        border-radius: 10px;
        margin-left: 0px;
    }
    #dleft, #dright {
        width: 125px;
    }
  }

  @media only screen and (max-width: 550px) {
    #dleft, #dright {
        width: 100px;
    }
    h1 {
        font-size: 35px;
    }

    h2 {
        font-size: 27px;
    }

    .page {
        font-size: 15px;
    }

    #tier, #letter, #unseen {
        padding-left: 1.5vw;
        padding-right: 1.5vw;
    }

    #logo {
        width: 70px;
        border-radius: 2vw;
    }

    #logo:hover {
        border-radius: 2.5vw;
    }

    #right-tag {
        right: 0px;
    }
  }

  @media only screen and (max-width: 450px) {
    #bottom-main {
        margin-top: 60px;
    }
    #slideshow {
        width: 300px;
    }
    #streaming-button {
        font-size: 12px;
        padding: 5px;
    }

    #references {
        font-size: 12px;
        padding: 5px;
        right: 125px;
    }

    h1 {
        font-size: 25px;
    }

    h2 {
        font-size: 20px;
    }

    .page {
        font-size: 12px;
        margin: 0px;
    }

    #logo {
        width: 55px;
        border-radius: 2.25vw;
    }

    #movie-night-title, #slideshow-title {
        font-size: 15px;
        margin: 10px;
    }

    #main-dump {
        font-size: 13px;
        line-height: 25px;
    }

    #copyright {
        font-size: 12px;
    }

    #right-tag {
        max-width: 125px;
        margin-right: 10px;
    }
  }

  @media only screen and (max-width: 400px) {
    #slideshow {
        width: 250px;
    }
    #streaming-button {
        font-size: 12px;
        padding: 5px;
    }

    #references {
        font-size: 12px;
        padding: 5px;
    }

    .page {
        font-size: 10px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 17px;
    }
  }

/* ---------- High-or-Low game additions (REPLACEMENT) ---------- */

/* movie pair layout: let cards expand to take most of the row */
#moviePair {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    /* don't force wrapping on wide screens so both cards stay side-by-side */
    flex-wrap: nowrap;
    box-sizing: border-box;
}

/* override any inline sizing on the left/right card so they take most of the row */
#leftCard, #rightCard {
    flex: 1 1 46% !important;      /* try to occupy ~46% each */
    max-width: 46% !important;
    min-width: 320px !important;   /* reasonable min so layout doesn't collapse */
    text-align: center;
    box-sizing: border-box;
}

/* movie card look: tighter wrapping so the card doesn't appear taller than the poster */
.movie-card {
    background: rgba(242,245,234,0.04);
    border: 1px solid rgba(242,245,234,0.08);
    padding: 8px 10px;             /* reduced padding so card closely fits poster */
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;   /* start at top so title doesn't add vertical whitespace */
    align-items: center;
    gap: 8px;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* title style */
.movie-title {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.1;
}

/* movie year */
.movie-year {
    margin: 0;
    padding: 0;
    color: #F2F5EA;
    font-size: 16px;
}

/* choice buttons */
.choiceButton {
    background-color: #F2F5EA;
    border: 2px solid black;
    border-radius: 12px;
    padding: 0.6rem 1.25rem;
    font-family: "Bungee Tint", sans-serif;
    font-size: 18px;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .08s ease;
}

.choiceButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.25);
}

/* poster: full visible image, wide (fills card width) while keeping fixed height */
.movie-poster {
    height: 420px;            /* keep requested fixed height */
    width: 100%;              /* fill the card width so posters are wide */
    max-width: none;          /* ignore old max-width so width can expand */
    object-fit: contain;      /* show entire image without cropping */
    object-position: center;
    border-radius: 12px;
    border: 2px solid rgba(242,245,234,0.08);
    display: block;
    margin: 0;
    background: #222;         /* letterbox background */
    box-sizing: border-box;
}

/* small responsive adjustments */
@media only screen and (max-width: 1100px) {
    #leftCard, #rightCard {
        flex-basis: 48% !important;
        max-width: 48% !important;
        min-width: 260px !important;
    }
    #moviePair {
        gap: 1.5rem;
    }
    .movie-title { font-size: 20px; }
    .choiceButton { font-size: 17px; padding: 0.55rem 1.1rem; }
}

/* stack cards on small screens and reduce poster height */
@media only screen and (max-width: 700px) {
    #moviePair {
        flex-wrap: wrap;      /* allow stacking on small screens */
    }
    #leftCard, #rightCard {
        flex-basis: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .movie-poster {
        height: 300px;        /* smaller fixed height on narrow screens */
        width: 100%;
        object-fit: contain;
    }
    .movie-title { font-size: 18px; }
    .choiceButton { font-size: 16px; padding: 0.5rem 1rem; }
}

/* keep game over and scale rules (unchanged behavior) */
#gameOver {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 24px;
    padding-bottom: 24px;
    width: 100%;
}

/* The scale image size: large but constrained so footer stays visible */
#gameOverScale {
    width: auto;
    max-width: 60%;
    max-height: calc(100vh - 260px);
    object-fit: contain;
    display: block;
    margin: 8px auto 0;
    border-radius: 10px;
    align-self: center;
}

/* Slight tweak for small screens */
@media only screen and (max-width: 700px) {
    #gameOverScale {
        max-width: 95%;
        max-height: calc(100vh - 220px);
    }
}

.movie-image {
    width: 220px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 8px;
}

.rating {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffd700;
}

.actionBtn {
    margin: 0 8px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
}

/* --------- Default non-header font (match initial description text) --------- */
/* Apply the description font as the default for everything except headers */
body {
  /* keep any existing body styles but make this the default text font */
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  /* preserve earlier rules */
  overflow-x: hidden;
  margin: 0;
}

/* Ensure headers keep their Bungee Tint styling (these rules already exist,
   but reaffirm them so the body font doesn't override header font) */
h1, h2 {
  font-family: "Bungee Tint", sans-serif;
}

/* --------- Movie-pair layout: force side-by-side until tablet (900px) --------- */
/* ensure moviePair stays side-by-side on wide screens */
#moviePair {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    flex-wrap: nowrap;  /* keep them on one row until the media query triggers */
    box-sizing: border-box;
}

/* Cards should try to sit side-by-side */
#leftCard, #rightCard {
    flex: 1 1 46% !important;
    max-width: 46% !important;
    min-width: 320px !important;
    text-align: center;
    box-sizing: border-box;
}

/* At tablet/narrow widths stack vertically */
@media only screen and (max-width: 900px) {
    #moviePair {
        flex-wrap: wrap;      /* allow stacking on tablet and smaller */
    }
    #leftCard, #rightCard {
        flex-basis: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    /* reduce poster height for stacked layout */
    .movie-poster {
        height: 300px;
        width: 100%;
        object-fit: contain;
    }
}

/* Force side-by-side (no wrap) on wide screens; allow stacking only at tablet or smaller */
@media only screen and (min-width: 901px) {
  #moviePair {
    flex-wrap: nowrap !important; /* override any inline or earlier rules */
    align-items: stretch;
  }
  /* ensure cards can shrink a bit on narrow desktops but still sit side-by-side */
  #leftCard, #rightCard {
    min-width: 280px !important;
    max-width: 46% !important;
    flex-basis: 46% !important;
  }
}

/* Tablet and smaller: allow stacking */
@media only screen and (max-width: 900px) {
  #moviePair {
    flex-wrap: wrap !important;
  }
  #leftCard, #rightCard {
    flex-basis: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
