@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Onest:wght@100;500&family=Poppins:wght@100;300;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=EB+Garamond:ital@1&family=Onest:wght@100;500&family=Poppins:wght@100;300;800&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: "Onest";
    flex-direction: column;
    background: linear-gradient(135deg, #393f95ff 10%, #b72485ff 40%, #fc0965ff 70%, #ef5734ff);
}

h1 {
    font-weight: 500;
    margin: 1rem 0;
}

p {
    font-family: "EB Garamond", serif;
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 3rem;
}

.loader {
    height: 70px;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: 1s ease-out;
}

.section:hover{
    cursor: pointer;
}

.section:hover ~ .loader {
    opacity: 100%;
    transition: 1s ease-in;
}

.loader .stroke {
    display: block;
    position: relative;
    background: #fff;
    height: 100%;
    width: 5px;
    border-radius: 50px;
    margin: 0 1rem;
    animation: animate 1.2s ease-in-out infinite;
}

@keyframes animate {
    50% {
        height: 20%;
    }
    100% {
        height: 100%;
    }
}

.stroke:nth-child(1){
    animation-delay: 0s;
}
.stroke:nth-child(2){
    animation-delay: 0.2s;
}
.stroke:nth-child(3){
    animation-delay: 0.4s;
}
.stroke:nth-child(4){
    animation-delay: 0.6s;
}
.stroke:nth-child(5){
    animation-delay: 0.8s;
}
.stroke:nth-child(6){
    animation-delay: 0.8s;
}
.stroke:nth-child(7){
    animation-delay: 0.6s;
}
.stroke:nth-child(8){
    animation-delay: 0.4s;
}
.stroke:nth-child(9){
    animation-delay: 0.2s;
}
.stroke:nth-child(10){
    animation-delay: 0s;
}