body {
    font-weight: 500;
    font-family: 'Montserrat Alternates', sans-serif;
    --purple: #77007A;
    --red: #FE5A5F;
    color: var(--red);
    background-color: #F0EEEF;
}
a {
    text-decoration: none;
    color: var(--red);
}

main p {
    line-height: 1.6rem;
}

* {
    padding: 0;
    margin: 0;
}
#logo {
    border: none;
    background: none;
}

#logo svg {
    height: 8rem;
    max-width: 15rem;
}
#logo:hover,
#logo:active,
#logo:focus {
    transform: scale(1.05);
}

#bg {
    max-width: 100%;
    z-index: -1;
    opacity:1;
    transition: 0.5s;
    pointer-events: none;
    background: transparent;
}
#split-bg img {
    bottom: -10%;
    position: fixed;
    max-height: 90%;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: 0.5s;
}

#split-bg img:first-child {
    right: 3%;
}
#split-bg img:last-child {
    left: 3%;
}

#green {
    position: fixed;
    z-index: -1;
    max-width: 70%;
    max-height: 70%;
    right: -15%;
    top: -10%;
    pointer-events: none;
    display: none;
    transition: top 0.5s, left 0.5s, right 0.5s, bottom 0.5s;
}

#pink {
    max-width: 70%;
    max-height: 70%;
    left: -30%;
    bottom: -10%;
    position: fixed;
    pointer-events: none;
    display: none;
    z-index: -1;
    transition: top 0.5s, left 0.5s, right 0.5s, bottom 0.5s;
}


header {
    display: flex;
    flex-direction: column;
    flex-wrap:wrap;
    margin-top: 1rem;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.social {
    display: flex; 
    flex-direction: row;
    gap: 1rem;
}

.social svg {
    height: 2rem;
    width: 2rem;
    fill: var(--red);
}
.social svg:hover,
.social svg:focus,
.social svg:active {
    transform: scale(1.1);
}


header ul {
    display: flex;
    align-items: flex-end;
    gap: 0;
}

header li {
    list-style: none;
    position: relative;
}
header li:hover,
header li:active,
header li:focus{
    transform: scale(1.1);
}

header menu {
    display: none;
    position: relative;
}

header menu>ul>li::before {
    transition: 0.2s;
}
/* .left menu>ul>li:nth-child(1)::before,
.explain menu>ul>li:nth-child(2)::before,
.right menu>ul>li:nth-child(3)::before {
    content: '';
    position: absolute;
    bottom: -2rem;
    height: 1rem;
    width: 1rem;
    background: var(--red);
    left: 50%;
    border-radius: 50%;
    transform: translateX(-50%) scale(1);
} */

#selected-dot {
    position: absolute;
    height: 1rem;
    width: 1rem;
    background: var(--red);
    top: 7rem;
    left: 3.5rem;
    transform:  translateX(-50%) scale(0);
    border-radius: 50%;
    transition: 0.2s;
}

.left #selected-dot {
    left: 3.5rem;
    transform: translateX(-50%) scale(1);
}
.right #selected-dot {
    left: unset;
    left: calc(100% - 3.5rem);
    transform: translateX(-50%) scale(1);
}
.explain #selected-dot {
    left: 50%;
    transform: translateX(-50%) scale(1);
}

.explain.right menu>ul>li:nth-child(3)::before,
.explain.left menu>ul>li:nth-child(1)::before {
    transform:  translateX(-50%) scale(0);
}


header li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    background: none;
    justify-content: flex-end;
    gap: 1rem;
    max-width: 7rem;
    cursor: pointer
    
}
header li a p{
    text-transform: uppercase;
    text-align: center;
    color: var(--purple);
    font-weight: 800;
    font-family: 'Montserrat Alternates', sans-serif;
}
li svg {
    max-height: 2.5rem;
    max-width: 4rem;
    fill: var(--red);
}

header li ul {
    display: none;
}

#mis-miks-kuidas {
    line-height: 2rem;
    font-size: 1.1rem;
    transition: 0.5s;
    margin-top: 1rem;
    text-align: center;
    max-width: 80%;
    margin: 3rem auto 0;
}

#mis-miks-kuidas button {
    text-align: center;
    font-weight: 800;
    border:none;
    color: var(--red);
    font-family: 'Montserrat Alternates';
    font-size: 1rem;
    text-transform: uppercase;
}
#mis-miks-kuidas p {
    margin-bottom: 1rem;
    
}
#soeta-ja-toeta {
    gap: 2rem;
    transition: 0.5s;
    max-width: 80%;
    margin: 5rem auto;
    text-align: center;

}
#soeta-ja-toeta p {
    display: inline-block;
    font-size: 1.1rem;
    margin-top: 1rem;
}
.about-names {
    display: none;
}
#soeta-ja-toeta a {
    display: inline;
    font-size: 1.1rem;
    text-decoration: underline;
}

#kuula-ja-loe {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 5rem auto 0;
    max-width: 80%;
    text-align: center;
    transition: 0.5s;
}

.episood {
    display: flex;
    flex-direction: column;
}
.episood>div {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#tekst .episood p {
    margin-bottom: 0;
    color: var(--purple);
}


.episood img {
    height:30px;
    max-width: 30px;
}
.episood a {
    display: flex;
    align-items:center;
    text-align: center;
    flex-direction: column;
    text-decoration: none;
}
.episood a:hover,
.episood a:active,
.episood a:focus {
    transform: scale(1.1);
}


.episood a p {
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    line-height: 12px;
    margin: 0.1rem 0;
    max-width: 50px;
}

@media screen and (min-width: 900px) {
    #bg {
        position: fixed;
        max-height: 70%;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: -1;
    }
    .header-bg {
        height: 15rem;
        width: 100%;
        z-index: -2;
        position: fixed;
        background: linear-gradient(180deg, rgba(240,238,239,1) 0%, rgba(240,238,239,1) 85%, rgba(240,238,239,0) 100%);
    }
    header {
        margin-top: 4rem;
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        width: 100%;
        z-index: 1;
    }
    header menu {
        display: block;
    }
    header ul {
        gap: 3rem;
    }
    #soeta-ja-toeta .support-names {
        display: none;
    }
    .about-names {
        display: inline-block;
    }

    #soeta-ja-toeta,
    #kuula-ja-loe,
    #mis-miks-kuidas {
        opacity: 0;
        overflow: hidden;
        height: 0;
        transform: translateY(-5rem);
        pointer-events: none;
        z-index: -3;
    }
    #mis-miks-kuidas {
        width: 33%;
        max-width: 26rem;
        margin-top: 11rem;
        position: absolute;
        padding: 5rem;
        left: 50%;
        transform: translate(-50%, -5rem);
    }
    #soeta-ja-toeta {
        position: absolute;
        top: 0;
        max-width: 26rem;
        transform: translateX(-5rem);
        margin-top: 11rem;
        padding: 4rem;
        right: 50%;
    }
    #kuula-ja-loe {
        position: absolute;
        top: 0;
        transform: translateX(-5rem);    
        left: 50%;
        margin-top: 11rem;
        padding: 4rem;
        max-width: 26rem;
    }

    .social {
        flex-direction: column;
    }
    #green,#pink {
        display: block;
    }


    .explain #split-bg img {
        opacity: 1;
        bottom: 0;
    }
    .explain #mis-miks-kuidas {
        opacity: 1;
        pointer-events: all;
        transform: translate(-50%, 0);
    }
    
    .left #kuula-ja-loe {
        opacity:1;
        transform: translateX(0);
        pointer-events: all;
        height: unset;
    }

    .left #pink {
        bottom: 50%;
        left: 20%;
        transform: rotate(-60deg);
    }
    .left #green {
        transform: rotate(0deg);
        right: -10%;
        top: 55%;
    }
    .left #bg {
        left: 30%;
        opacity:1;
    }

    .right #soeta-ja-toeta {
        opacity: 1;
        transform: translateX(0);
        pointer-events: all;
        height: unset;
    }
    .right #pink {
        bottom: -30%;
        left: -20%;
        transform: rotate(-30deg);
    }
    .right #green {
        transform: rotate(-90deg);
        right: 20%;
        top: -20%;
    }

    #konto,#jur-nimi {
        cursor:pointer;
        padding-right: 0.2rem;
        position: relative;
        display: inline-block;
    }
    #jur-nimi:hover,
    #jur-nimi:focus,
    #jur-nimi:active,
    #konto:hover,
    #konto:focus,
    #konto:active,
    #jur-nimi.clicked,
    #konto.clicked {
        transform:scale(1.05);
    }
    #jur-nimi::before{
        content: "juriidiline nimi kopeeritud";
    }
    #konto::before {
        content: "konto number kopeeritud";
    }
    #jur-nimi::before,
    #konto::before {
        font-weight: 800;
        color: var(--red);
        pointer-events: none;
        padding: 0.5rem 1rem;
        border-radius: 2rem;
        background:#F0EEEF;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%) scale(0);
        opacity: 0;
        border: 1px solid var(--red);
        text-wrap: nowrap;
        font-size: 0.8rem;
        transition: 0.2s;
    }
    #jur-nimi.clicked::before,
    #konto.clicked::before {
        opacity: 1;
        transform: translateX(-50%) scale(1);
        top: -3rem;
    }


    .right #bg {
        left: 70%;
        opacity:1;
    }
    .explain #kuula-ja-loe,
    .explain #soeta-ja-toeta {
        opacity: 0;
        height: 0;
        overflow:hidden;
    }
    .explain #pink {
        bottom: 55%;
        left: 5%;
        transform: rotate(60deg);
    }
    .explain #green {
        transform: rotate(-30deg);
        right: 0;
        top: 55%;
    }
    .explain #mis-miks-kuidas {
        height: unset;
    }
    .explain #bg {
        opacity: 0;
    }
    .episood:hover,
    .episood:focus,
    .episood:active {
        transform: scale(1.05);
    }

}
@media screen and (min-width: 1200px) {
    header {
        gap: 6rem;
    }
}

