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

/*************************/
/*styles for the elements*/
/*************************/
* {
    margin: 0;
    padding: 0;
    overflow-wrap: break-word;
}
html {
    width: 100%;
}
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    background-color: rgb(250, 249, 249);
    font-size: 100%;
    max-width: 1024px;
    margin: auto;
    border: 1px solid black;
    /* change the body so it uses grid layout */
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    grid-template-areas: "head"
                         "navi"
                         "sec1"
                         "foot";
}
#mobile_menu {
    display: none;
}

/*************************/
/**styles for the header**/
/*************************/
header {
    border-bottom: 1px solid black;
    padding-top: 1em;
    padding-bottom: 1.5em;
    /* assign grid area for the header */
    grid-area: head;
    width: 100%;
}
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;
    padding-bottom: 1.5em;
}
section h2 {
    font-size: 150%;
    text-align: center;
    padding: .5em;
}
section h3 {
    font-size: 180%;
    text-align: left;
    color: #5fb0f6;
    padding-top: .5em;
    padding-bottom: .25em;
}
section p {
    font-size: 120%;
}

/**************************/
/** styles for the table **/
/**************************/
table {
    border-collapse: collapse;
    padding-bottom: .75em;
}
th {
    text-align: center;
    padding: .5em;
    background-color: rgb(190, 190, 190) !important; 
    font-size: 100%;
    font-weight: 700;
    color: #1d1d1d;
}
td {
    text-align: center;
    padding: .5em;
    border: 2px solid #1d1d1d;    
    font-size: 115%;
    font-weight: 700;
    width: 75%;
}
div.table_1 {
    margin-top: 1.5em;
}
div.table_2 {
    margin-top: 3em;
}
div.table_3 {
    margin-top: 3em;
    margin-bottom: 1em;
}
caption {
    font-size: 140%;
    font-weight: 700;
    padding-bottom: .5em;
    padding-top: .75em;
}
.computer_header {
    border: 2px solid #1d1d1d;
}
.ipad_header {
    border: 2px solid #1d1d1d;
}
.iphone_header {
    border: 2px solid #1d1d1d;
}
div.row_special {
    border-bottom: 2px solid #1d1d1d;
}
tfoot tr td {
    border-bottom: none;
    border-right: none;
    border-left: none;
    font-size: 100%;
}
/***************************/
/** 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%;
    }
    td {
        font-size: 90%;
    }
    th#computer_header {
        font-size: 50%;
    }
}  

@media screen and (max-width: 767px){
    /* body {
        font-size: 80%;
    }*/
    table {
        font-size: 80%;
    }
    section {
        padding: 1% 2%;
    }
    .iphone_header, .computer_header, .ipad_header {
        border: 1px solid #1d1d1d
    }
    td {
        border: 1px solid #1d1d1d;
    }
    /* hide the nav menu */
    #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);
   }
}

@media screen and (max-width: 479px) {
    body {
        font-size: 75%;
    }
    table {
        font-size: 65%;
    }
    section h2 {
        font-size: 150%;
    }
}
