.lang-en {
    .it {
        display: none !important;
    }

    .lv {
        display: none !important;
    }
}

.lang-lv {
    .en {
        display: none !important;
    }

    .it {
        display: none !important;
    }
}

.lang-it {
    .en {
        display: none !important;
    }

    .lv {
        display: none !important;
    }
}

:root {
    --pav-blue: #0f007c;
    --pav-gray: rgb(235, 235, 235);
}

@font-face {
    font-family: Antiquarian, sans-serif;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: Alfa-Owner;
    src: url(fonts/AlfaownerScript-BoldItalic-LV.otf);
    font-weight: 400;
}

@font-face {
    font-family: "antiquarian-scribe", sans-serif;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: Inconstant;
    src: url(fonts/Inconstant-Regular.otf);
    font-weight: 400;
}

@keyframes glide {
    0% {
        -webkit-transform: translateX(0) translateY(0) rotate(0);
    }

    10% {
        -webkit-transform: translateX(-30%) translateY(-70%) rotate(40deg);
    }

    20% {
        -webkit-transform: translateX(-45%) translateY(-50%) rotate(45deg);
    }

    30% {
        -webkit-transform: translateX(-35%) translateY(-55%) rotate(180deg);
    }

    40% {
        -webkit-transform: translateX(-50%) translateY(-50%) rotate(250deg);
    }

    50% {
        -webkit-transform: translateX(-40%) translateY(-60%) rotate(315deg);
    }

    60% {
        -webkit-transform: translateX(-50%) translateY(-55%) rotate(369deg);
    }

    70% {
        -webkit-transform: translateX(-55%) translateY(-45%) rotate(405deg);
    }

    80% {
        -webkit-transform: translateX(-35%) translateY(-50%) rotate(430deg);
    }

    90% {
        -webkit-transform: translateX(-40%) translateY(-60%) rotate(450deg);
    }

    100% {
        -webkit-transform: translateX(0) translateY(0) rotate(720deg);
    }
}

body {
    padding: 0;
    padding-top: 100px;
    margin: 0;
    overflow-x: hidden;
    background-color: var(--pav-gray);
    display: flex;
    justify-content: center;
    position: relative;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-family: Inconstant;
}

.bg {
    opacity: 1;
    background-color: var(--pav-gray);
    width: 5000px;
    aspect-ratio: 1;
    position: fixed;
    top: -50%;
    left: -50%;
    z-index: -1;
    animation: glide ease-in-out 1000s infinite;
    transition: opacity 0.5s;
}

.hidden.bg {
    opacity: 0;
}

.paused.bg {
    animation-play-state: paused;
}

.content {
    /* width: fit-content; */
    height: 100%;
    width: 100%;
    max-width: 1000px;
    position: relative;
}

.footer {
    position: absolute;
    left: 10px;
    top: calc(100% - 70px);
    font-family: Inconstant;
    width: fit-content;

    a {
        color: black;
        text-decoration: underline;

        &:hover,
        &:focus {
            text-decoration: none;
        }
    }
}

.top-bar {
    z-index: 10;
    top: 0;
    left: 0;
    position: fixed;
    width: 100%;
    height: 40px;
    font-size: 16pt;
    margin-top: 20px;
    display: none;
    flex-direction: row;
    justify-content: space-evenly;

    /* gap: 1%; */
    .divider {
        width: 10px;
        user-select: none;
        color: var(--pav-blue);
        font-family: "antiquarian-scribe";
        font-size: 30pt;
    }

    p {
        color: var(--pav-blue);
        font-family: "antiquarian-scribe";
        text-decoration: none;
        padding: 0;
        margin: 0;
        font-size: 30pt;
    }
}

@media screen and (max-width: 800px) {
    .top-bar {
        display: flex;
    }
}

.logo {
    height: 150px;
    display: flex;
    justify-content: space-between;
    margin: 0 26px;

    img {
        height: 100%;
    }

    .languages {
        position: relative;

        img {
            position: absolute;
            top: 0;
            left: 0;
            height: 80px;
        }

        a {
            color: var(--pav-blue);
            position: absolute;
            font-family: "antiquarian-scribe";
            font-size: 30pt;
            text-decoration: none;
            transition: transform 0.2s;
        }

        :nth-child(2) {
            top: 11px;
            left: 38px;
            transform: rotate(-18deg) scale(1);

            &:hover,
            &:focus {
                transform: rotate(-18deg) scale(1.2);
            }
        }

        :nth-child(3) {
            top: 16px;
            left: 93px;
            transform: rotate(4deg);

            &:hover,
            &:focus {
                transform: rotate(4deg) scale(1.2);
            }
        }
    }
}

@media screen and (max-width: 800px) {
    .logo {
        height: 100px !important;
        margin: 0 18px;

        .languages {
            img {
                height: 60px;
            }

            a {
                font-size: 24pt;
            }

            :nth-child(2) {
                top: 7px;
                left: 28px;
                transform: rotate(-18deg);
            }

            :nth-child(3) {
                top: 11px;
                left: 69px;
                transform: rotate(8deg);
            }
        }
    }
}

.paragraphs {
    width: fit-content;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.title {
    height: fit-content;

    h1 {
        color: var(--pav-blue);
        font-size: 37pt;
        margin-top: 30px;
        text-indent: -30px;
        margin-left: 40px;
        line-height: 60px;
        font-family: Antiquarian;
    }
}

.description {
    width: calc(100% - 30px);
    margin: 15px;
    font-family: Inconstant;
    font-weight: bold;
    font-size: 13pt;
    margin-bottom: 60px;
}

.block {
    h2 {
        font-family: "antiquarian-scribe";
        text-align: center;
        /* margin-right: 13px; */
        color: var(--pav-blue);
        font-size: 25pt;
    }

    h3 {
        font-family: Inconstant;
        font-size: 12pt;
        text-align: left;
        margin: 0;
        margin-bottom: 5px;
        margin-top: 20px;
        margin-left: 10px;
    }

    h4 {
        font-family: Inconstant;
        font-size: 12pt;
        text-align: left;
        margin: 0;
    }

    ul {
        margin-bottom: 10px;
    }

    p {
        /* margin: 15px; */
        font-family: Inconstant;
        font-size: 12pt;
        margin: 0;
        margin-bottom: 10px;
    }

    a {
        color: black;
        text-decoration: underline;

        &:hover,
        &:focus {
            text-decoration: none;
        }
    }
}

@media screen and (max-width: 800px) {
    .text {
        width: calc(100% - 15px);
        margin-left: 15px;
    }
}

.down {
    transform: translateY(200%) !important;
}

.back-to-top {
    display: none;
    position: fixed;
    height: fit-content;
    aspect-ratio: 1;
    bottom: 30px;
    right: 15px;
    text-align: center;
    user-select: none;
    cursor: pointer;
    /* backdrop-filter: blur(10px); */
    border-radius: 15px;
    padding: 5px 10px;
    transform: translateY(0);
    transition: transform 0.3s;

    .pointer {
        color: var(--pav-blue);
        width: 30px;
    }

    p {
        font-family: Alfa-Owner;
        font-size: 12pt;
        margin: 0;
        color: var(--pav-blue);
    }
}

@media screen and (max-width: 800px) {
    .back-to-top {
        display: block;
    }
}

.paragraphs {
    width: fit-content;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.section {
    width: 45%;
}

.block {
    padding: 15px;
}

.logos {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    height: fit-content;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 100px;
    padding: 0 40px;
    gap: 20px;

    img {
        display: block;
        max-height: 90px;
        max-width: 170px;
        object-fit: contain;
    }
}

#mobile-section {
    display: none;
    position: relative;
}

@media screen and (max-width: 800px) {
    body {
        flex-direction: column;
        margin-bottom: 100px;
    }

    .paragraphs {
        display: none;
    }

    #mobile-section {
        display: block;
        width: 100%;
    }

    .blank {
        display: none;
    }
}

.accessibility-options {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .acc-toggle {
        height: 30px;
        aspect-ratio: 1;
        cursor: pointer;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border: none;
        background-color: transparent;

        transition: transform 0.15s;

        &:hover,
        &:focus,
        &:focus {
            transform: scale(1.1);
        }

        &:active {
            transform: scale(0.9);
        }
    }

    .acc-buttons {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
    }

    #pause-toggle {
        background-image: url("../icon/play-pause.png");
    }

    #background-toggle {
        background-image: url("../icon/eye-open.png");
    }

    h3 {
        font-family: Inconstant;
        font-size: 10pt;
        margin: 0;
    }
}

.hidden #background-toggle {
    background-image: url("../icon/eye-closed.png") !important;
}

@media screen and (max-width: 800px) {
    .accessibility-options {
        position: fixed;
        left: 0;
        bottom: 0;
        top: auto;
        height: 30px;
        width: calc(100% - 10px);
        background-color: var(--pav-gray);
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        align-items: center;
        padding-left: 10px;
        z-index: 100;

        h3 {
            color: black;
        }

        .acc-buttons {
            width: fit-content;
            gap: 5px;
        }

        .acc-buttons {
            /* filter: invert(1); */
        }
    }
}