 /* 
Author: Shannon Mahan 
Date: 2-7-2025 
File Name: styles.css 
*/

/*CSS Reset */
html, body, header, nav, main, footer, div, img, ul, li, article, section, aside, figure, figcaption, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Style rule for html */
html {
    height: 100%;
}

/* Style rules for body */
body {
	background: linear-gradient(white, lightblue);
	background-attachment: fixed;
	height: 100%;
}

/* Style rules for images */
img, video {
    max-width: 100%;
    display: block;
    margin-top: 20px;
}

video {
    margin: 4% auto 4%;
}

/*Style rule for box sizing applies to all elements */
* {
    box-sizing: border-box;
}

/* Style rule for header */
header {
    top: 0;
    background-color: white;
    height: 75px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #000;
    border-radius: 5px;
}

/*Style rule for h1 headings */
h1 {
    font-family: "Francois One", serif;
    font-weight: 10;
    font-style: normal;
    text-shadow: 1px 1px #ccc;
}

/* Style rule for h2 headings */
h2 {
    padding: 0 2em;
    font-family: "Francois One", serif;   
    font-weight: 400;
    font-style: normal;
    text-shadow: 1px 1px #ccc;
}

/* Style Rule for h4 headings. */
h4 {
    font-family: "Francois One", serif;
    font-weight: 400;
    font-style: normal;
    text-shadow: 1px 1px #ccc;
    padding-left: 45px;
}

/* Style rule for navigaion area */
nav{
    padding: 1%;
    margin-bottom: 1%;
}

nav ul{
    color: white;
    list-style-type: none;
    text-align: center;
    border: 1px solid #000;
    border-radius: 5px;
}
/* Style rule for  navigation list */
nav li {
    display: inline-block;
    font-size: 1.0em;
    font-family: "Francois One", serif;
    font-weight: bold;
    padding: 0 2em;
    border-top: 1px solid #fff;
}

nav li:first-child {
    border-top: none;
}

/*Style rules for navigation list anchor content */
nav li a {
    text-decoration: none;
}

.frame {
    position:relative;
    max-width: 450px;
    margin: 2% auto;
}

.pic-text {
    position: absolute;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    width: 100%;
    padding: 20px;
    text-align: center;
    font-family: Verdana, Arial, sans-serif;
    font-size: 1.5em;
    font-weight: bold;
}

.centerpic {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.gridpics {
    display:grid;
    grid-template-columns: auto auto auto;
    margin-left: auto;
    margin-right: auto;
    max-width: fit-content;
    grid-gap: 20px;
}

/* Style rule for main content */
main {
    clear: left;
    font-family: "Roboto Slab", serif;
}

main h1 {
    padding: 0 2em;
}
.mobile h4 {
    text-shadow: 5px 5px 8px #ccc;
}

/*Style rules for main list content */
main li {
    padding: 1em;
    list-style: none; 
    font-family: "Roboto Slab", serif;
}

/*Style rules for main unordered list content */
main ul {
    padding: 0 2em;
}

main dl{
    padding: 0 3em;
    font-family: "Roboto Slab", serif;
}

/*Style rule for div paragraph */
div p {
    padding: 0 3em;
    font-family: "Roboto Slab", serif;
}


/* Style rules for footer content */
footer p {
    font-size: 0.75em;
    text-align: center;
    color: black;
    padding: 0 1em;
}

/*Style rules for footer anchor content */
footer a{
    color: black;
    text-decoration: none;
}

/* Style Rules for embedded map. */    
.map {
    display: block;
    border: 2px solid #000;
    margin-left: auto;
    margin-right: auto;
}

/*Style Rules for audio control. */
#music-sample {
    padding: 2em;
}

/* Mobile View */
@media only screen and (min-width: 1px) {
    /*Default display if no other viewports are eligible. */
    .tablet-desktop {
        display:none;
    }

    .mobile {
        display: block;
    }
    
    header {
        display:block;
        font-size: 70%;
        margin-left: auto;
        margin-right: auto;
    }
    
    table {
        border: 1px solid #000;
        border-collapse: collapse;
        table-layout: fixed; 
        margin: 0 auto;
        width: 95%;
    }
    
    caption {
        font-size: 1.5em;
        font-weight: bold;
        padding: 1%;
    }
    
    th, td {
        border: 1px solid #000;
        padding: 2%;
    }
    
    th {
        background-color: #000;
        color: #fff;
        font-size: 1.15em;
    }
    
    tr:nth-child(odd) {
        background-color: #E8E8E8;
    }
    
    tr:nth-child(even) {
        background-color: white;
    }
    
    .map {
        max-height: 70%;
        max-width: 95%;
    }
    
    /* Style rules for form content */
    #form {
        margin-top: 2%;
        background-color: rgba(255,0,0,0);
        padding: 2%;
    }

    /* Style rules for form header */
    #form h2 {
        text-align: center;
    }

    fieldset legend {
        font-weight: bold;
        font-size: 1.25em;
    }

    /* Style rule for form elements for mobile */
    fieldset, input, select, textarea {
        margin-bottom: 2%;
    }

    label {
        padding-top: 3%;
        display:block;
    }

    form #submit {
        margin: 0 auto;
        border: none;
        display: block;
        padding: 2%;
        background-color: #b3b3b3;
        font-size: 1em;
        border-radius: 10px;
    }
}

/* Media Query for Tablet Viewport */
@media only screen and (min-width: 768px){
	/*Tablet Viewport: Show tablet-desktop class, hide mobile class */
	.tablet-desktop {
		display: block;
	}

	.mobile {
		display: none;
	}
	
	header {
        font-size: 85%;
    }
    
    .grid {
        display:grid;
        padding: 10px;
        grid-template-columns: auto auto auto;
        grid-gap: 20px;
    }
    
    .pic text {
        font-size: 1em;
        padding: 10px;
    }
    
    table {
        border: 1px solid #000;
        border-collapse: collapse;
        table-layout: fixed; 
        margin: 0 auto;
        width: 95%;
    }
    
    caption {
        font-size: 1.5em;
        font-weight: bold;
        padding: 1%;
    }
    
    th, td {
        border: 1px solid #000;
        padding: 2%;
    }
    
    th {
        background-color: #000;
        color: #fff;
        font-size: 1.15em;
    }
    
    tr:nth-child(odd) {
        background-color: #E8E8E8;
    }
    
    tr:nth-child(even) {
        background-color: white;
    }
    
    /* Style Rule for form element on tablet viewport */
    form {
        width: 70%;
        margin: 0 auto;
    }
    
    /* Tablet Viewport: Animation */
    @-webkit-keyframes text-animation {
        0% { font-size: 1em; }
        50% { font-szie: 2em; }
        100% { font-size: 1.35; }
    }
    
    @keyframes text-animation {
        0% { font-size: 1em; }
        50% { font-size: 2em; }
        100% { font-size: 1.35em; }
    }
    
    figcaption {
        -webkit-animation-name: text-animation;
        animation-name: text-animation;
        -webkit-animation-delay: 3s;
        animation-delay: 3s;
        -webkit-animation-duration: 5s;
        animation-duration: 5s;
    }
}


/* Media Query for Desktop Viewport */
@media only screen and (min-width: 1024px){
	/* Desktop Viewport: Show tablet-desktop class, hide mobile class */
	.tablet-desktop {
		display: block;
	}
	
	.mobile {
		display: none;
	}
	
	header {
        font-size: 85%;
    }
    
	/*Add 2 columns to unordered lists on a desktop.*/
	main ul{
	    column-count: 2;
	    column-rule: 1px solid black;
	}
	
    nav ul a:link {
        color: black
    }
    
    nav ul a:hover {
        color: white;
        background-color: black;
        transform: scale(1.3);
    }
    
    .grid {
        display:grid;
        padding: 10px;
        grid-template-columns: auto auto auto;
        grid-gap: 20px;
    }
    
    .pic-text {
        font-size: 1.5em;
        padding: 20px;
    }
    
    table {
        border: 1px solid #000;
        border-collapse: collapse;
        table-layout: fixed;
        margin: 0 auto;
        width: 95%;
    }
    
    caption {
        font-size: 1.5em;
        font-weight: bold;
        padding: 1%;
    }

    th, td {
        border: 1px solid #000;
        padding: 2%;
    }
    
    th {
        background-color: #000;
        color: #fff;
        font-size: 1.15em;
    }
    
    tr:nth-child(odd) {
        background-color: #E8E8E8;
    }
    
    tr:nth-child(even) {
        background-color: white;
    }
    
    /* Style rules for form elements desktop viewport */
    form {
        width: auto;
        display: grid;
        grid-template-columns: auto auto auto;
        grid-gap: 20px
    }
    
    .btn {
        grid-column: 1 / span 3;
    }
}

/* Media Query for Large Desktop Viewports */
@media only screen and (min-width: 1440px) {
	.tablet-desktop {
		display: block;
	}
	
	.mobile {
		display: none;
	}
	
	header {
        font-size: 85%;
    }
	
	/*Add 3 columns to unordered lists on a desktop.*/
	main ul{
	    column-count: 3;
	    column-rule: 1px solid black;
	}
	
    nav ul a:link {
        color: black;
    }
    
    nav ul a:hover {
        color: white;
        background-color: black;
        transform:scale(1.3);
    }
    
    .grid {
        display:grid;
        padding: 10px;
        grid-template-columns: auto auto auto;
        grid-gap: 20px;
    }
    
    .pic-text {
        font-size: 1.5em;
        padding: 20px;
    }
    
    .frame {
        opacity: 0.9;
    }
    
    .frame:hover {
        opacity: 1;
        box-shadow: 8px 8px 10px #808080;
        transform: translateY(10px);
    }
    
    table {
        border: 1px solid #000;
        border-collapse: collapse;
        table-layout: fixed;
        margin: 0 auto;
        width: 95%;
    }
    
    caption {
        font-size: 1.5em;
        font-weight: bold;
        padding: 1%;
    }
    
    th, td {
        border: 1px solid #000;
        padding: 2%;
    }
    
    th {
        background-color: #000;
        color: #fff;
        font-size: 1.15em;
    }
    
    tr:nth-child(odd) {
        background-color: #E8E8E8;
    }
    
    tr:nth-child(even) {
        background-color: white;
    }
    
    /* Style rules for form elements desktop viewport */
    form {
        width: auto;
        display: grid;
        grid-template-columns: auto auto auto;
        grid-gap: 20px
    }
    
    .btn {
        grid-column: 1 / span 3;
    }
}

/* Media Query for Printing */
@media print {
    .tablet-desktop {
        display:block;
    }
    
    .mobile{
        display:none;
    }
	/* Printing: Change everything to be basic black and white for readability after printing. */
	body {
		color: black;
		background: white;
		font-size: 12pt;
    }
	
	.no-print {
		display: none;
	}
}

