/* CSS Reset */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}


/* HTML5 display-role reset for older browsers */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}


/* remember to define visible focus styles! 
:focus {
	outline: ?????;
} */


/* remember to highlight inserts somehow! */

ins {
    text-decoration: none;
}

del {
    text-decoration: line-through;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/*structural elements */

body {
    width: 100%;
    height: auto;
    background-color: white;
}

header {
    float: left;
    width: 100%;
    height: 100px;
    padding-top: 1%;
    border: none;
    background-color: gray;
    position: fixed;
}

#title {
    width: auto;
    height: auto;
    position: absolute;
    left: 5px;
    top: 25px;
    overflow: hidden;
}

#search {
    width: 200px;
    height: 30px;
    float: right;
    margin-right: 50px;
    margin-top: 30px;
    background-color: white;
}

nav {
    float: left;
    width: 100%;
    height: auto;
    padding: 0;
    border: none;
    margin: 0;
    background-color: gray;
}

#top {
    float: left;
    width: 100%;
    height: auto;
    padding: 0;
    border: none;
    margin: 0;
}


/*add <a href="#" id="menu-icon"></a> to html code and then the below style */

#slideshow {
    float: left;
    width: 100%;
    padding: 0;
    border: none;
    margin-top: 130px;
    background-color: gray;
    overflow: hidden;
    background-position: center center;
    background-repeat: no-repeat;
    max-height: 300px;
}

#tagline {
    float: left;
    width: 100%;
    height: auto;
    background-color: gray;
    text-align: center;
}

main {
    max-width: 1024px;
    height: auto;
    padding: 0;
    border: none;
    margin: auto;
}

section {
    width: 46%;
    height: auto;
    padding: 1% 1% 1% 1%;
    margin: 1% 1% 1% 1%;
    background-color: white;
    float: left;
}

article {
    width: 29.33%;
    padding: 1% 1% 1% 1%;
    margin: 1% 1% 1% 1%;
    background-color: lightgray;
    float: left;
    height: auto;
}

.flexbox {
    display: flex;
    display: -webkit-flex;
    width: 100%;
    height: auto;
}

.flexbox .col {
    width: 29.33%;
    /* Or whatever */
    max-height: 300px;
}

figure {}

footer {
    width: 100%;
    height: auto;
    padding: 1% 0% 1% 0%;
    margin: 1% 0% 1% 0%;
    background-color: gray;
    float: left;
    text-align: center;
}

#bottom {}


/* text and images */

h1 {
    font-size: 44px;
    font-family: sans-serif;
    color: white;
    line-height: 1.3em;
}

h2 {
    font-size: 32px;
    font-family: sans-serif;
    color: darkgray;
    line-height: 1.2em;
}

.taglineheading {
    font-size: 32px;
    font-family: sans-serif;
    color: white;
    line-height: 1.2em;
    padding: 10px;
}

h3 {
    font-size: 20px;
    font-family: sans-serif;
    color: darkgray;
    line-height: 1.2em;
}

.articleheading {
    font-size: 18px;
    font-family: sans-serif;
    color: black;
    line-height: 1.5em;
}

p {
    font-size: 14px;
    font-family: sans-serif;
    color: black;
    line-height: 2em;
}

figure img {
    display: block;
    max-width: 100%;
    height: auto;
    overflow: hidden;
}

img {
    width: 100%;
    height: auto;
}

.footerimg {
    width: 50px;
    height: auto;
}


/* navigation */


/*removes bullet point*/

#top ul {
    list-style: none;
}


/*puts links inline*/

#top ul li {
    display: inline-block;
    float: left;
    padding: 10px
}


/*makes class="current" different color*/

.current {
    color: #2262AD;
    /*Change color */
}

nav #top ul li {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
}

#top ul {
    float: right;
}

nav #top li {
    float: left;
}

li a,
.dropbtn {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-family: sans-serif;
}

li a:hover,
.dropdown:hover .dropbtn {
    background-color: darkgray;
}

li.dropdown {
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

#bottom ul {
    list-style: none;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    max-width: 960px;
    height: auto;
}


/*puts links inline*/

#bottom ul li {
    display: inline-block;
    padding: 5px;
}
#menu-icon {
    /*hide the menu icon in desktop view*/
    display: none;
    width: 120px;
    height: 40px;
    /*background image8*/
    background-image: url(images/menu_icon-06.png);
    background-repeat: no-repeat;
    background-position: center;
}

a:hover#menu-icon {
    /*makes a rounded box for icon*/
    background-color: #444;
    border-radius: 4px 4px 0 0;
}
@media only screen and (max-width: 1024px) {
    #title {
        width: auto;
        height: auto;
        position: absolute;
        left: 5px;
        top: 5px;
        overflow: hidden;
    }







    #search {
        width: 200px;
        height: 30px;
        float: right;
        margin-right: 5px;
        margin-top: 5px;
        margin-bottom: 10px;
        background-color: white;
    }
    .flexbox {
        display: block;
        width: 100%;
        height: auto;
    }
    .flexbox .col {
        width: 96%;
        /* Or whatever */
        max-height: 800px;
    }
    h1 {
        font-size: 30px;
        font-family: sans-serif;
        color: white;
        line-height: 1.3em;
    }
    h2 {
        font-size: 20px;
        font-family: sans-serif;
        color: darkgray;
        line-height: 1.2em;
    }
    .taglineheading {
        font-size: 24px;
        font-family: sans-serif;
        color: white;
        line-height: 1.2em;
        padding: 10px;
    }




    h3 {
        font-size: 16px;
        font-family: sans-serif;
        color: darkgray;
        line-height: 1.2em;
    }
    .articleheading {
        font-size: 14px;
        font-family: sans-serif;
        color: black;
        line-height: 1.5em;
    }
#slideshow {
        float: left;
        width: 100%;
        padding: 0;
        border: none;
        margin-top: 100px;
        background-color: gray;
        overflow: hidden;
        background-position: center center;
        background-repeat: no-repeat;
        max-height: 300px;
    }
    p {
        font-size: 12px;
        font-family: sans-serif;
        color: black;
        line-height: 2em;
    }
    #top ul {
        float: left;
    }
    nav #top li {
        float: left;
    }
    #menu-icon {
        display: inline-block;
        float: right;
    }


    nav ul,
    nav:active ul {
        display: none;
        padding: 0px;
        background: dimgray;
        width: 100%;
        border-radius: 0 0 0px 0px;
    }
    nav li {
        text-align: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    nav:hover ul {
        display: block;
    }
    nav {
        width: 100%;
    }
    nav a {
        width: 100%;
    }
    .dropdown-content {
        display: block;
        position: relative;
        background-color: #f9f9f9;
        width: 100%;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    }
    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: center;
    }
    .dropdown-content a:hover {
        background-color: #f1f1f1;
    }


    .dropdown:hover .dropdown-content {
        display: block;
    }
    #top ul li {
        display: inline-block;
        float: left;
        padding: 0;
    }
    footer nav ul,
    footer nav:active ul {
        display: inline-block;
        padding: 0px;
        background: gray;
        width: 100%;
        border-radius: 0 0 0px 0px;
    }
    footer nav li {
        text-align: center;
        width: auto;
        padding: 0;
        margin: 0;
    }
    footer nav:hover ul {
        display: block;
    }
    footer nav {
        width: 100%;
    }
    footer nav a {
        width: auto;
    }
    #bottom ul {
        list-style: none;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        max-width: 960px;
        height: auto;
    }



    #bottom ul li {
        display: inline-block;
        padding: 5px;
    }
}
@media only screen and (max-width: 600px) {
    #search {
        width: 30px;
        height: 30px;
        float: right;
        margin-right: 5px;
        margin-top: 5px;
        margin-bottom: 10px;
        background-color: white;
    }
    h1 {
        font-size: 28px;
        font-family: sans-serif;
        color: white;
        line-height: 1.3em;
    }
    .taglineheading {
        font-size: 20px;
        font-family: sans-serif;
        color: white;
        line-height: 1.2em;
        padding: 10px;
    }
    section {
        width: 96%;
        height: auto;
        padding: 1% 1% 1% 1%;
        margin: 1% 1% 1% 1%;
        background-color: white;
        float: left;
    }
}
