/* type selectors */
html {
	background-image: linear-gradient(to bottom, white 0%, #facd8a 100%);	
}
body {
	font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 100%;
	width: 96%;
    max-width: 1200px;
	background-color: white;
	margin: 15px auto;
	padding: 15px 0;
	border: 1px solid black;
    display: grid;
    grid-template: repeat(4, auto) / repeat(12, 1fr);       /* define four rows and twelve columns */
    grid-gap: 1.5em;                                        /* define the gap between the rows */
}
article, aside, h1, h2, h3, p {
	margin: 0;
	padding: 0;
}
a { font-weight: bold; }
a:link, a:visited { color: #931420; }
a:hover, a:focus { color: black; }
p {
	font-size: .875em;
	padding-bottom: 0.5em;
}
em { font-weight: bold; }

/* the styles for the header */
header {
    grid-row: 1 / 2;                        /* place the header in a grid area */
    grid-column: 1 / span 12;
}
header h2 {
	font-size: 2.25em;
    color: #f2972e;
    text-shadow: 2px 3px 0 black;
    margin-left: 12%;
	margin-bottom: 0.25em;
}
header h3 {
	font-size: 1.25em;
	font-style: italic;
    margin-left: 12%;
}
header img {
    width: 8%;
    max-width: 80px;
    min-width: 40px;    
	float: left;
	margin-left: 2%;
}

/* The styles for the navigation menu */
#nav_menu {
    grid-row: 2 / 3;                       /* place the navigation menu in a grid area */
    grid-column: 1 / span 12;
}
#nav_menu ul {
	list-style: none;
    display: grid;
    grid-template: auto / repeat(5, 1fr);
    align-content: center;
	margin: 0;
	padding: 0;
}
#nav_menu ul li a {
	text-align: center;
	display: block;
	padding: .7em 0;
	text-decoration: none;
	background-color: #facd8a;
}
#nav_menu ul li a.current {
	color: #f2972e !important;
}

/* Style for the dropdown menu */
#nav_menu ul ul {
    display: none; /* Hide the dropdown by default */
    position: absolute;
    background-color: #facd8a;
  }
  
  #nav_menu ul ul li {
    float: none;
    position: relative;
  }
  
  #nav_menu ul ul li a {
    text-align: center;
    display: block;
    width: 198px;
    padding: .7em 0;
    text-decoration: none;
    background-color: #facd8a;
  }
  
  /* Show the dropdown on hover */
  #nav_menu ul li:hover > ul {
    display: block;
  }
  figure, figcaption {
    margin: 0;
    padding: 0; 
}
figure {
    grid-row: 3 / 4; /* Adjust these values as needed */
    grid-column: 2 / span 10; /* Adjust these values as needed */
    border: 1px solid black;
    width: 575px;
    padding: 15px; 
    margin: 0 auto; /* Center the figure horizontally */
}
figcaption {
    display: block;
    font-weight: bold;
    text-align: center;
    font-size: 120%;
    padding: .25em 0; 
}
table {
    border-collapse: collapse;
    border: 1px solid black;
    margin: 10px auto; 
}
thead, tfoot {
    background-color: lightgreen;
    font-weight: bold;
    border: 1px solid black;
}
th, td {
    padding: .2em 1em;
    text-align: center;
    border: 1px solid black;
}
tbody tr:nth-child(2n) {
    background-color: lightyellow;
}
/* the styles for the footer */
footer {
	border-top: 2px solid #f2972e;
	padding-top: 0.7em;
    grid-row: 4 / 5;                     /* place the footer in a grid area */
    grid-column: 1 / span 12;
}
footer p {
	font-size: .75em;
	text-align: right;
    margin-right: 2%;    
}
#mobile_menu {
    display: none;
}
/* media queries */





/* mobile landscape to tablet portrait */
@media only screen and (max-width: 796px) {
    body {
	    width: 100%;
	    margin: 0;
	    border: none;
        grid-template: repeat(5, auto) / 1fr;            /* change the template so it has five rows and one column */
        grid-gap: 0;
    }
    header {
        /*grid-column: 1 / 2;*/                              /* one column */        
        padding-bottom: 1.5em;
        display: grid;
        grid-template: repeat(3, auto) / 1fr;
        grid-gap: .3em;
        justify-items: center;            
    }
    header h2 {
	    font-size: 1.625em;
	    margin-left: 0;
    }
    header h3 {
	    font-size: 1em;
	    margin-left: 0;
    }
    header img {
        float: none;
        margin-left: 0;
        margin-bottom: 1em;
    }
    #nav_menu {
    	display: none;
    }
    #mobile_menu {
    	display: block;
        grid-row: 2 / 3;                                  /* position the mobile menu */
        grid-column: 1 / 12;
    }
    .slicknav_menu {
	    background-color: #facd8a !important;	
    }
    figure {
        grid-row: 3 / 4; /* Adjust these values as needed */
        grid-column: 1 / span 12; /* Center the figure horizontally */
        border: 1px solid black;
        width: 575px;
        padding: 15px;
        margin: 0 auto; /* Center the figure horizontally */
    }
    
    footer {
        grid-row: 5 / 6;                                  /* row 5 */
        /*grid-column: 1 / 2;*/                               /* one column */
    }
    footer p {
        margin-right: 0;
	    text-align: center;
    }    
}

/* mobile portrait to mobile landscape */
@media only screen and (max-width: 480px) {
    header h2 {
	    font-size: 1.375em;
    }
    header h3 {
	    font-size: .875em;
    }
    figure {
        margin: 0 auto; /* Center the figure horizontally */
    }
}

/* decrease font sizes and remove floating from article image */
@media only screen and (max-width: 382px) {
    header h2 {
        font-size: 1.125em;
    }
    header h3 {
        font-size: .75em;
    }
    footer p {
	    font-size: .6875em;
    }
    figure {
        margin: 0 auto; /* Center the figure horizontally */
    }
}



