* {
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}

body {
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    margin:0;
    line-height: 1.6;
    background-color: var(--clr-primary);
    color: var(--clr-secondary);
    text-align: center;
    margin-top: 55px;
    padding-bottom: 600px; /** give room to scroll down at bottom of page **/
}

nav {
    margin-bottom: 0px;
    background-color: var(--clr-nav-bg);
    padding: 15px 0;
    margin-bottom:0;
    position: fixed; /** makes the navigation bar stay at the top **/
    top: 0;
    width: 100%;
    z-index: 100%; /** makes sure that it stays at the top on the correct index **/
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
}

h1 {
    margin-bottom: 20px;
}

:root {
    --clr-primary: #eed;
    --clr-secondary: #345;
    --clr-accent1: hsl(20, 100%, 35%);
    scroll-behavior: smooth;
    --clr-nav-bg: #6d4c42;
    --clr-heading-bg: #d0c4bd;
}

main {
    border: 1px solid var(--clr-secondary);
    margin: 20px;
    min-height: 80dvh;
    padding: 12px;
}

h2 {
    text-align: center;
    font-weight: normal;
    background-color: var(--clr-secondary);
    color: var(--clr-primary);
}

#orderForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#orderForm fieldset {
    min-height: 400px;
    padding-top: 60px; /** to help keep the nav bar from covering the fieldset **/
    border: 0;
}

select {
    font-size: 1.1em;
    margin: 8px;
    padding: 8px;
}

label, 
input [type=text], 
input [type=tel], 
input [type=url], 
input [type=email], 
input [type=submit],
textarea {
    font-size: 1.5em;
    font-style: italic;
}


textarea {
    width: 60%;
    min-height: 200px;
    font-style: inherit;
    line-height: 1.5;
}

input [type=checkbox], 
input [type=radio], 
input [type=range] {
    transform: scale(1.5);
    margin: 4px;
}

#sugarOutput {
    font-size: 2em;
    color: var(--clr-accent1);
    font-weight: bold;
}