@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html,
body {
    padding: 0 !important;
    margin: 0 !important;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    color: #FFF;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body:has(.begin) {
    background: url('../images/bg-begin.jpg');
    min-height: 100vh !important;
    cursor: pointer;
}

body:has(.home) {
    background: url('../images/bg-home.jpg');
}

body:has(.result) {
    background: url('../images/bg-result.jpg');
}

body:has(.begin),
body:has(.home),
body:has(.result) {
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100%;
}

img {
    pointer-events: none;
}

.logo {
    width: 7.5rem;
    height: 3.8rem;
}

.font-weight-semibold {
    font-weight: 600;
}

.home,
.result {
    padding-top: 3.5vw;
}

.home h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.home .note__file {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: -2vw;
}

.home .note__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #F5E44D;
}

.home .note__item {
    padding: 0 1.5rem;
    white-space: nowrap;
}

.home .note__item img {
    max-width: 100%;
    height: auto;
}

.home .note__item p {
    font-weight: 700;
}

.home .upload {
    position: relative;
    aspect-ratio: 1/1;
}

.home .upload__frame {
    top: 0;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    z-index: -1;
}

.home .upload__button {
    color: #930000;
    font-size: 1.6rem;
    font-weight: 700;
    background-color: #FFF;
    border-radius: 50%;
    padding: 10%;
    aspect-ratio: 1/1;
}

.loading .loading__frame {
    max-height: 60vh;
    width: auto;
}

.loading .loading__text {
    font-size: 2rem;
    font-weight: 700;
}

#uploadModal .modal-content {
    color: white;
    background: linear-gradient(to bottom, #D2183E, #250175);
    border: solid 2px #FFF;
    border-radius: 1.2rem;
}

#uploadModal .modal-title {
    font-size: 1.8rem;
    font-weight: 700;
}

#uploadModal .upload-box {
    min-height: 15rem;
    border: 1px dashed white;
    border-radius: 1rem;
    padding: 2rem 0;
    text-align: center;
}

#uploadModal .note {
    font-size: 1.6rem;
    font-weight: 500;
}

#uploadModal .btn-browse {
    border-radius: .5rem;
    padding: .5rem 1.5rem;
    font-size: .8rem;
}

#uploadModal .gender {
    gap: 2.5rem;
}

#uploadModal .gender__item {
    background-color: #FFF;
    border-radius: .5rem;
    width: 5rem;
    aspect-ratio: 1/1;
    opacity: .7;
    cursor: pointer;
}

#uploadModal .gender__item.active {
    opacity: 1;
}

#uploadModal .modal-bottom {
    gap: 1rem;
}

#uploadModal .btn-bottom {
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: .5rem;
    padding: .5rem 0;
}

#uploadModal .btn-light {
    background-color: white;
    color: black;
}

#uploadModal .upload__text {
    font-size: 1.2rem;
    font-weight: 700;
}

#uploadModal .upload__percent {
    opacity: .7;
}

#uploadModal .progress {
    background: rgba(255, 255, 255, 0.2);
    height: 3px;
}

.result .name {
    font-size: 1.8rem;
    font-weight: 700;
}

.result .content {
    font-size: 1.1rem;
    font-weight: 500;
}

.result .content__sub {
    color: #F5E44D;
    font-size: 1.4rem;
    font-weight: 600;
}

.result .btn-share {
    color: #FFF;
    font-size: 1.4rem;
    font-weight: 600;
    background-color: #5A8EFF;
    border: solid 1px #5A8EFF;
    border-radius: .5rem;
    padding: .5rem 2.5rem;
}

.result .image {
    max-width: 100%;
    max-height: 70vh;
    margin-bottom: -10vh;
    float: right;
}

@media (min-width: 1440px) {
    html,
    body {
        font-size: 16px;
    }

    .home,
    .result {
        max-width: 1350px;
    }
}

@media (min-width: 1920px) {
    .home {
        max-width: 1650px;
    }

    .result {
        max-width: 1450px;
    }
}

@media (max-width: 1200px) {
    html,
    body {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    html,
    body {
        font-size: 13px;
    }

    body:has(.begin) {
        background: url('../images/bg-begin_mb.jpg');
    }

    body:has(.home) {
        background: url('../images/bg-home_mb.jpg');
    }

    body:has(.result) {
        background: url('../images/bg-result_mb.jpg');
    }

    body:has(.begin),
    body:has(.home),
    body:has(.result) {
        background-size: cover;
        background-attachment: fixed;
        background-repeat: no-repeat;
        min-height: 100%;
    }

    .home,
    .result {
        padding-top: 10vw;
    }

    .loading .loading__frame {
        width: 100%;
    }

    .result .image {
        margin-bottom: 0;
    }
}

/* Animation */
@keyframes shadowPulse {
    0% {
        filter: drop-shadow(0 0 .5rem rgba(255, 255, 255, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 1.5rem rgba(255, 255, 255, 0.9));
    }
    100% {
        filter: drop-shadow(0 0 .5rem rgba(255, 255, 255, 0.6));
    }
}

.shadow-animation {
    animation: shadowPulse 2s infinite;
}
