/* Kelsey Hodge */
/* Course: CGS1821.0M1 */
/* Date: 08/02/23 */
/* Assignment: Final Project */


/*************************/
/*styles for the elements*/
/*************************/
* {
    margin: 0;
    padding: 0;
} 
body {
    background-color: rgb(250, 249, 249);
    line-height: 1.5;
    font-family: 'Montserrat', sans-serif;
    font-size: 100%;
    width: 100%;
    max-width: 1024px;
    margin: auto;
    border: 1px solid #1d1d1d;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    grid-template-areas: "head"
                         "navi"
                         "sec1"
                         "foot";
}

/*************************/
/**styles for the header**/
/*************************/
header {
    border-bottom: 1px solid black;
    padding-top: 1em;
    padding-bottom: 1.5em;
    width: 100%;
    /* assign grid area for the header */
    grid-area: head;
}
header img {
    float:left;   
    padding-left: 2%;
    padding-right: 1%;
    height: auto;
    width: 22%;
    max-width: 80px;
    min-height: 40px;
    margin-right: 1em;
}
header h2 {
    color: #1d1d1d;
    font-size: 200%;
    text-align: left;
    padding-bottom: .5em;
}
header h3 {
    font-size: 150%;
    padding: 0em;
    text-align: left;
    color: #1d1d1d;
}

/*******************************/
/*** styles for the nav menu ***/
/*******************************/
#mobile_menu {
    display: none;
}
#nav_menu {
   /* assign grid area for the nav menu */
    grid-area: navi;
}
#nav_menu ul li a.current {
	color: white;
}
#nav_menu ul {
    list-style-type: none;
    margin: auto;
    padding: 0;
    position: relative;   
    /* change navigation menu to use grid layout */
    display: grid;
    grid-template: auto / repeat(5, 1fr);
}
#nav_menu a {
	display: block;
	text-align: center;
	padding: 1em 0;
	text-decoration: none;
	background-color: #5fb0f6;
    border-bottom: 1px solid #1d1d1d;
	color: #1d1d1d;
	font-weight: 700;
    font-size: 120%;
}
#nav_menu ul li {
    color: #1d1d1d;
    font-weight: 700;
}
#nav_menu li a:visited {
    color: #1d1d1d;
}
#nav_menu ul a:hover, a:focus {
    color: white;
    text-decoration: underline;
}
/* assign grid areas for the nav menu items */
#nav_menu #nm1 {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}
#nav_menu #nm2 {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}
#nav_menu #nm3 {
    grid-row: 1 / 2;
    grid-column: 3 / 4;
}
#nav_menu #nm4 {
    grid-row: 1 / 2;
    grid-column: 4 / 5;
}
#nav_menu #nm5 {
    grid-row: 1 / 2;
    grid-column: 5 / 6;
}

/***********************************/
/*** styles for the main content ***/
/***********************************/
main h2 {
    text-align: center;
    padding: 1em;
}

/*************************/
/*styles for the section*/
/*************************/
section {
   color: #1d1d1d;
   grid-area: sec1;
   padding: .5em 3em;
}
section h2 {
    padding: .5em;
    text-align: center;
    font-size: 150%;
}
section h3 {
    font-size: 180%;
    text-align: left;
    color: #5fb0f6;
    border-bottom: 1px solid #1d1d1d;
    padding-top: .5em;
    padding-bottom: .25em;
}
section p {
    font-size: 120%;
}
section ul {
    padding-left: 1.5em;
}
section li {
    padding-bottom: 1em;
    padding-left: 0em;
    font-size: 120%;
}
section a, a:visited {
    color: #5fb0f6;
}
.p_padding {
    padding: .75em .5em;
    font-size: 130%;
}
.s_border {
    border-bottom: 1px solid black;
}
section a:focus {
    color: #5fb0f6;
}
section a:link {
    color: #1d1d1d;
}
section a:visited {
    color: #1d1d1d;
}
section a:hover {
    color: #5fb0f6;
}
section video {
    display: grid;
    /* margin: 2em; */
    max-width: 300px;
    width: 100%;
} 
#video_credit {
    font-size: 80%;
}
/***************************/
/** styles for the footer **/
/***************************/
footer {
    border-top: 1px solid #1d1d1d;
    background-color: #5fb0f6;
    grid-area: foot;
    padding: .5em;
    }
footer p {
    font-weight: 700;
    text-align: center;
    font-size: 80%;
    color: #1d1d1d;
    padding-top: .25em;
    padding-bottom: .5em;
    }
footer a:link {
    color: #1d1d1d;
}
footer a:visited {
    color: black;
}
footer a:hover {
    color: white;
    text-decoration: underline;
}
footer a:focus {
    color: white;
    text-decoration: underline;
}

/******************************************************************/
/******************* styles for the media queries******************/
/******************************************************************/  
@media screen and (max-width: 900px) {
    body {
        border: none;
        font-size: 90%;
    }
    section {
        padding: 1% 5%;
    }   
}

@media screen and (max-width: 767px) {
    body {
        font-size: 80%;
    }
    #nav_menu {
        display: none;
    }
    #mobile_menu {
        /* display the mobile menu */
        display: grid;
        /* assign grid area for mobile menu */
        grid-area: navi;
    }
    /* change background color of mobile menu and change padding */
    .slicknav_menu {
        background: #5fb0f6 !important;
        padding: 3px;
        border-bottom: 1px solid black;
    }
    .slicknav ul {
        background-color: #5fb0f6;
    }
   /* change background color of mobile menu a elements */
   #mobile_menu a {
        background: #5fb0f6;
        color: #1d1d1d;
        font-size: 115%;
   }
   /* change color of a elements on hover or focus */
   #mobile_menu a:hover, a:focus {
        color: rgb(250, 249, 249);
   }
    section h3 {
        font-size: 160%;
    }
    section h2 {
        font-size: 150%;
    } 
    section {
        padding: 0 5%;
    }
}
@media screen and (max-width: 479px) {
    body {
        font-size: 69%;
    }
    section h2 {
        text-align: center;
        font-size: 150%;
    }
    
}