:root {
    --gradient-rainbow: linear-gradient(270deg, #bc1419 0%, #a05eb5 50.74%, #0c94a7 100%);
    --popup-background: linear-gradient(145deg, rgba(28,52,90,1) 75%, rgba(160,94,181,.7) 100%);
    --red: #be0f0f;
    --blue: #1c345a;
}

html {
    font-size: 30px;
    user-select: none;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    height: 3840px;
    width: 2160px;
    background-color: #e8ebef !important;
}

header {
    background: var(--gradient-rainbow);
    position: relative;
    height: 306px;
    background-color: white;
}


.header-logo {
    width: 520px;
    position: absolute;
    top: 60px;
    left: 60px;
}

header h1 {
    color: white;
    font-size: 2.5rem;
    text-align: center;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.pn-logo {
    position: absolute;
    top: 30px;
    right: 60px;
}

main {
    padding-top: 4.5rem;
}

.main-section {
    position: relative;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    background-color: white;
    width: 2020px;
    border-radius: 0 90px 90px 0;
}

.section-logo {
    position: absolute;
    top: 15px;
    right: 15px;
}

.popup-btn {
    position: absolute;
    right: -15px;
    bottom: -15px;
    cursor: pointer;
}

.first .popup-btn {
    animation: pulse-1 2s infinite;
}

.second .popup-btn {
    animation: pulse-2 2s infinite;
}

.third .popup-btn {
    animation: pulse-3 2s infinite;
}


.section-title {
    border: 1px solid var(--red);
    border-radius: 50px;
    font-size: 45px;
    line-height: 1em;
    padding: .3em 1em;
    width: max-content;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -50px;
    background-color: white;
}

.section-title p {
    margin: 0;    
}

.rainbow-text {
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.first .section-par {
    padding-top: 125px;
}

.first .images {
    display: flex;
    justify-content: center;
    gap: 90px;
}

.images div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.images div p {
    margin-top: 25px;
    width: fit-content;
}

.with-before {
    margin-top: calc(.8em + 25px) !important;
    margin-left: 50px;
    position: relative;
}

.with-before::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url(../images/before.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    left: -2.1rem;
}

.section-content {
    padding: 80px 0 40px 0;
    display: flex;
    align-items: center;
    gap: 25px;
    padding-left: 60px;
    padding-right: 60px;
}

.section-content > div {
    width: 1000px;
    margin-top: -110px;
}

.section-content div * {
    line-height: 1.1em;
    margin-bottom: 0;
}

.divide {
    border-bottom: 2px solid #bbc2cd;
    margin-top: 1.2rem !important;
    margin-bottom: 1.4rem !important;
}

.third .section-image{
    margin-left: -150px;
}

.third .section-content > div {
    width: 850px;
    margin-top: -110px;
}

.big {
    font-weight: 700;
    font-size: 50px;
}

.red {
    color: var(--red);
}

.popup-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fffA;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    position: relative;
    height: 3200px;
    width: 2060px;
    background: var(--popup-background);
    background-color: var(--blue);
    border-radius: 90px;
    border: 6px solid white;
    box-shadow: 12px 12px 18px #0004;
    padding: 60px 60px;
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 12px solid #bbc2cd;
    padding-bottom: 60px;
}

.popup-header .popup-icon {
    width: 440px;
}

.popup-header .popup-title {
    font-size: 88px;
    font-weight: 600;
    margin-bottom: 0;
    text-align: end;
    height: 440px;
    display: flex;
    align-items: center;
}

.popup-main {
    padding-top: 60px;
    font-size: 52px;
    line-height: 80px;
    text-align: center;
}

.popup-main > p {
    color: white;
}

.popup-section {
    position: relative;
    border-radius: 90px;
    background-color: #fffb;
    width: 100%;
    padding: 60px 30px;
    margin-top: 80px;
}

.popup-section p {
    color: var(--blue);
    margin-bottom: 0;
}

.lesional-type {
    width: fit-content;
    opacity: 0;
}

.lesional-type .name {
    font-weight: 600;
    font-size: 48px;
    line-height: 1.2em;
}

.lesional-type .desc {
    font-size: 40px;
    letter-spacing: -2px;
    line-height: 1.2em;
}

.popup-section .section-title {
    background-color: white;
    top: -50px
}

.graph {
    margin-top: -10px;
}

.photo-section {
    opacity: 0;
}

.photo-desc {
    font-size: 48px;
    line-height: 1.2em;
    letter-spacing: -2px;
}

.popup-main .scheme {
    border: 2px solid #bbc2cd;
    border-radius: 90px;
    margin-top: 1em;
    height: 1750px;
    padding: 25px;
}

.popup-main .scheme .scheme-content {
    background-color: #fff1;
    width: 100%;
    height: 100%;
    border-radius: 90px;
    padding: 60px;
    position: relative;
}

.scheme-img {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
}

.scheme-content p {
    position: absolute;
    color: white;
    line-height: 1.2em;
}

.img-label {
    font-size: 36px;
}

.desc-label {
    font-size: 50px;
    opacity: 0;
    transition: opacity .5s .5s;
}

.symptoms {
    top: 610px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity .5s .5s;
}

.impact {
    top: 1200px;
    left: 400px;
    opacity: 0;
    transition: opacity .5s 2.1s;
}

.well-being {
    top: 1200px;
    right: 370px;
    opacity: 0;
    transition: opacity .5s 1.3s;
}

.skin-lesion {
    left: 190px;
    top: 160px;
    text-align: end;
}

.pruritus {
    right: 270px;
    top:160px;
    text-align: start;
}

.desc-label span{
    display: block;
    margin-bottom: .8em;
    line-height: 1.2em;
}

.bottom-left {
    width: fit-content;
    position: absolute;
    color: white;
    font-size: 38px;
    left: 300px;
    bottom: -10px;
    opacity: 0;
    transition: opacity .5s 2.1s;
}

.bottom-right {
    width: fit-content;
    position: absolute;
    color: white;
    font-size: 38px;
    right: 300px;
    bottom: -10px;
    opacity: 0;
    transition: opacity .5s 1.3s;
}

.rainbow-bg {
    background: var(--gradient-rainbow);
    border-radius: 130px;
    color: white;
    padding: 30px 60px;
}

.percentage {
    font-size: 130px;
}

.rainbow-bg p {
    font-size: 48px;
    line-height: 1em;
    text-align: left;
    margin-bottom: 0;
}

.hyperpigmentation-1 {
    height: 1214px;
    padding-top: 80px;
}

.hyperpigmentation-1 img {
    padding-top: 100px;
}


.hyperpigmentation-1 .diagram-content {
    width: 1250px;
    height: 1024px;
    position: relative;
}

.hyperpigmentation-1 .diagram-content p {
    font-size: 42px;
    line-height: 1em;
}

.diagram-content .top-label {
    font-size: 50px;
    line-height: 1em;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.diagram-content .epidermis {
    font-size: 58px;
    line-height: 1em;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
}

.diagram-content .step-1 {
    opacity: 0;
    transition: opacity .7s;
    transition-delay: 1s;
}

.diagram-content .step-2 {
    opacity: 0;
    transition: opacity .7s;
    transition-delay: 1.7s;
}

.diagram-content .step-3 {
    opacity: 0;
    transition: opacity .7s;
    transition-delay: 2.4s;
}

.diagram-content .step-4 {
    opacity: 0;
    transition: opacity .7s;
    transition-delay: 3.1s;
}

.diagram-content .step-2.arrow-down::after {
    transition-delay: 2.4s;
}

.diagram-content .step-3.arrow-down::after {
    transition-delay: 3.1s;
}

.diagram-content .epidermis::before {
    content: '';
    position: absolute;
    left: calc(-50% - 40px);
    top: calc(50% - 5px);
    width: 140px;
    height: 110px;
    background-image: url(../images/arrow-90.png);
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity .7s;
    transition-delay: 1.7s;
}
.diagram-content .epidermis::after {
    content: '';
    position: absolute;
    right: calc(-50% - 40px);
    top: calc(50% - 5px);
    width: 140px;
    height: 110px;
    transform: rotateY(180deg);
    background-image: url(../images/arrow-90.png);
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity .7s;
    transition-delay: 1.7s;
}

.diagram-content .show-arrow::before, .diagram-content .show-arrow::after {
    opacity: 1;
}

.arrow-down::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 30px);
    width: 55px;
    height: 110px;
    background-image: url(../images/arrow-down.png);
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .7s;
}

.arrow-right-down::after {
    content: '';
    position: absolute;
    left: calc(100% + 20px);
    top: calc(50% - 5px);
    width: 80px;
    height: 196px;
    background-image: url(../images/arrow-90-long.png);
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .7s;
    transition-delay: 3.1s;
}

.left-1 {
    position: absolute;
    top: 270px;
    left: 115px;
}

.right-1 {
    position: absolute;
    top: 280px;
    right: 270px;
}

.left-2 {
    position: absolute;
    left: 170px;
    top:560px 
}

.right-2 {
    position: absolute;
    top: 520px;
    right: 295px;
}

.left-3 {
    position: absolute;
    left: 205px;
    top:850px; 
}

.right-3 {
    position: absolute;
    top: 780px;
    right: 35px;
}

.hyperpigmentation-2 {
    margin-top: 100px;
    height: 740px
}

.hyperpigmentation-2 .section-info {
    font-size: 50px;
    color: var(--blue);
    margin-top: .3em;
    line-height: 1.2em;
}

.hyperpigmentation-2 .seq-element {
    color: var(--blue);
    font-size: 46px;
    line-height: 1em;
    display: inline-block;
    position: relative;
    text-align: start;
}

.arrow-after {
    margin-right: 100px;
}

.arrow-after::after {
    content: '';
    background-image: url(../images/arrow-blue.png);
    background-repeat: no-repeat;
    background-position: center;
    width: 166px;
    height: 55px;
    position: absolute;
    left: 120%;
    top: calc(50% - 25px);
}


.popup-footer {
    padding-top: 2em;
    font-size: 24px;
    line-height: 1.2em;
    color: white;
    position: absolute;
    bottom: 60px;
    left: 60px;
}

.close-btn {
    width: 150px;
    height: 150px;
    background-color: white;
    border: 3px solid var(--blue);
    border-radius: 50%;
    position: absolute;
    top: -40px;
    right: -40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.close-btn span {
    color: var(--blue);
    font-size: 80px;
}

footer {
    font-size: .5rem;
    position: absolute;
    bottom: 0;
    border-bottom: 30px solid var(--red);
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 0 60px;
}

footer img {
    width: 630px;
}

@keyframes pulse-1 {
    0% {
        transform: scale(1);
    }
    16.5% {
        transform: scale(1.2);
    }
    33% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse-2 {
    0% {
        transform: scale(1);
    }
    33% {
        transform: scale(1);
    }
    49.5% {
        transform: scale(1.2);
    }
    66% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse-3 {
    0% {
        transform: scale(1);
    }

    66% {
        transform: scale(1);
    }
    82.5% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

