/* Default template. Use the yourcustom.css sheet to add your own touches!*/

:root {
    --border-radius: 5px;
}


nav {
    text-align: center;
}

nav a {
   text-decoration: none;
   color: #000000;
}

nav a:hover {
    color: blue;
}


h1 {
    padding: 0%;
    margin: 0px 0px 10px 0px;
    text-align: center;
}

hr {
    border: black;
}

.wrapper {
    width: 1200px;
    margin: auto;
    padding: 10px;
}

.form-container {
    width: 250px;
    height: ;
    margin: 0px auto 20px auto;
    padding: 20px;
    border: 1px solid black;
}


.message-container {
    display: inline-block;
    padding: 20px;
    margin: 0px 10px 20px 10px;
    width: 300px;
    height: 300px;
    text-align: center;
    border: 1px solid black;
    overflow: auto;
}


/*Date message was sent*/
.message-container p:first-of-type {
    font-size: small;
    margin-right: 150px;
}


/*Name of the sender*/
p:nth-of-type(2) {
    font-weight: bold;
    font-size: 25px;
}

/*Website name*/
p:nth-of-type(3) {
    font-size: 15px;
    font-weight: 800;
    margin-right: 150px;
}

.messagesboxes-alignment {
    text-align: center;
}


#form {
    display: flex;
    flex-direction: column;
}

label {
    display: flex;
    flex-direction: column;
    padding-bottom: 0px;
    font-weight: 800;
}

input,
textarea {
    padding: 5px;
    border: 1px solid gray;
    border-radius: var(--border-radius);
}


/* Changes the text color of what is typed into the form's text area*/
input[type="text"],
#message {
    color: #000000;
}



button {
    background: #000000;
    border: none;
    color: #fff;
    padding: 15px;
    cursor: pointer;
    border-radius: var(--border-radius);
    margin: 0px auto 0px auto;
    transition: all 0.3s ease-in-out;
    width: 30%;
}

button:hover {
    filter: brightness(1.5);
}


footer {
    color: #000000;
    font-weight: 800;
    font-size: 1.1rem;
    margin: -15px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
    text-align: center;
}

footer a {
    text-decoration: none;

}


/* Make the page responsive */
@media screen and (max-width: 786px) {

    .wrapper,
    .form-container,
    .message-container {
        display: grid;
        grid-template-columns: 1fr;
        width: auto;
        margin: auto;
    }

    .wrapper {
        background-size: 100%;
    }

    .message-container p {
        width: auto;
        margin: auto;
    }

    .message-container {
        margin: 10px auto 10px auto;
    }

    button {
        width: 50%;
    }


}