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

.container {
    display: grid;
    grid-auto-columns: 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 0.5fr 1fr 1fr 1fr 0.5fr;
    gap: 0px 0px;
    grid-template-areas:
        "messages messages messages messages"
        "messages messages messages messages"
        "messages messages messages messages"
        "messages messages messages messages"
        "messageboxes messageboxes messageboxes messageboxes";
    height: 100vh;
}

.info {
    grid-area: info;
    background-color: rgb(13, 20, 32);
}

.messages {
    grid-area: messages;
    background-color: rgb(13, 20, 32);
    overflow-y: auto;
    border-bottom: 2px solid rgb(0, 0, 0);
}

.messageboxes {
    grid-area: messageboxes;
    background-color: rgb(13, 18, 32);
}

form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.textbox {
    display: flex;
    border: 1px solid rgb(22, 22, 22);
    border-radius: 15px;
    padding: 5px;
    margin: 15px;
    max-width: 50%;
    flex-direction: column;
    width: fit-content;
    height: fit-content;
    background-color: rgb(170, 170, 170);
    text-align: left;
    box-shadow: 2px 2px 5px black;
    flex-wrap: wrap;
    font-family: Arial, Helvetica, sans-serif;
}

#message,
#name,
#fileToUpload {
    background-color: rgb(164, 164, 164);
    width: 100%;
    border-radius: 15px;
    border: rgb(0, 0, 0) 1px solid;
    padding: 10px;
    box-shadow: 2px 2px 5px black;
}

#fileToUpload {
    width: fit-content;
}

#name {
    height: 35%;
}

textarea {
    height: 60%;
    resize: none;
}

#submit {
    height: 35%;
    background-color: rgb(164, 164, 164);
    border: rgb(0, 0, 0) 1px solid;
    width: 40px;
    height: 40px;
    border-radius: 150px;
    box-shadow: 2px 2px 5px black;
}

.textboxes {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 50%;
    height: 100%;
}

.nametext {
    border-bottom: 3px black solid;
}

.imagestyle {
    max-width: 800px;
    height: auto;
    margin: 0px;
    padding: 0px
}

@media screen and (max-width: 600px) {
    .textbox {
        display: flex;
        border: 1px solid rgb(22, 22, 22);
        border-radius: 15px;
        padding: 5px;
        margin: 15px;
        max-width: 80%;
        flex-direction: column;
        width: 80%;
        height: fit-content;
        background-color: rgb(170, 170, 170);
        text-align: left;
        box-shadow: 2px 2px 5px black;
        flex-wrap: wrap;
        font-family: Arial, Helvetica, sans-serif;
        align-self: center;
        justify-self: center;
    }

    form {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    #message,
    #name,
    #fileToUpload {
        background-color: rgb(164, 164, 164);
        width: 130%;
        border-radius: 15px;
        border: rgb(0, 0, 0) 1px solid;
        padding: 10px;
        box-shadow: 2px 2px 5px black;
    }

    #fileToUpload {
        width: fit-content;
        text-align: center;
    }

    #submit {
        height: 35%;
        background-color: rgb(164, 164, 164);
        border: rgb(0, 0, 0) 1px solid;
        width: 65%;
        height: 40px;
        border-radius: 150px;
        box-shadow: 2px 2px 5px black;
    }

    .imagestyle {
        max-width: 265px;
        height: auto;
        margin: 0px;
        padding: 0px
    }
}