/* the styles for the elements */
* {
    margin: 0; 
    padding: 0;
    box-sizing: border-box; 
}
html {
    background-color: steelblue;
}
body {
    background-color: white;
	font-family: Arial, Helvetica, sans-serif;
    font-size: calc(90% + 0.3vw); 
    width: 100%;
}
a {
    font-weight: bold;
}
h1, h2, h3 { padding-top: .75em; } 
p, ul, blockquote { padding-top: .5em; } 
h1 { font-size: 160%; }
blockquote { padding-left: 2em; }

/* the styles for the header */
header {
    background-image: linear-gradient(to bottom, white 0%, lightsteelblue 100%);
    padding: 1em 1.5em; 
    & img {        
        float: left; 
        margin-right: 1em;
        width: clamp(100px, 20%, 120px);        
    }
    & h2 {
        font-size: 250%;
        font-style: italic;
        color: steelblue;
        padding-top: 0;
    }
    & h3 {
        font-size: 150%;
        padding-top: .25em;
    }
} 


/*** menu styles ***/ 
.navbar {
    background-color: steelblue; 
    & ul {
        list-style-type: none; 
    } 
    & a {
        display: block; 
        padding: .25em 1em; 
        margin: .25em 0 .5em;
        text-decoration: none; 
        color: white;
    } 
    & a:hover, a:focus { 
        text-decoration: underline; 
    } 
    & a.current {
        border: 2px solid; 
        border-radius: 10px; 
        text-decoration: none;
    } 
} 
.menu {
    display: flex; 
    flex-wrap: wrap;
    justify-content: space-evenly;
} 
.menu li:has(.submenu) { 
    position: relative; 
    & small {
        margin-left: .25em; /* add space for arrow */
    }
    &:hover > .submenu { 
        display: block;
    }
} 
.submenu {
    position: absolute; /* relative to the item that contains it */
    left: 0;
    color: white; 
    background-color: steelblue; 
    width: 140%;
    display: none;
}

/* the styles for the main element  */
main {
    display: flex;
    clear: left;
    padding: 0 1.5em 1em;
}

/* the styles for the section */
section {
    flex-basis: 65%;
    & h3 {
        color: maroon;
    }
    & a:link, a:visited { 
        color: maroon;
    }
    & a:hover, a:focus {
        color: steelblue;
    }
}

/* the styles for the sidebar */
aside {
    flex-basis: 35%;
    height: fit-content;
    padding: 1em 1.5em; 
    margin: 1em 0 1em 1.5em;    
    border: 2px solid steelblue;
    border-radius: 25px;
    & h2 {
        padding: 0;
        color: maroon;
    }
    & ul {
        line-height: 1.5;
        padding-left: 1em;
    }
    & a:link, a:visited { 
        color: steelblue
    }
    & a:hover, a:focus {
        color: maroon;
    }
}

/* the styles for the footer */
footer { 
	padding: 1em 1.5em;
    background-color: steelblue;
    & p {
        text-align: center;
        font-size: 85%;
        color: white;    
    }    
} 
