a {
    text-decoration: none;
}

* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "Commissioner";
    src: url(../fonts/Commissioner.ttf);
}

.top-intend {
    position: relative;
    top: 30px;
}

.historical-periods {
    display: flex;
    align-items: flex-start;
    height: 100px;
    justify-content: space-evenly;
    margin: 0 5vw 0 5vw;
}

.period p {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 5px;
}

.period .date {
    font-weight: 600;
    color: var(--text-turquoise);
    text-transform: uppercase;
}

.period .name-of-university {
    color: var(--turquoise);
}

.two-layer-picture {
    width: 100%;
    display: grid;
}

.two-layer-picture .front-image,
.two-layer-picture .back-image {
    width: 100%;
    height: auto;
    grid-column: 1;
    grid-row: 1;
}

.front-image {
    z-index: 0;
    margin-bottom: 100px;
}

.back-image {
    z-index: -1;
    background-image: url("../img/back.svg");
    background-size: 100% auto;
    background-repeat: no-repeat;
}

h2 {
    font-size: clamp(16px, 4vw, 36px);
    color: var(--text-turquoise);
    padding-left: 157px;
    line-height: 44px;
    text-indent: 11vw;
    font-weight: 500;
    text-transform: uppercase;
}

.historical-periods,
.two-layer-picture {
    max-width: 1240px;
}

@media only screen and (min-width: 1240px) {
    .historical-periods,
    .two-layer-picture {
        margin: auto;
    }
}

@media only screen and (max-width: 900px) and (min-height: 500px) {
    h2 {
        padding-left: 12.7vw;
    }
}

@media only screen and (max-width: 600px) {
    h2 {
        width: 100%;
        padding-left: 0;
        text-indent: 0;
        text-align: center;
        line-height: 1.5;
    }
}

@media only screen and (max-width: 390px) {
    h2 {
        line-height: 1.2;
    }
}

@media only screen and (min-width: 651px) {
    .period {
        width: min(15vw, 250px);
    }

    .period .date {
        font-size: 100%;
        font-weight: 600;
        color: var(--text-turquoise);
        text-transform: uppercase;
    }

    .period .name-of-university {
        font-size: 80%;
        color: var(--turquoise);
    }

    .period:nth-child(1) {
        align-self: flex-start;
    }

    .period:nth-child(2) {
        align-self: flex-start;
    }

    .period:nth-child(3) {
        align-self: flex-end;
    }

    .left-indent .period {
        margin-left: min(15vw, 150px);
    }

    .right-indent .period {
        margin-right: min(15vw, 150px);
    }

    .vertical-line {
        position: absolute;
        width: clamp(25px, 5vw, 100px);
        border-right: 1px solid var(--turquoise);
        align-self: stretch;
        height: clamp(50px, 36vw, 250px);
    }

    .display_on_small_width {
        display: none;
    }
}

@media only screen and (max-width: 700px) {
    .front-image {
        margin-bottom: 60px;
    }
}

@media only screen and (max-width: 650px) {
    .display_on_small_width .historical-periods {
        display: flex;
        flex-wrap: wrap;
        width: 90vw;
        height: auto;
        margin: 30px auto;
    }

    .period {
        width: 150px;
        margin-top: 20px;
    }

    .display_on_big_width {
        display: none;
    }
}

@media only screen and (max-width: 335px) {
    .period {
        width: 100%;
    }
}

@media only screen and (min-width: 1900px) {
    .historical-periods,
    .two-layer-picture {
        max-width: calc(1240px * var(--scale));
    }

    .period {
        font-size: calc(16px * var(--scale));
        width: calc(250px * var(--scale));
    }

    .historical-periods {
        height: calc(100px * var(--scale));
    }

    .left-indent .period {
        margin-left: calc(150px * var(--scale));
    }

    .right-indent .period {
        margin-right: calc(150px * var(--scale));
    }

    .vertical-line {
        transform-origin: top;
        transform: scale(var(--scale));
    }
}

@media (prefers-color-scheme: dark) {
    .back-image {
        background-image: url("../img/dark_back.svg");
    }

    .vertical-line {
        border-right: 1px solid var(--dark-turquoise);
    }
}
