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;
}

.starVotes1 img {
    position: relative;
    height: 2rem;
    padding: 0;
    top: -1rem;
    width: 5rem !important;
    max-width: 5rem !important;
    height: auto;
}

.starVotes2 img {
    position: relative;
    height: 2rem;
    padding: 0;
    top: -1rem;
    width: 5rem !important;
    max-width: 5rem !important;
    height: auto;
}

.inCardUp {
    z-index: 9;
    position: absolute;
    margin-top: -1.8rem;
    margin-left: 1.8rem;
    width: 7rem !important;
    max-width: 7rem !important;
    height: 8rem;
    overflow: hidden;
    opacity: .7;
}

.textScore {
    color: transparent;
    font-family: sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 4.6em;
    transform: translatey(25px);
    background: linear-gradient(cornflowerblue 30%, white, darkmagenta 60%, cornflowerblue 100%);
    background-size: contain;
    -webkit-background-clip: text;
    -webkit-text-stroke: 2x silver;
    filter: drop-shadow(5px 5px 1px black) drop-shadow(1px 1px 1px magenta);
    animation: bg-shift 0.5s ease-in-out infinite alternate;
}

.textScore h3 {
    font-size: 3.8em;
}


/* 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;
    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%;
    padding: .5rem 1rem;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
}

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

#serverResponse #textModal {
    padding: .5rem 0;
    margin: 0;
    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;
    width: 100%;
}

/* 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 chosen category page loads */
.voteCategoryBlocker {
    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;
}

.voteCategoryBlocker.voteCategoryBlockerOn {
    display: flex;
}

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

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

@keyframes voteCategorySpin {
    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;
    }
    .starVotes1 img {
        position: relative;
        height: 2rem;
        padding: 0;
        top: -1rem;
        width: 4rem !important;
        max-width: 4rem !important;
        height: auto;
    }
    .starVotes2 img {
        position: relative;
        height: 2rem;
        padding: 0;
        top: -1rem;
        width: 4rem !important;
        max-width: 4rem !important;
        height: auto;
    }
}


/* 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 {
        padding: .25rem 0;
        font-size: .9rem;
        line-height: 1.25;
    }
    #serverResponse #modalBox1 {
        padding: .25rem .5rem;
    }
}