*, *:after, *:before {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
}

/* --- Header --- */
.header {
    background-color: black;
    color: white;
    font-size: 24px;
    min-height: 100px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.header__title {
    font-size: 36px;
    text-align: center;
}
.header__nav {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}
.nav__link {
    font-size: 24px;
    margin-right: 20px;
    text-wrap-mode: nowrap;
}
.nav__link.link__inactive {
    pointer-events: none;
    text-decoration: none;
    color: gray;
    opacity: 0.8;
}

/* --- Main --- */
.main {
    background-color: rgb(120, 120, 120);
    display: flex;
    flex-flow: row nowrap;
}
.main__left {
    background-color: rgb(212, 212, 212);
    padding: 5px;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    width: 20%;
}
.main__container {
    display: flex;
    flex-flow: column nowrap;
    min-height: 100vh;
    width: 80%;
}
.main__header {
    background-color: rgb(56, 56, 56);
    color: white;
    width: 100%;
    min-height: 100px;
    font-size: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.main__inner__container {
    display: flex;
    flex-flow: row nowrap;
    min-height: 100vh;
    height: 100%;
}
.main__content {
    background-color: rgb(255, 255, 255);
    padding: 10px;
    width: 75%;
}
.main__right {
    background-color: rgb(212, 212, 212);
    padding: 5px;
    margin: 10px;
    width: 25%;
}

/* --- Footer --- */
.footer {
    background-color: rgb(0, 0, 0);
    color: white;
    min-height: 100px;
    font-weight: 400;
    font-size: 24px;
    padding: 25px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
}

/* --- Smaller screens adaptation --- */
@media (max-width: 820px) or (device-width <= 820px)
{
    .header__nav {
        flex-flow: column nowrap;
        margin-left: 50px;
    }
    .nav__link {
        margin: 10px 0;
    }
    .main {
        flex-flow: column-reverse nowrap;
    }
    .main__left {
        width: auto;
    }
    .main__container {
        width: auto;
        min-height: auto;
    }
}

@media (max-width: 500px) or (device-width <= 500px) {
    .header {
        flex-flow: column nowrap;
        align-items: center;
    }
    .main__inner__container {
        flex-flow: column nowrap;
    }
    .main__content {
        width: 100%;
    }
    .main__right {
        width: auto;
    }
}
@media (device-width <= 600px)
{
    p {
        font-size: 24px;
    }
    .header__title {
        font-size: 64px;
    }
}

/* Animation */
.work {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgb(140, 140, 140), rgb(190, 190, 190));
    box-shadow: 2px 2px 5px 2px black;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: center;
}
.controls {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    align-items: center;
    flex-flow: row nowrap;
    padding: 0 5px;
}
.anim {
    box-sizing: content-box;
    height: calc(100% - 50px);
    width: calc(100% - 10px);
    border: solid 5px green;
    margin: 0 auto;
    background-image: url("../lab7/texture.jpg");
    background-repeat: repeat;
    position: relative;
}
.button__close {
    margin-left: auto;
}
.square {
    width: 10px;
    height: 10px;
    background-color: blue;
    position: absolute;
}
.messages {
    width: 50%;
    margin-right: 10px;
}