/* the reset selector */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { 
    background-color: whitesmoke;
    font-family: 
        "Palatino Linotype",
        "Book Antiqua", 
        Palatino, 
        serif;
}

/* styles for header nav */

header {
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid lightgray;
    background-image:-webkit-linear-gradient(150deg, lightgray, lightgray 30%, whitesmoke 40%);
    background-image:-mozkit-linear-gradient(150deg, lightgray, lightgray 30%, whitesmoke 40%);
    background-image:-o-linear-gradient(150deg, lightgray, lightgray 30%, whitesmoke 40%);
    background-image: linear-gradient(,,lightgray 30%, whitesmoke 40%);
    padding: 1% 1%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

header a {
    float: left;
    color: black;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    line-height: 25px;
    margin: 10px
}

header .name {
    color: black;
    font-size: 25px;
    padding: 12px;
}

header .name span {
    font-weight: bold;
    color: darkred;
}

.site_nav {
    float: right;
    padding: 12px;
}

.site_nav a {
    padding: 3px;
    transition: .2s ease-out;
}

.site_nav a:hover {
    font-size: 150%;
    transition: .2s ease-in;
}

.site_nav .active{
    font-weight: bold;
    border-bottom: solid 2px darkred;
}

/* styles for main page */

.icon {
    max-width: 25px;
    max-height: 25px;
}

body {
    max-width: 100%;
    font-size: 100%;
    padding: 1% 20%;
    margin: auto;
    display: block;
    background-color: whitesmoke;
}

main {
    margin-top: 10%;
	margin-bottom: 5%;
    border-radius: 25px;
    display: flex;
    background-color: whitesmoke;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

aside {
    float:left;
    width: 30%;
    padding-left: 2%;
}

aside h1 {
    margin: auto;
    padding-bottom: 5%;
    text-align: center;
    font-size: 175%;
}

aside iframe {
    clear: both;
    padding-bottom: 1em;
}

aside .icon {
    float: left;
    margin-right: .5em;
    margin-bottom: .5em;
}

aside h3 {
    font-size: 150%;
}

section {
    clear: left;
    float: right;
    width: 60%;
    padding-left: 10%;
}

section h1 {
    margin: auto;
    padding-bottom: 1%;
    text-align: center;
    font-size: 175%;
}

section h2 {
    margin: auto;
    padding: inherit;
    font-size: 150%;
    color: #800000;
    text-align: center;
}

/* the styles for the section */

section p {
    font-size: 100%;
    margin-bottom: .7em;
}

/* form styles */

fieldset {
    margin-bottom: .5em;
}

fieldset p {
    font-size: 150%;
    margin-bottom: .5em;
}

legend {
    font-size: 150%;
    font-weight: bold;
    padding-bottom: .5em;
}

label, input, select {
    font-size: 150%;
}

label {
    float: left;
    width: 10em;
    text-align: left;
    align-items: center; 
}
input, select {
    width: 15em;
    padding-left: 2em;
    margin-left: .5em;
    margin-bottom: .7em;
}
input:required, input[required] input:invalid {
    border: 2px solid maroon;
}
input:valid {
    border: 1px solid black;
}
textarea {
    height: 15em;
    width: 90%;
    margin-left: 5%;
    font-family: Arial, Helvetica, sans-serif;
}

#submit {
    clear: left;
    margin: 2% 30%;
}

/*
#contact_main {
    width: 100%;
    padding: 0 20%;
    content: "";
    clear: both;
    display: table;
    margin-top: 5%;
	margin-bottom: 5%;
    border-radius: 15px;
    background-color: transparent;
}
#card{
    width: 100%;
    padding: 2.5%;
    border-radius: 25px;
    background-color: lightgray;
    text-align: center;
}

*/

/* testing hover zoom  

article img:hover {
    z-index: 2;
    -webkit-transition: all 200ms ease-in;
    -webkit-transform: scale(1.2);
    transition: all 200ms ease-in;
    transform: scale(1.2);
}
*/ 


/* the styles for the footer */

footer {
	clear: both;
}

footer p {
 	text-align: center;
	color: darkslategray;
	padding: 1em 0; 
}

#mobile_menu {
    display: none;
}

/* media query for a tablet in portrait view 959px or less */

@media only screen and (max-width: 959px) {

    section h1 {
        font-size: 135%;
    }
    section h2 {
        font-size: 120%;
    }
    aside h2 {
        font-size: 120%;
    }
    .site_nav {
        display: none;
    }
    .mobile_nav {
        display: block;
    }
}

/* media query for a tablet in portrait view 767px or less */

@media only screen and (max-width: 767px) {

    header { 
        display: flex; 
        text-align: center; 
        flex-wrap: wrap;
        justify-content: center;
    }
    header h2, header h3 {
        flex-basis: 100%;
    }
    footer {
        flex-wrap: wrap;
        justify-content: center;
    }
    section {
        order: 1;
        width: 95%;
    }
    aside {
        order: 2;
        padding-right: 2.5%;
        width: 95%;
    }
    article img { max-width: 30%;
    }
    #speakers {
        column-count: 2;
    }
    #nav_menu {
        display: none;
    }
    #mobile_menu {
        display: block;
    }
    .slicknav_menu {
        background-color: #800000 !important;
    }
/* media query for a phone in portrait 479px or less */

@media only screen and (max-width: 479px) {
    body { font-size: 90%; }
} 