/* Подключение шрифтов */

@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: #223a76;
    --third-color: #456db1;
    --border-color: #456db1;
    --dark-color: #456db1;
    /* --bright-color: */ 
    --main-text-color: #473a53;
    --side-text-color: black;
    --title-text-color: black;
    --transparent-text-color: rgba(0, 0, 0, .6);
    --fading-text-color: rgba(0, 0, 0, .2);
    --title-font-size: 1.25rem;
    /* --plain-font-size: ... */ /* <--- Теперь это часть медиа-запроса */
    --special-font-size: 1.5rem;
}

/* Медиа-запросы на ширину экрана */

@media screen and ((width <= 1400px) or (height <= 800px))  {
    :root {
        --plain-font-size: 16px;
    }

    #_logo {
        width: 200px;
        height: 200px;
    }
}

@media screen and ((width > 1400px) and (height > 800px)) {
    :root {
        --plain-font-size: 20px;
    }

    #_logo {
        width: 250px;
        height: 250px;
    }
}

/* Универсальный селектор */

* {
    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;
    
}

table {
    border-collapse: collapse;

    border: 1px solid black;
}

th, td {
    border: 1px solid black;
    padding: 5px;
}

th {
    font-weight: bold;
}

/* Стили столбца и строки */

.col {
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    flex-direction: row;
}

/* Стили распределения по главной оси */

.main-spacing {
    justify-content: space-between;
}

.main-centering {
    justify-content: center;
}

/* Стили выравнивания по побочной оси */

.side-centering {
    align-items: center;
}

.side-starting {
    align-items: start;
}

.side-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%;
}

.container {
    width: 100%;
}

.content {
    width: 95%;
}

.subcontent {
    width: 90%;
}

/* Стили линий */

.stripe-h {
    border-bottom: solid;
}

.stripe-v {
    border-right: solid;
}

/* Стили шрифта */

.bold {
    font-weight: bold;
}

.centered {
    text-align: center;
}

/* Стили курсора */

.pointer {
    cursor: pointer;
}

/* Стили основной страницы */

#_exit_button {
    margin-top: 40vh;
    background-color: var(--dark-color);
    opacity: 0.3;

    transform-origin: left top;
    transform: rotate(-90deg);

    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 10px;
    padding-top: 5px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

    user-select: none;

    transition: 0.5s ease;
}

#_exit_button:hover {
    opacity: 1;
    transition: 0.5s ease;
}

#_exit_caption {
    color: white;
    font-size: var(--special-font-size);
}

/* Стили заголовка */

#_container {
    background-image: linear-gradient(rgba(68,28,80,.1) 0,rgba(68,28,80,.1) 130px,rgba(68,28,80,.1) 150px,rgba(68,28,80,.1) 100%);
    box-shadow: 0px 0px 10px 0px #456db1;
    min-height: 100vh;
}

#_title {
    height: 60px;
    margin-top: 15px;

    background-color: #456db1;

    border-radius: 15px;

    flex-shrink: 0;
}

#_title_text {
    font-size: var(--title-font-size);
    color: var(--title-text-color);
    margin-left: 15px;
}

#_title_desc {
    font-size: var(--plain-font-size);
    color: var(--main-text-color);
    padding-left: 15px;
    padding-right: 15px;

    margin-top: 5px;
}

#_title_stripe {
    color: var(--main-text-color);
    margin-top: 5px;
    margin-bottom: 10px;
    border-width: 2px;
}

/* Стили записей */

#_entries {
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    gap: 5%;
    margin-bottom: 1%;
    
}

.entry {
    width: 30%;
    height: 200px;

    border: 2px solid var(--main-text-color);
    border-radius: 5px;
    background-color: white;

    justify-content: center;

    gap: 10px;

    user-select: none;
}

.entry-image {
    width: 130px;
    height: 130px;
}

.entry-title {
    color: var(--main-text-color);
    text-align: center;
    height: 20px;
}

.mark {
    margin-left: auto;
    margin-right: 5px;
    margin-top: 5px;
}

.new-line {
    width: 100%;
    margin-top: 20px;
}

/* Скрытые элементы */

.hidden-popup {
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color:rgba(0, 0, 0, .5);

    user-select: none;
}

.popup {
    width: 90%;
    height: 80vh;
    background-color: white;
    border: 8px solid var(--border-color);
    border-radius: 8px;

    padding: 16px;

    gap: 20px;

    overflow-y: scroll;

    margin-left: 20px;

    padding-left: 10%;
    padding-right: 10%;
}

.popup-title {
    color: var(--title-text-color);
    font-size: var(--title-font-size);
}

.popup-text {
    color: black;
    font-size: var(--plain-font-size);
    
    text-align: justify;
}

.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);
}

.list {
    margin-top: 5px;
    margin-bottom: 5px;
}

.img {
    margin: 0 auto;
  display: block;
}