/* Подключение шрифтов */

@font-face {
    font-family: "Roboto Sans";
    src: url(../fonts/Roboto-Regular.ttf);
    
    font-weight: normal;
}

@font-face {
    font-family: "Roboto Sans";
    src: url(../fonts/Roboto-Bold.ttf);

    font-weight: bold;
}

@font-face {
    font-family: "Roboto Sans";
    src: url(../fonts/Roboto-Italic.ttf);
    
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "Roboto Sans";
    src: url(../fonts/Roboto-BoldItalic.ttf);

    font-weight: bold;
    font-style: italic;
}

/* Переменные */

:root {
    --first-color: #456db1;
    --second-color: #456db1;
    --third-color: #456db1;
    --border-color: #333333;
    --main-text-color: #473a53;
    --side-text-color: black;
    --title-text-color: rgb(85, 57, 130);
    --transparent-text-color: rgba(0, 0, 0, .6);
    --fading-text-color: rgba(0, 0, 0, .2);
    --title-font-size: 1.5rem;
    /* --plain-font-size: ... */ /* <--- Теперь это часть медиа-запроса */
    --special-font-size: 2rem;
}

/* Медиа-запросы на ширину экрана */

@media screen and ((width <= 1400px) or (height <= 500px))  {
    :root {
        --plain-font-size: 16px;
    }

    #_logo {
        width: 300px;
        height: 300px;
    }
}

@media screen and ((width > 1400px) and (height > 800px)) {
    :root {
        --plain-font-size: 20px;
    }

    #_logo {
        width: 300px;
        height: 300px;
    }
}

/* Универсальный селектор */

* {
    margin: 0;
    padding: 0;

    font-family: "Roboto Sans", Verdana, Geneva, Tahoma, sans-serif;
    font-weight: normal;
    font-size: var(--plain-font-size);

    box-sizing: border-box;
}

/* Общие селекторы */

p,a {
    color: var(--main-text-color);
}

body {
    background-image: url("../images/fon1.jpg");
    background-attachment: fixed;
    width: 100%;
}

/* Стили столбца и строки */

.col {
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    flex-direction: row;
}

/* Стили распределения по главной оси */

.main-spacing {
    justify-content: space-between;
}

/* Стили выравнивания по побочной оси */

.main-centering {
    align-items: center;
}

.main-starting {
    align-items: start;
}

.main-ending {
    align-items: end;
}

/* Стили выравнивания по центру */

.centered-h {
    margin-left: auto;
    margin-right: auto;
}

.centered-v {
    margin-top: auto;
    margin-bottom: auto;
}

/* Стили отображения */

.absolute {
    position: absolute;
}

/* Стили долей ширины */

.wrapper {
    width: 100%;
}

.content {
    width: 95%;
}

/* Стили линий */

.stripe-h {
    border-bottom: solid;
}

.stripe-v {
    border-right: solid;
}

/* Стили шрифта */

.bold {
    font-weight: bold;
}

.centered {
    text-align: center;
}

/* Стили курсора */

.pointer {
    cursor: pointer;
}

/* Стили головы сайта */

#_header {
    height: 60px;
}

#_header_title {
    font-size: var(--title-font-size);
    color: var(--transparent-text-color);
}


#_menu {
    gap: 15px;
}

.menu-element {
    gap: 5px;
}

.menu-stripe {
    height: 80%;
    border-width: 4px;
    border-color: var(--border-color);
}

/* Стили темы */

/* Стиль вытянутого по вертикали особого текста */
.special-text {
    transform: scaleY(1.5);
    font-size: var(--special-font-size);
    color: var(--fading-text-color);
}


#_topic_wrapper {
    background-color: white;
    border-top: 4px solid var(--border-color);
    border-bottom: 4px solid var(--border-color);
    user-select: none;
}

#_title {
    padding-top: 10px;
    padding-bottom: 10px;
}

#_topic {
    gap: 20px;
}

#_topic_title {
    font-size: var(--title-font-size);
}

/* Стили столбцов */

#_cols {
    margin-top: 50px;
}

/* Стили кнопок */

#_buttons {
    gap: 20px;

    width: 60%;
}

.button {
    min-width: 600px;
    height: 150px; /* Высота прямоугольника кнопки */
}

.button-stripe {
    border-width: 8px;
}

.button-bg {
    margin-left: 5px;

    width: calc(35% + 75px);
}

.button-text {
    margin-left: 20px;
    margin-right: 75px;
    color: white;
}

.button-container {
    border-radius: 0 12px 12px 0;
    background-color: white;
    border: 2px solid;

    width: 80%;
}

.button-circle {
    width: 150px; /* Высота прямоугольника кнопки здесь, чтобы получился квадрат */
    min-width: 155px;
    max-width: 155px;

    border-radius: 75px; /* Половина от высоты прямоугольника кнопки здесь, чтобы был скруглённый край — теперь это радиус круга */
    
    border: 13px solid;
    
    margin-left: -75px;        /* Смещение влево на радиус круга здесь, чтобы создался эффект заливки слева от прямоугольника кнопки */
    background-color: white; /* Остаётся сделать внутреннюю заливку, получился выглядящий единым элемент */
}

.button-elements {
    margin-left: 10px;
    margin-right: 10px;

    width: 100%;
}

.button-title {
    height: 80%;
}

.button-buttons {
    height: 80%;
}

.button-type {
    color: var(--fading-text-color);
}

.button-semidisk {
    margin-left: 5px;

    border-top-right-radius: 75px;    /* Половина от высоты прямоугольника кнопки здесь, чтобы был скруглённый край */
    border-bottom-right-radius: 75px; /* То же самое */
    min-width: 75px;                 /* Получается половина квадрата */
    max-width: 75px;

    transform-origin: left;
    transform: scaleX(0.5);
}

/* Цветовые стили */

.first-border {
    border-color: var(--first-color);
}

.first-bg {
    border-radius: 12px 0 0 12px;
    background-color: var(--first-color);
}

.second-border {
    border-color: var(--second-color);
}

.second-bg {
    border-radius: 12px 0 0 12px;
    background-color: var(--second-color);
}

.third-border {
    border-color: var(--third-color);
}

.third-bg {
    border-radius: 12px 0 0 12px;
    background-color: var(--third-color);
}

/* Стили столбца информации */

#_info {
    align-items: start;
    min-width: 45%;
    max-width: 45%;
    user-select: none;
}

.info-stripe {
    border-color: var(--border-color);
    border-width: 4px;
    width: 150px;

    margin-top: 10px;
    margin-bottom: 10px;
}

.info-entry {
    margin-top: 20px;

    font-size: var(--title-font-size);
    color: var(--transparent-text-color);
}

/* Скрытые элементы */

.hidden-popup {
    position: absolute;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    background-color:rgba(0, 0, 0, .5);

    user-select: none;
}

.popup {
    width: 80vw;
    height: 80vh;
    background-color: white;
    border: 8px solid var(--border-color);
    border-radius: 8px;

    padding: 16px;

    gap: 20px;

    overflow-y: scroll;
}

.popup-title {
    color: var(--title-text-color);
    font-size: var(--title-font-size);
}

.popup-text, .popup-text em {
    color: black;
    font-size: var(--title-font-size);    
}

.popup-par {
    gap: 10px;
}

.popup-close {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: var(--border-color);

    margin-left: -24px;
    margin-top: -16px;
}

.white-line {
    border-color: white;
    border-width: 4px;
}

.line-h {
    width: 26px;
    margin-top: 11px;
}

.line-v {
    height: 26px;
    margin-left: 11px;
}

.cross {
    width: 26px;
    height: 26px;
    transform: rotate(45deg);
}