html {
    font-family: var(--font);
    color: var(--color-primary);
}

code {
    font-family: var(--font-monospace);
    font-weight: 400;
}

/* HOVER UNDERLINE ANIMATION CLASS BEGIN */

.hover-underline-animation {
    display: inline-block;
    position: relative;
    padding-bottom: 4px;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    margin-top: 2px;
    background: var(--color-primary);
    transition: transform 0.25s ease-out;
    transform-origin: bottom left;
}

.hover-underline-animation:hover .hover-underline-animation::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.hover-underline-animation-block:hover .hover-underline-animation::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* HOVER UNDERLINE ANIMATION CLASS END */

button {
    background-color: var(--color-bg-button);
    padding: 12px 16px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: none;
    border-radius: 24px;
    font-family: var(--font);
    color: var(--color-bg-const);
    font-size: 18px;

    transition: scale 0.3s;
}

/* .telegram-button {
    font-size: 21px;
} */

.button:hover {
    scale: 1.1;
    cursor: pointer;
}

.button.width-fit {
    width: fit-content;
    margin: auto;
}


body {
    max-width: 1504px;
    margin: auto;
    background-color: var(--color-bg);
}

body.mode-transition {
    transition: background-color 0.4s, color 0.4s;
}

a:any-link {
    text-decoration: none;
    /* color: cornflowerblue; */
}


h1,
h2,
p {
    margin: 0;
}

.nowrap {
    white-space: nowrap;
}

h1 {
    font-size: 42px;
    font-weight: 400;
    width: fit-content;
    margin-bottom: 12px;
}

h2 {
    width: fit-content;
    font-weight: 400;
    font-size: 28px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 6px;
}

h3 {
    font-weight: 400;
    font-size: 21px;
}

.min-width-text {
    width: min-content;
}

p {
    font-weight: 200;
    font-size: 18px;
    margin-block-start: 1em;
    margin-block-end: 1em;
}

.author-text,
.date-text {
    margin: 0;
    margin-top: 6px;
}

.date-text {
    color: var(--color-light-text);
}

.light-text {
    text-decoration: none;
    color: var(--color-light-text);
}

.text-right {
    text-align: right;
}

.bolder {
    font-weight: 400 !important;
}

.title-header {
    width: -webkit-fill-available;
    min-height: 100vh;
    background-image: var(--title-image-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.title-header .title-text {
    font-size: 21px;
    color: var(--color-bg-const);
}

.logo-a {
    max-width: 400px;
    max-height: 115px;
    width: -webkit-fill-available;
}

.logo {
    display: block;
    max-width: 400px;
}


.block-with-header {
    padding: 0px var(--padding-lr);
    display: flex;
    flex-direction: column;
    width: -webkit-fill-available;
    gap: 24px;

}

.horizontal-block {
    display: flex;
    justify-content: space-between;
    width: -webkit-fill-available;
}

.min-width-block {
    width: min-content;
}

.button-block {
    padding: 0;
    color: var(--color-primary);
    font-family: var(--font);
    background-color: transparent;
    outline: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: start;
}

.button-block:hover {
    scale: 1.05;
    cursor: pointer;
}

.title-highlight-div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.icon-link {
    width: 42px;
    height: 42px;
}

.main-div {
    display: flex;
    flex-direction: column;
    width: -webkit-fill-available;
    gap: 50px;
    margin-top: var(--padding-lr);
}

.main-menu-out {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--padding-lr);
    padding-left: var(--padding-lr);
    padding-right: var(--padding-lr);
}

.main-menu {
    display: flex;
    row-gap: 18px;
    flex-direction: column;
}

.main-menu-mobile {
    display: none;
}

hr {
    margin-left: var(--padding-lr);
    margin-right: var(--padding-lr);
    margin-top: 0;
    margin-bottom: 0;
    border: 1.5px solid var(--color-primary);
    border-radius: 2px;
}

.table {
    display: grid;
    column-gap: var(--padding-lr);
    row-gap: 18px;
    grid-template-columns: repeat(2, 1fr);
}

footer {
    padding: var(--padding-lr);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer-link {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 200;
}

.footer-logo {
    text-decoration: none;
    width: 200px;
}

.footer-link-div {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

blockquote {
    font-size: 21px;
    font-weight: 200;
    font-style: italic;
    padding: 0;
    margin: 0;
    margin-bottom: 12px;
    text-align: left;
}

blockquote:hover {
    cursor: pointer;
}

.highlight,
orange {
    font-family: var(--font);
    /* font-size: 16px; */
    font-weight: 400;
    color: orangered;
    /* padding: 4px 12px; */
    /* border: solid 2px orangered; */
    /* border-radius: 18px; */
}

.section {
    min-height: 90vh;
    padding-top: 160px;
    padding-left: var(--padding-lr);
    padding-right: var(--padding-lr);
    font-size: 18px;
}

.section a:any-link {
    text-decoration: none;
    color: var(--color-primary);
}

.section a:any-link:hover {
    text-decoration: none;
    color: cornflowerblue;
}

.section {
    font-weight: 200;
}

.section li {
    margin: 4px 0px;
}

.section .h1-title {
    margin-bottom: var(--padding-lr);
}

.h1-image {
    width: -webkit-fill-available;
    aspect-ratio: 2.5;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.h1-title h1 {
    font-size: 54px;
    margin-bottom: 4px;
}

.h1-title p {
    font-size: 21px;
    max-width: 640px;
}

/* DIFFICULTY */

.hard_star_icon_text {
    transition: 0s;
    font-weight: 400;
}

.hard_star {
    fill: var(--color-primary);
    height: 0.9em;
    width: 0.9em;
    /* max-height: 18px;
    max-width: 18px; */
    top: .125em;
    position: relative;
}

.hard_star_icon {
    display: inline-flex;
    align-self: center;
}

ul a.hard_star_icon_text:any-link:hover .hard_star,
ol a.hard_star_icon_text:any-link:hover .hard_star {
    fill: #e84f08;
}

ul a.hard_star_icon_text:any-link:hover,
ol a.hard_star_icon_text:any-link:hover {
    color: #e84f08;
}

/* DIFFICULTY END */

@media screen and (max-width: 1200px) {
    .main-menu {
        display: none;
    }

    .main-menu-mobile {
        display: flex;
    }

    .horizontal-block {
        display: grid;
        width: -webkit-fill-available;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--padding-lr);
    }

    .main-menu-out,
    .table {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .title-header {
        background-size: 150%;
    }

    footer {
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
    }

    .h1-image {
        aspect-ratio: 2;
    }
}

@media screen and (max-width: 840px) {
    html {
        zoom: 0.8;
    }

    :root {
        --padding-lr: 32px;
    }

    .logo-a {
        max-width: 50vw;
    }

    .title-header {
        background-size: 280%;
    }

    .h1-title h1 {
        font-size: 48px;
        margin-bottom: 4px;
    }


    .section {
        font-size: 16px;
    }

    .h1-title p {
        font-size: 18px;
    }

    .h1-image {
        aspect-ratio: 1.5;
    }
}

@media screen and (max-width: 640px) {
    .horizontal-block {
        grid-template-columns: repeat(1, 1fr);
    }

    .min-width-block,
    .min-width-text {
        width: -webkit-fill-available;
    }

    .footer-link-div {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
}