* {
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: hsl(200 40% 55% / .8);
    font-family: 'Edu QLD Beginner', cursive;
    position: relative;
}

h1, h2 {
    font-family: 'Major Mono Display', monospace;
}

h1 {
    text-align: center;
    margin: 24px;
    border-left: 40px solid hsl(200 40% 25% / .8);
    border-bottom: 4px solid hsl(200 40% 25% / .8);
    padding: 8px 0;
    font-size: 300%;
}

h2 {
    margin: 8px 0px 20px 8px; /* top right bottom left */
    text-decoration: underline; /* can also use border bottom but would need to put display to inline-block and add a <br> or <span> after <h2> */
    text-decoration-color: hsl(200 40% 25% / .8)
}

.mainnavigation {
    text-align: center;
    margin: 24px 0;
}

.mainnavigation a {
    text-decoration: none;
    display: inline-block;
    padding: 8px;
    color: hsl(200 60% 25% / .8);
    font-weight: bold;
    font-size: 150%;
}

.mainnavigation a::after {
    content: "\26BE";
    margin-left: 12px; /* guessing but educated guessing bc of padding */
}

.mainnavigation a:last-child::after {
    content: "";
}

.mainnavigation a:hover {
    color: orangered;
}

/* FORM STYLES ============================== */
form {
    border: 2px solid hsl(200 40% 25% / .8);
    margin: 0px 20px 50px 20px; /* top right bottom left */
}

legend {
    text-align: right;
    color: gray;
    font-size: 200%;
    margin-left: -8px;
}

label {
    font-size: 140%; font-weight: bold;
    margin: 8px;
}

/* attribute selectors */
input[text=text], input[text=password], input[text=email], input[text=tel] { 
    font-size: 140%;
    padding: 8px;
    box-shadow: 2px 2px 2px #222;
}

input[type=submit] {
    font-size: 130%;
    background-color: orangered;
    color: white;
    padding: 8px 12px;
    box-shadow: 2px 2px 2px #222;
    margin: 8px;
}

input[type=range] {
    transform: scale(2), translateX(100px);
}

select {
    font-size: 140%; /* font-size we've been using */
}

input[type=checkbox], input[type=radio] {
    margin: 8px 0px 0px 8px; /* top right bottom left */
}

textarea {
    font-size: 140%;
    width: 500px; height: 200px;
}

/* =========================================== */

#return {
    text-decoration: none;
    font-size: 200%;
    position: absolute;
    left: 900px;
    color: black; 

}

#return:hover {
    color: gray; 

}