:root {
    --my-bg-color: #fff;
    --my-fg-color: #000;
    --my-scale-value: 4px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Мобильное устройство (ширина области отображения от 0 до 400px)*/
@media only screen and (max-width: 400px) {
    h1 {
        font-size: 1em;
    }
    h2,
    h3,
    p {
        text-align: center;
    }
    .navbar {
        flex-direction: column;
        align-self: center;
        row-gap: 5px;
    }
    .navbar a {
        height: 30px;
    }
    .dropdown:hover .features-menu {
        height: max-content;
    }
    .features-item a {
        height: 40px;
        text-align: start;
    }
    .avatar {
        justify-content: center;
    }
    .avatar img {
        width: 200px;
        height: auto;
    }
    .photo-grid {
        justify-content: center;
    }
    .subButtons {
        justify-content: center;
    }
}

/* Планшет (ширина области отображения от 401 до 960px)*/
@media only screen and (min-width: 401px) and (max-width: 960px) {
    body {
        justify-content: center;
    }
}

html {
    font-size: 18px;
    background-color: var(--my-bg-color);
    background-color: #ade8f4;
    color: var(--my-fg-color);
    font-family: Arial, Helvetica, sans-serif;
}

.body {
    display: flex;
    background-color: #ade8f4;
    flex-direction: column;
    overflow-x: hidden;
}

.header,
.footer {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
    height: 64px;
    border-bottom: 1px solid black;
    flex-shrink: 0;
}

.header {
    background-color: #00b4d8;
}
.footer {
    height: 48px;
    border-bottom: none;
    justify-content: center;
    color: #ade8f4;
    background-color: #023047;
    border-top: 1px solid black;
}

.header .nav-link {
    padding-right: 5px;
}

.nav-link.active {
    font-weight: bold;
}

.nav-link {
    color: black;
    text-decoration: underline;
    cursor: pointer;
}

.nav-link:hover {
    text-decoration: none;
}

.main {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.p-2 {
    padding: calc(var(--my-scale-value) * 2);
}

.pt-2 {
    padding-top: calc(var(--my-scale-value) * 2);
}

.pb-2 {
    padding-bottom: calc(var(--my-scale-value) * 2);
}

.my-2 {
    margin-top: calc(var(--my-scale-value) * 2);
    margin-bottom: calc(var(--my-scale-value) * 2);
}

.mx-2 {
    margin-left: calc(var(--my-scale-value) * 2);
    margin-right: calc(var(--my-scale-value) * 2);
}

.error {
    color: #ec2525;
}

.input-group {
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1.25em;
}

h3 {
    font-size: 1.1em;
}

h4 {
    font-size: 1em;
}

h5 {
    font-size: 0.95em;
}

h6 {
    font-size: 0.9em;
}

.w-100 {
    width: 100%;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-direction-column {
    flex-direction: column;
}

.justify-content-right {
    justify-content: right;
}

.justify-content-center {
    justify-content: center;
}

.text-align-center {
    text-align: center;
}

.card {
    padding: 5px;
    border: 1px solid var(--my-fg-color);
}

.container,
.panel {
    padding: 5px;
    width: 100%;
}

.panel,
.table {
    padding: 5px;
    border: 1px solid var(--my-fg-color);
    width: 100%;
}

.table {
    border: none;
}

.panel-header {
    cursor: pointer;
}

.stream-card {
    display: flex;
    flex-direction: column;
    height: auto;
    width: auto;
}

.stream-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: row;
}

.stream-card .card-buttons {
    margin-top: auto;
}

.button {
    color: #081c15;
    background-color: #90e0ef;
    font-weight: bold;
    padding: 10px 5px;
    text-align: center;
    border: 2px solid #5d6063;
    border-radius: 5px;
    width: 150px;
    box-sizing: border-box;
    margin: 10px;
}

.blue-button {
    background-color: #0077b6;
}

.button:hover {
    background: #48cae4;
}

.blue-button:hover {
    background: #016296;
}

.photo-grid img {
    width: 256px;
    height: 200px;
}

.photo-grid-item {
    height: 200px;
    background-color: #5995da;
    align-items: center;
    justify-self: center;
    border: 2px solid #fff;
}

header {
    background-color: #00b4d8;
    color: #081c15;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.header-logo img {
    width: 50px;
    height: auto;
    margin: 5px;
}

.navbar a {
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    width: fit-content;
    color: #081c15;
    font-weight: bold;
    background: #90e0ef;
    border-radius: 5px;
}

.navbar a:hover {
    background: #48cae4;
}

.dropdown {
    width: max-content;
}

.dropdown > span {
    z-index: 2;
    position: relative;
    cursor: pointer;
}

.dropdown:hover .features-menu {
    display: flex;
    flex-direction: column;
    background: #90e0ef;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
}

.features-menu {
    display: none;
}

.features-item:hover {
    border-radius: 5px;
    background: #48cae4;
}
