body {
    padding: 0;
    margin: 0;
}

/* colors */
:root {
    --main-bg-color: rgb(39, 39, 39);
    --text-color: rgb(255, 255, 255);
    --footer-bg-color: rgb(77, 77, 77);
}

/* colors END */

/* grid */

/* names */
.chatBoxContainer {
    grid-area: chat;
}

aside {
    grid-area: aside;
}

main {
    grid-area: main;
}

footer {
    grid-area: footer;
}

header {
    grid-area: head;
}

/* names END */

.grid-container {
    display: grid;
    /* gap: 3px; */
    min-height: fit-content;
    background-color: var(--main-bg-color);
    grid-template-areas:
        "head   head    head    head    head    head    head"
        "aside  main    main    main    main    main    chat"
        "footer footer  footer  footer  footer  footer  footer";
}

.grid-container>* {
    font-size: 30px;
    font-family: Arial, Helvetica, sans-serif;
}

/* grid END */

/* size */
header {
    height: 30vh;
}

nav {
    height: 5vh;
}

main {
    height: 80vh;
}

aside {
    width: 15vw;
}

.chatBoxContainer {
    width: 20vw;
}

footer {
    height: 10vh;
}

/* size END */

/* header */
header>.gradient {
    position: absolute;
    background-image: linear-gradient(to top, var(--main-bg-color), rgba(11, 202, 216, 0));
    width: 100%;
    height: 30vh;
}

header>#CAN {
    background-color: black;
    width: 100%;
    pointer-events: none;
}

#clock {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
}

/* header END */

/* main */
main {
    height: fit-content;
}

main>.main-content {
    margin-left: auto;
    margin-right: auto;
    width: 60%;
}

.main-content>p {
    text-align: justify;
    color: var(--text-color);
}

.main-content>img {
    width: 100%;
}

/* main END */

/* a */
a {
    transition: 150ms;
    display: flex;
    font-size: 0.8em;
    max-width: 250px;
    max-height: 50px;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    color: var(--text-color);
}

a>img {
    padding-right: 10px;
    height: 2em;
}

a:hover {
    background-color: rgba(0, 0, 0, 0.267);
}

/* a END */

/* aside */
aside {
    flex-direction: column;
    padding: 10px 20px;
}

/* aside END */

/* chat */
.chatBoxContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 20px;
}

.chatBoxContainer>form {
    display: grid;
    grid-template-areas:
        "txt txt txt"
        "btn btn btn ";
    justify-items: center;
}

.chatBoxContainer>form>.inp_text {
    resize: both;
    grid-area: txt;
}

.chatBoxContainer>form>.inp_sub {
    grid-area: btn;
}

.chatBox {
    display: flex;
    flex-direction: column-reverse;
    background-color: white;
    border: black solid 2px;
    margin-bottom: 5px;
    width: 80%;
    height: fit-content;
    min-height: 50px;
    max-height: 200px;

    padding: 5px;
    overflow-y: scroll;
}

.chatBox::-webkit-scrollbar {
    display: none;
}

.chatBox>.nar>.date {
    grid-area: date;
    height: fit-content;
    font-size: small;
    color: grey;
}

.chatBox>.nar>.text {
    grid-area: text;
    height: fit-content;
    font-size: smaller;
}

.chatBox>.nar {
    display: grid;
    grid-template-areas:
        "date date"
        "text text";
    width: 100%;
    height: fit-content;

    border-bottom: solid grey 2px;
}

/* chat END */

.chatBoxContainer {
    background-color: var(--main-bg-color);
}

aside {
    background-color: var(--main-bg-color);
}

main {
    background-color: var(--main-bg-color);
}

header {
    background-color: var(--main-bg-color);
}

/* footer */
footer {
    display: flex;
    justify-content: center;
    flex-flow: column;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 0 40px;
    background-color: var(--footer-bg-color);

}

footer>a {
    padding: 0 10px;
}

footer>a>img {
    height: 2em;
}

/* footer END */

@media (width < 900px) {
    .grid-container {
        grid-template-areas:
            "head"
            "aside"
            "chat"
            "main"
            "footer";
    }

    aside {
        width: auto;
    }

    aside>a {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .chatBoxContainer {
        width: auto;
    }

    main {
        padding: 10px;
    }

    main>.main-content {
        margin: none;
        width: auto;
    }
}