/* ------------------  Article Section ------------------ */

article {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: start;
    gap: 20px;
    background-color: #F4F4F4;
}

article h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    margin: 0;
    font-weight: 500;
    color: black;
}
article p {
    font-family: 'Merriweather', serif;
    font-size: 19px;
    margin: 0;
    font-weight: 400;
    color: black;
}

#flexbox {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-around;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: start;
    gap: 20px;
    flex: 1 0 300px;
    max-width: 600px;
}

fieldset {
	border: medium none;
	margin: 0;
    padding: 0 0 0 0;
}
#form_top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-content: start;
    gap: 20px;
}

form input, form textarea { 
    font-family: 'Merriweather', serif;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    width: 100%;
	border: 2px solid black;
    box-sizing: border-box;
	background: lightgrey;
	padding: 10px;
    border-radius: 10px;
}
#reason {
    width: 100%;
    height: 50px;
    border: 2px solid black;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 10px;
    font-family: 'Merriweather', serif;
    font-size: 16px;
    font-weight: 400;
    background-color: lightgrey;
}
form textarea {
    /* height in media queries */
	max-width: 100%;
    resize: none;
}

form input:hover, form textarea:hover, #reason:hover {
	transition: background-color 0.2s ease-in-out;
	background-color: #E9E9E9;
}

form input::placeholder,
form textarea::placeholder,
#reason::placeholder {
    color: rgb(80, 80, 80);
}

#form_bottom {
    display: flex;
    flex-direction: column;
    align-content: start;
    margin-top: -22px;
    gap: 10px;
}

#form_bottom_count {
    display: flex;
    flex-direction: row;
    align-content: start;
    justify-content: end;
}

#form_bottom_button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: start;
}

.characters {
    font-family: 'Merriweather', serif;
    font-size: 14px;
    font-weight: 400;
    justify-self: end;
    color: black;
}

form button[type="submit"] {
    font-family: 'Merriweather', serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 3px;
	cursor: pointer;
    justify-content: center;
	width: 200px;
	background-color: black;
	padding: 10px;
    color: white;
    border-radius: 10px;
    transition: background-color 0.1s 0.1s ease-out;
    text-align: center;
    margin: 10px 0 0 0;
    border: none;
}

form button[type="submit"]:hover {
    background-color: #A62A26;
}

img {
    border-radius: 20px;
    max-width: 450px;
}


/* ------------------ Media Queries ------------------ */

/* Small devices (phones) */
@media (max-width: 750px) {
    form textarea {height: 200px;} /* set textarea height */
    img {
        height: auto;
        width: 100%;
    }
}

/* Medium devices (tablets, laptops) */
@media (min-width: 750px) { 
    form textarea {height: 186px;} /* set textarea height */
    img {height: 540px;}
}
 
/* Large devices (desktops) */
@media (min-width: 1400px) { 
    form textarea {height: 170px;} /* set textarea height */
    img {height: 520px;}
}
