@font-face {
    font-family: 'Circe';
    src: url('/assets/fonts/Circe-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    font-family: Circe, sans-serif;
    color: #242424;
}

.main {
    position: relative;
    height: 100vh;
    width: 100vw;
}

.rds-logo {
    position: absolute;
    top: calc(50% - 42px);
    width: 100%;
    left: 0;
}

.acronym {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    animation-name: rds;
    animation-duration: 1500ms;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
}

@keyframes rds {
    0% {
        opacity: 0;
        transform: translateY(0px);
    }

    50% {
        transform: translateY(0px);
    }

    100% {
        opacity: 1;
        transform: translateY(-40px);
    }
}

.acronym.moved {
    transform: translateY(-40px);
    transition-duration: 1000ms;
}

.word {
    font-size: 72px;
    font-weight: bold;
    overflow: hidden;
}

.word.opened,
.word.closed {
    transition: all ease-in-out 1500ms;
}

.word.closed {
    opacity: .2;
}

.word-1 {
    width: 46px;
}

.word-1.opened {
    width: 292px;
}

.word-2 {
    width: 54px;
}

.word-2.opened {
    width: 436px;
}

.word-3 {
    width: 40px;
    transition: all ease-in-out 700ms;
}

.word-3.opened {
    width: 258px;
}

.transcription {
    text-align: center;
    font-size: 30px;
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(60px);
    transition: all ease 300ms;
    color: #a0a0a0;
    letter-spacing: 4px;
}

.transcription.visible {
    opacity: 1;
    transition: all ease 1000ms;
}

.contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    row-gap: 8px;
    font-size: 18px;
}

@media (max-width: 1024px) {
    .word {
        font-size: 50px;
    }

    .word-1 {
        width: 32px;
    }

    .word-1.opened {
        width: 203px;
    }

    .word-2 {
        width: 38px;
    }

    .word-2.opened {
        width: 310px;
    }

    .word-3 {
        width: 30px;
    }

    .word-3.opened {
        width: 180px;
    }
}
