.popup{
    display:none;
    width:100vw;
    position:fixed;
    top:0;
    left:0;
    z-index: 999999;
    height: 100%;
    justify-content: center;
    align-items: center;
}
  
.popup .content{
    padding:25px;
    max-height:60vh;
    width: 100%;
    max-width: 45rem;
    display:flex;
    flex-direction:column;
    border-radius: 0.8rem;
}
  
.popup .content-top{
    height: 20%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup .content-body{
    height:80%;
    overflow: auto;
    padding:1.5rem;
}

.popup .content-body .options{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-start;
}

.popup .content-body .option{
    background: var(--clr-grey);
    border-radius: 0.8rem;
    box-sizing: border-box;
    margin:0 0.75rem 1.5rem;
    flex: 0 0 calc(25% - 1.5rem);
    position: relative;
    align-items: center;
    opacity: 0.8;
    aspect-ratio: 1;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: var(--fw-semibold);
}

#first-come, .cus-popup{
    -webkit-filter: drop-shadow(0 0 15px rgba(252, 237, 144, 0.3));
    filter: drop-shadow(0 0 15px rgba(252, 237, 144, 0.3));
}

.cus-popup .content{
    max-height: 80vh;
    width: 90%;
    max-width: 45rem;
    box-sizing: border-box;
    margin: auto;
    position: relative;
    padding: 0;
}

.cus-popup .content-body{
    margin:0;
    box-shadow: 0px 3px 1rem rgb(86, 79, 0);
}

.cus-popup .row{
    margin-top:1.5rem;
    font-size:1.4rem;
}

.cus-popup li{
    font-size:1.4rem;
}

.cus-popup .sub-title{
    font-size:1.2rem;
    font-weight: var(--fw-semibold);
    margin-bottom:0.5rem;
}

@media only screen and (max-width:768px){
    .popup-form .content{
        padding:0.5rem !important; 
    }

    .popup-form .content-body{
        margin:0 1.5rem !important;
    }

    .popup-form form{
        padding: 1.5rem 0 !important;
    }
}


@media only screen and (max-width:480px){
    .popup .content-body .option{
        margin:0 0.5rem 1rem;
        flex: 0 0 calc(33.333% - 1rem);
    }
    .game .game-name{
        font-size: 1.4rem;
    }
}

@media only screen and (max-width:360px){
    .popup .content-body .option{
        margin:0 0.5rem 1rem;
        flex: 0 0 calc(50% - 1rem);
    }
}

.popup-form{
    background:var(--clr-grey-dark);
    max-height: 85vh;
}

.popup-form .content{
    height:100%;
    overflow: scroll;
    max-height:100%;
}

.popup .content-body .selected{
    opacity: 1;
    box-shadow: inset 0 0 0 0.15rem var(--clr-gradient-mid);
}

.popup .options .option-image{
    width: 80%;
    max-width: 6.5rem;
    margin-bottom: 1rem;
}

.popup .option-image img{
    width:100%;
    height:auto;
}

.popup .options span{
    font-size:1.2rem;
    text-align: center;
}

.popup ::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.popup ::-webkit-scrollbar-track {
    background-color: rgba(0,0,0,0);
}

.popup ::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0); 
}

.popup ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0,0,0,0);
}

.popup .media-wrap{
    margin-bottom:1.5rem;
}

.popup .media-wrap > img{
    width:100%;
    border-radius:0.8rem;
}

#first-come .description{
    font-size:1.4rem;
    text-align:center;
}

.cus-popup .description{
    font-size: 1.4rem;
    text-align: left;
}

#first-come .title, .cus-popup .title{
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: var(--fw-semibold);
    text-align: center;
}

.cus-popup .title{
    text-align: left;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: var(--fw-semibold);
}

.close-popup{
    position: absolute;
    right: 0.5rem;
    top: 0;
    transform: translateY(-50%);
}

.close-popup svg{
    padding: 0.1rem;
    background:black;
    border-radius: 0.8rem;
}

.close-popup svg > *{
    color:white;
}
