body {
    background-color: #9B0064;
    color: #fff;
}

#menu-toggle:checked+#menu {
    display: block;
}

#menu li:hover {
    background-color: #ae38b2 !important;
}

#dropdown-toggle:checked+#dropdown {
    display: block;
}

a,
span {
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

a.arrow,
span.arrow {
    display: flex;
    align-items: center;
    font-weight: 600;
    line-height: 1.5;
}

a.arrow .arrow_icon,
span.arrow .arrow_icon {
    position: relative;
    margin-left: 0.5em;
}

a.arrow .arrow_icon svg,
span.arrow .arrow_icon svg {
    transition: transform 0.3s 0.02s ease;
    margin-right: 1em;
}

a.arrow .arrow_icon::before,
span.arrow .arrow_icon::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 2px;
    background: #38b2ac;
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

a.arrow:hover .arrow_icon::before,
span.arrow:hover .arrow_icon::before {
    width: 1em;
}

a.arrow:hover .arrow_icon svg,
span.arrow:hover .arrow_icon svg {
    transform: translateX(0.75em);
}

.clickItem {
    cursor: pointer;
}

.cover {
    border-bottom-right-radius: 128px;
}

.bg-blue-teal-gradient {
    background: rgb(49, 130, 206);
    background: linear-gradient(90deg, rgba(49, 130, 206, 1) 0%, rgba(56, 178, 172, 1) 100%);
}

.hotl1st_item_border_wrap {
    max-width: auto;
    padding: .4rem;
    position: relative;
    background: linear-gradient(to right, red, purple);
    padding: 2px;
    margin: .3rem;
    margin-bottom: 1rem;
    border-radius: 1.5em;
}

.hotl1st_item_border {
    background: #0f3653;
    color: #FF0000;
    padding: .4rem;
    margin: .2rem;
    border-radius: 1.2em;
}

.listImg {
    border-radius: 1.2em;
    width: 90% !important;
    margin: 0 auto 0 auto;
    mix-blend-mode: screen;
}

.containerImg {
    display: flex;
    border: white solid 1rem;
    border-radius: 1.2em;
    width: 100%;
    height: auto;
    background-color: white;
    margin-top: -1rem;
}

.columnImg {
    overflow: hidden;
    width: 50%;
}

.itemImgL {
    float: right;
    padding-left: 15%;
    padding-bottom: 0;
    overflow: hidden;
    /*mix-blend-mode: screen;*/
    object-fit: contain;
    min-height: 650px;
    max-height: 650px;
    max-width: 150%;
    overflow: hidden;
}

.itemImgR {
    float: left;
    padding-right: 15%;
    padding-bottom: 0;
    overflow: hidden;
    /*mix-blend-mode: screen;*/
    object-fit: contain;
    min-height: 650px;
    max-height: 650px;
    max-width: 150%;
    overflow: hidden;
}

.bg-sky-500\/20 {
    background-color: rgba(5, 48, 68, 0.85);
}

.bg-gray-100 {
    background-color: #9B0064;
}

.py-6 {
    padding-top: .8rem;
    padding-bottom: .8rem;
}

.mainLogo {
    width: 14rem;
    max-width: 14rem;
}

h1 {
    width: 100%;
    font-size: 3.8rem;
    font-weight: 600;
    line-height: 86%;
    background-image: linear-gradient(to left, #553c9a, #b393d3);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 3px 3px 3px rgba(179, 147, 211, 0.3);
    -webkit-text-stroke: 2px rgba(179, 147, 211, 0.8);
}

h2 {
    width: 100%;
    font-size: 1.8rem;
    line-height: 92%;
    text-align: center;
    background-image: linear-gradient(to left, #6f5e9c, #b393d3);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

#item1 .itemImg,
#item2 .itemImg {
    min-height: 18rem !important;
    height: auto !important;
    min-width: 4rem !important;
    width: auto !important;
}

.stripes1 {
    background: repeating-linear-gradient(45deg, #606dbc, #606dbc 10px, #465298 10px, #465298 20px);
    opacity: .3;
}



/* to decide mob/desktop */

.alertMegaIconRotate {
    transition: transform .4s ease-in-out;
    transform: scale(1);
}

.alertMegaIconZoomed {
    transform: scale(1.6);
}

.alertMegaIconNoZoom {
    transform: scale(1.8);
}

.menutags {
    height: 100% !important;
    max-height: 500px !important;
    overflow-y: scroll;
}

.menutag {
    color: #e7e7e7;
}


/*       ScrollBar mainMenu        */

.scrollbar {
    height: auto;
    width: auto;
    overflow: auto;
    padding: 0 10px;
}

#menu::-webkit-scrollbar {
    width: 10px;
}

#menu::-webkit-scrollbar-track {
    border-radius: 8px;
    background-color: #9B0064;
    border: 0px solid #9B0064;
}

#menu::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: #d55959;
}

.modal {
    display: none;
    z-index: 99999;
}

.modalDialog {
    display: none;
}

#modalBox0 img {
    margin: 0 auto 0 auto;
}

/* Vote confirmation overlay: covers the viewport, always centred, never scrolls */
#serverResponse {
    display: none;
    z-index: 99999;
    opacity: .95;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100% !important;
    width: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    padding: .5rem;
    box-sizing: border-box;
    overflow: hidden;
    overscroll-behavior: contain;
    /* the card is centred in the space left above the message */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #2A3030;
    color: #000;
}

#serverResponse #modalBox1 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 36rem;
    max-height: 100%;
    min-height: 0;
    padding: .5rem 1rem;
    /* auto top/bottom margins centre it above the message at the foot */
    margin: auto 0;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
}

#serverResponse .modal-action {
    width: 100%;
    margin: 0 0 .25rem 0;
    justify-content: flex-end;
}

/* vote message: last item of the overlay, so it sits at the foot of the screen */
#serverResponse #textModal {
    flex: 0 0 auto;
    width: 100%;
    max-width: 36rem;
    margin: .75rem auto 0;
    padding: 0 1rem .5rem;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    line-height: 1.35;
}

#serverResponse #randomList {
    width: 100%;
    margin-top: .25rem;
}

#serverResponse #modalBox0 {
    display: flex;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    /* the thumb keeps its own size and sits above the shares */
    position: relative;
    z-index: 2;
}

/* keep the thumb small enough to fit the screen without scrolling */
#serverResponse #modalBox0 img {
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: min(20rem, 88vw);
    max-height: 38vh;
    max-height: 38dvh;
    object-fit: contain;
}

@media (min-width: 1024px) {
    #serverResponse #modalBox0 img {
        max-width: min(30rem, 60vw);
        max-height: 44vh;
        max-height: 44dvh;
    }
}

/* big close cross in the top right corner of the overlay */
#serverResponse #serverResponseClose {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 100000;
    width: 4.5rem;
    height: 4.5rem;
    min-width: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}

#serverResponse #serverResponseClose:hover,
#serverResponse #serverResponseClose:focus-visible {
    background-color: rgba(255, 255, 255, .14);
    transform: scale(1.1);
}

/* the thumbup goes to another list, just like the "Another?" button */
#serverResponse #modalBox0 img {
    cursor: pointer;
}

/* "Another?" button, twice the size of the old random list button */
#serverResponse #randomList {
    margin-top: .75rem;
}

#serverResponse #randomList .voteAnotherBtn {
    height: 4.5rem;
    min-height: 4.5rem;
    padding: 0 2.75rem;
    font-size: 1.75rem;
    line-height: 1;
    text-transform: none;
}

/* "inside Cinema, click here to change category" + its popup */
.voteCategoryWrap {
    position: relative;
    width: 100%;
    margin: .85rem 0 0 0;
}

#voteCategoryLine {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.35;
}

.voteCategoryToggle {
    padding: 0;
    border: 0;
    background: none;
    color: #9fd0ff;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.voteCategoryToggle:hover,
.voteCategoryToggle:focus-visible {
    color: #fff;
}

.voteCategoryPopup {
    display: none;
    position: absolute;
    bottom: calc(100% + .45rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    min-width: 11rem;
    padding: .35rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: .75rem;
    background-color: #101a20;
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .45);
}

.voteCategoryPopup.voteCategoryPopupOpen {
    display: flex;
    flex-direction: column;
}

.voteCategoryItem {
    display: block;
    padding: .5rem .9rem;
    border-radius: .5rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
}

a.voteCategoryItem:hover,
a.voteCategoryItem:focus-visible {
    background-color: #588AE4;
    color: #fff;
}

.voteCategoryCurrent {
    opacity: .45;
    cursor: not-allowed;
}

/* mobile: the category names in the popup are twice as big */
@media (max-width: 767px) {
    .voteCategoryPopup {
        min-width: 13rem;
        max-height: 70vh;
        overflow-y: auto;
    }
    .voteCategoryItem {
        padding: .7rem 1.4rem;
        font-size: 2rem;
    }
}

/* spinner shown while the server builds the next page */
.pageLoadBlocker {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100001;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    background-color: rgba(8, 16, 20, .85);
    cursor: progress;
    /* easy dials: strip height, card height and shuffle speed */
    --pageLoadStripH: 10vh;
    --pageLoadCardH: 15vh;
    --pageLoadCardW: min(31.5vw, 23.25vh);
    --pageLoadCardDur: 4.4s;
    --pageLoadArcX: 19vh;
    --pageLoadArcY: 24vh;
}

.pageLoadBlocker.pageLoadBlockerOn {
    display: flex;
}

.pageLoadSpinner {
    width: 3.25rem;
    height: 3.25rem;
    border: .35rem solid rgba(255, 255, 255, .25);
    border-top-color: #9fd0ff;
    border-radius: 50%;
    animation: pageLoadSpin .9s linear infinite;
}

.pageLoadBlockerText {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    letter-spacing: .03em;
}

/* film strips built with the covers already on screen: the top one runs left
   to right and the bottom one right to left; --pageLoadStripH sets their height */
.pageLoadStrip {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    height: var(--pageLoadStripH, 10vh);
    overflow: hidden;
    background-color: rgba(0, 0, 0, .55);
}

/* halfway between its own edge and the spinner in the middle */
.pageLoadBlockerStrips .pageLoadStripTop {
    display: block;
    top: 25%;
    transform: translateY(-50%);
}

.pageLoadBlockerStrips .pageLoadStripBottom {
    display: block;
    bottom: 25%;
    transform: translateY(50%);
}

.pageLoadStripTrack {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    will-change: transform;
    animation: pageLoadStripRight 36s linear infinite;
}

.pageLoadStripTrack img {
    flex: 0 0 auto;
    height: 100%;
    width: auto;
    margin-right: .35rem;
    object-fit: cover;
}

.pageLoadStripBottom .pageLoadStripTrack {
    animation-name: pageLoadStripLeft;
}

@keyframes pageLoadStripRight {
    from { transform: translate3d(-50%, 0, 0); }
    to { transform: translate3d(0, 0, 0); }
}

@keyframes pageLoadStripLeft {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

/* a list detail only has two item images: they travel two tall parenthesis
   shaped arcs around the loading, swapping places every half turn */
.pageLoadCards {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
}

.pageLoadBlockerCards .pageLoadCards {
    display: block;
}

.pageLoadBlockerCards {
    justify-content: center;
    padding-bottom: 0;
}

.pageLoadOrbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    animation: pageLoadArcSwap var(--pageLoadCardDur, 4.4s) linear infinite;
}

.pageLoadOrbit + .pageLoadOrbit {
    animation-delay: calc(var(--pageLoadCardDur, 4.4s) * -0.5);
}

.pageLoadOrbit img {
    position: absolute;
    top: calc(var(--pageLoadCardH, 15vh) / -2);
    left: calc(var(--pageLoadCardW, 9rem) / -2);
    width: var(--pageLoadCardW, 9rem);
    max-width: none;
    height: var(--pageLoadCardH, 15vh);
    object-fit: cover;
    border-radius: .35rem;
    box-shadow: 0 .5rem 1.2rem rgba(0, 0, 0, .55);
}

/* the cards travel a tall, narrow arc (like a parenthesis) from top to bottom
   and back; they rest 0.3s at each end while the spinner keeps turning */
@keyframes pageLoadArcSwap {
    0%, 6.82% { transform: translate(0, calc(var(--pageLoadArcY) * -1)); }
    14.02% { transform: translate(calc(var(--pageLoadArcX) * .5), calc(var(--pageLoadArcY) * -.866)); }
    21.21% { transform: translate(calc(var(--pageLoadArcX) * .866), calc(var(--pageLoadArcY) * -.5)); }
    28.41% { transform: translate(var(--pageLoadArcX), 0); }
    35.61% { transform: translate(calc(var(--pageLoadArcX) * .866), calc(var(--pageLoadArcY) * .5)); }
    42.8% { transform: translate(calc(var(--pageLoadArcX) * .5), calc(var(--pageLoadArcY) * .866)); }
    50%, 56.82% { transform: translate(0, var(--pageLoadArcY)); }
    64.02% { transform: translate(calc(var(--pageLoadArcX) * -.5), calc(var(--pageLoadArcY) * .866)); }
    71.21% { transform: translate(calc(var(--pageLoadArcX) * -.866), calc(var(--pageLoadArcY) * .5)); }
    78.41% { transform: translate(calc(var(--pageLoadArcX) * -1), 0); }
    85.61% { transform: translate(calc(var(--pageLoadArcX) * -.866), calc(var(--pageLoadArcY) * -.5)); }
    92.8% { transform: translate(calc(var(--pageLoadArcX) * -.5), calc(var(--pageLoadArcY) * -.866)); }
    100% { transform: translate(0, calc(var(--pageLoadArcY) * -1)); }
}

@keyframes pageLoadSpin {
    to {
        transform: rotate(360deg);
    }
}

/* no page scroll behind the overlay */
body.alertOpen {
    overflow: hidden;
}


/*mobile*/

@media (min-width: 320px) and (max-width: 480px) {
    .py-6 {
        padding-top: .4rem;
        padding-bottom: .8rem;
    }
    #mainContent {
        height: 150%;
        min-height: 1300px;
        margin-bottom: 3rem;
        overflow: hidden;
    }
    #menu {
        width: 100% !important;
    }
    #menu nav {
        color: #fff !important;
        background-color: #588AE4 !important;
        font-weight: 800;
        font-size: 1.2rem;
    }
    #menu li:hover {
        background-color: #ae38b2 !important;
    }
    #modalBox0 img {
        max-width: 20rem;
    }
    .listTop {
        position: relative;
        float: left;
        margin-top: -68%;
        font-size: 8rem;
        font-weight: 800;
        font-style: italic;
        background-image: linear-gradient(to left, #553c9a, #b393d3);
        color: transparent;
        background-clip: text;
        -webkit-background-clip: text;
        text-shadow: 3px 3px 3px rgba(179, 147, 211, 0.3);
        -webkit-text-stroke: 2px rgba(179, 147, 211, 0.8);
    }
    .itemImgL {
        float: right;
        padding-top: 25%;
        padding-bottom: 0;
        overflow: hidden;
        object-fit: contain;
        min-height: 25rem;
        max-height: 25rem;
        max-width: 150%;
        overflow: hidden;
    }
    .itemImgR {
        float: left;
        padding-top: 25%;
        padding-bottom: 0;
        overflow: hidden;
        object-fit: contain;
        min-height: 25rem;
        max-height: 25rem;
        max-width: 150%;
        overflow: hidden;
    }
}


/* Desktop */

@media (min-width: 1024px) {
    .modal-box {
        overflow-x: hidden !important;
    }
    .cover {
        border-bottom-right-radius: 256px;
    }
    #mainContent {
        padding-top: 2rem;
        min-height: 1300px;
    }
    .menutags {
        float: left;
        display: inline-block;
        width: 74%;
        height: 100% !important;
        max-height: 500px !important;
        overflow-y: hidden;
        overflow-x: scroll;
    }
    #modalBox0 img {
        max-width: 30rem;
    }
}

.noneBothButton {
    position: relative;
    left: 0.8rem;
    top: 0rem;
}

/* Add pop animation for score elements */
@keyframes pop {
    0% {
        opacity: 0.1;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity:.8;
    }
}

/* Apply animation to score elements */
.score-pop-animation {
    animation: pop 1.5s ease-in-out;
    transform-origin: center;
}

/* short screens (landscape phones): shrink further so nothing needs scrolling */
@media (max-height: 560px) {
    #serverResponse #modalBox0 img {
        max-height: 26vh;
        max-height: 26dvh;
    }
    #serverResponse #textModal {
        margin-top: .35rem;
        padding: 0 .5rem .25rem;
        font-size: .85rem;
        line-height: 1.25;
    }

    #serverResponse #modalBox1 {
        padding: .25rem .5rem;
    }
}

/*
The percentages live in the confirmation overlay, one on each side of the
thumbup (the left item on the left, the right item on the right). They are not
shown in the cards any more: the translucent overlay would cover them.
*/
#serverResponse #voteScoreRow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    /* the percentages size themselves against this row (see .votePct) */
    container-type: inline-size;
    /*
    The rotated thumb only paints about 46% of its box width, so that is the
    strip taken out of the middle; each percentage is centred in the room left
    on its side (46% of the thumb box below, same caps as the thumb itself).
    */
    --voteThumbPaint: min(9.3rem, 41vw, 17.7dvh);
}

@media (min-width: 1024px) {
    #serverResponse #voteScoreRow {
        --voteThumbPaint: min(13.95rem, 27.9vw, 20.5dvh);
    }
}

/* same look the percentages had on the cards: gradient fill, black and
   magenta drop shadows, heavy sans-serif */
#serverResponse .votePct {
    /* anchored to the row edges and centred in the free space of its side */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: calc(50% - var(--voteThumbPaint) / 2);
    margin: 0;
    color: transparent;
    font-family: sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(cornflowerblue 30%, white, darkmagenta 60%, cornflowerblue 100%);
    background-size: contain;
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(5px 5px 1px black) drop-shadow(1px 1px 1px magenta);
    /* big enough for "100%" to fill most of the room beside the thumb */
    font-size: clamp(1.7rem, 7.8vw, 3.25rem);
    letter-spacing: -.05em;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

#serverResponse #votePctLeft {
    left: 0;
}

#serverResponse #votePctRight {
    right: 0;
}

@keyframes votePctFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* animates the scale property, not transform, so the vertical centring stays */
@keyframes votePctPopIn {
    0% {
        scale: .55;
    }
    55% {
        scale: 1.18;
    }
    100% {
        scale: 1;
    }
}

/* both shares fade in; the one that received the vote also pops */
@supports (container-type: inline-size) {
    /* sizes with the row, so "100%" always fills most of its side */
    #serverResponse .votePct {
        font-size: 9.8cqw;
    }
}

#serverResponse .votePct.votePctFade {
    animation: votePctFadeIn .45s ease-out both;
}

#serverResponse .votePct.votePctPop {
    animation: votePctFadeIn .45s ease-out both,
        votePctPopIn .6s cubic-bezier(.2, 1.4, .4, 1) .1s both;
}

/* with motion turned off the shares simply show up in place */
@media (prefers-reduced-motion: reduce) {

    #serverResponse .votePct.votePctFade,
    #serverResponse .votePct.votePctPop {
        animation: none;
    }
}

/* Vote tally in small print, where the "None!next!" button used to be */
.listVotesSummary {
    margin-top: 1rem;
    padding: 0 1rem;
    text-align: center;
    font-size: .8rem;
    line-height: 1.4;
    color: #4b5563;
}
/* on wide screens there is room for a wider gap between the shares and the thumb */
@media (min-width: 1024px) {
    #serverResponse #voteScoreRow {
        gap: 2rem;
    }
}
