
#waterfall {
    margin: 10px;
    padding-left: 14px;
    padding-right: 14px;
}

#waterfall.min {
    margin: 0;
}

#waterfall li {
    /*position: absolute;*/
    left: 0;
    top: 0;
    opacity: 0;
    z-index: 0;
    list-style: none;
    transform: translateY(100px);
}

#waterfall li:hover {
    z-index: 1;
}

#waterfall li.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s, top 1s;
}

#waterfall li>div {
    color: rgba(0, 0, 0, 0.6);
    font-size: 32px;
    border-radius: 3px;
    margin: 5px;
    padding: 5px;
    background: rgb(255, 255, 255);
    border: 1px solid rgba(68, 68, 68, 22%);
    transition: all 0.5s;
    cursor: pointer;
    position: relative;
}

.btn-shop-now {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(11 11 11 / 51%);
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}

#waterfall li>div:hover>.btn-shop-now {
    opacity: 1;
}

.myButton {
    background: #ff5965;
    border-radius: 15px;
    border:1px solid #ff5965;
    display:inline-block;
    cursor:pointer;
    color:#ffffff;
    font-size:12px;
    font-weight:bold;
    padding:10px 24px;
    text-decoration:none;
    text-shadow:0 1px 0 #ff5965;
}

.myButton:active {
    position:relative;
    top:1px;
}

.btn-shop-now button {
    cursor: pointer;
    width: fit-content;
    width: -moz-fit-content;
    margin: 0 auto;
    transform: translateY(20px);
    transition: transform 300ms ease-in-out;
}

.btn-shop-now:hover>button {
    transform: translateY(0);
}

#waterfall li>div:hover {
    transform: translateY(-5px);
    border: 1px solid rgb(115, 113, 70);
    box-shadow: 0 6px 30px rgba(191, 178, 38, 0.3);
    transition: all 0.3s;
}

#waterfall li.min>div {
    margin: 0;
    transform: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#waterfall li.min>div:hover {
    transform: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.fandom-pop-img {
    background-color: #7e7e7e;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: calc(50px + (100 - 50) * ((100vw - 300px)/(1920 - 300))); /* Location of the box */
    padding-bottom: calc(50px + (100 - 50) * ((100vw - 300px)/(1920 - 300))); /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 80%;
    max-width: 850px;
    border-radius: 0 8px 8px 0;
    position: relative;
}

/* The Close Button */
.close {
    color: #999;
    font-size: 22px;
    line-height: 32px;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-content: center;
    border-radius: 36px;
    background-color: rgba(255, 255, 255, 0.7);
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#fandomModal{z-index: 9999;}
.modal-content {
    --w: calc(250px + (567 - 250) * ((100vw - 300px)/(1920 - 300)));
    display: flex;
    align-items: stretch;
}
.fandom-pop-img {
    width: var(--w);
    display: flex;
    justify-content: center;
    align-content: center;
    position: relative;
}

.fandom-pop-img img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: contain;
}
.fandom-pop-content{width: calc(100% - var(--w)); padding: 16px}

.lds-spinner {
    color: official;
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3px;
    left: 37px;
    width: 6px;
    height: 18px;
    border-radius: 20%;
    background: #4f4f4f;
}
.lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}
@keyframes lds-spinner {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}


@media (max-width: 760px) { /* mobile*/

    .close {
        top: 12px;
        right: 12px;
    }

    .modal-content {
        display: block;
    }
    .fandom-pop-img,
    .fandom-pop-content {
        width: 100%;
    }
    .fandom-pop-content {
        border-radius: 0 0 8px 8px;
    }

    .fandom-pop-img img {
        max-height: 75vw;
    }
}