/* 
Author: Shannon Mahan 
Date: 
File Name: stylesnew.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;
}

/* Base Styles */
html {
    height: 100%;
}

body {
    background: linear-gradient(white, lightblue);
    background-attachment: fixed;
    height: 100%;
    font-family: "Roboto Slab", serif;
}

* {
    box-sizing: border-box;
}

img, video {
    max-width: 100%;
    display: block;
    margin-top: 20px;
}

video {
    margin: 4% auto;
}

header {
    top: 0;
    background: rgba(0,0,0,0);
    height: 75px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #000;
    border-radius: 5px;
    font-size: 75%;
}

h1, h2, h4 {
    font-family: "Francois One", serif;
    font-style: normal;
    text-shadow: 1px 1px #ccc;
}

h1 {
    font-weight: 10;
}

h2 {
    padding: 0 2em;
    font-weight: 400;
}

h4 {
    padding-left: 45px;
    font-weight: 400;
}

/* Style rules for hamburger menu */
.mobile-nav a {
    color: black;
    font-family: "Francois One", sans-serif;
    text-align: center;
    font-size: 2em;
    text-decoration: none;
    padding: 3%;
    display: block;
}

.mobile-nav a.menu-icons {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

/* Style rules for map */
.frame {
    position: relative;
    max-width: 450px;
    margin: 2% auto;
}

.frame:hover {
    opacity: 1;
    box-shadow: 8px 8px 10px #808080;
    transform: translateY(10px);
}

/* Style rule for pictures and text */
.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;
}

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

main {
    clear: left;
}

main h1 {
    padding: 0 2em;
}

.mobile h4 {
    text-shadow: 5px 5px 8px #ccc;
}

main li {
    padding: 1em;
    list-style: none;
}

main ul {
    padding: 0 2em;
}

main dl {
    padding: 0 3em;
}

div p {
    padding: 0 3em;
}

footer p {
    font-size: 0.75em;
    text-align: center;
    color: black;
    padding: 0 1em;
}

footer a {
    color: black;
    text-decoration: none;
}

/* Style Rule for Map */
.map {
    display: block;
    border: 2px solid #000;
    margin-left: auto;
    margin-right: auto;
    max-height: 70%;
    max-width: 95%;
}

/* Style rule for music controls placement. */
#music-sample {
    padding: 2em;
}

/* Table Styles */
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;
}

/* Form Styles */
#form {
    margin-top: 2%;
    background-color: rgba(255,0,0,0);
    padding: 2%;
}

#form h2 {
    text-align: center;
}

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

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;
}

form {
    width: auto;
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 20px;
}

.btn {
    grid-column: 1 / span 3;
}

/* Responsive Design */
.mobile {
    display: block;
}

.tablet-desktop, #menu-links, .link-text {
    display: none;
}

@media only screen and (min-width: 768px) {
    .mobile, .mobile-nav {
        display: none;
    }
    .tablet-desktop {
        display: block;
    }
    
    nav {
        padding: 1%;
        margin-bottom: 1%;
    }
    
    nav ul {
        color: white;
        list-style-type: none;
        text-align: center;
        border: 1px solid #000;
        border-radius: 5px;
    }

    nav li {
        display: inline-block;
        font-size: 1.5em;
        font-family: "Francois One", serif;
        font-weight: bold;
        padding: 0 2em;
    }

    nav li a {
        text-decoration: none;
    }

    main ul {
        column-count: 2;
        column-rule: 1px solid black;
    }
    
    @-webkit-keyframes text-animation {
        0% { font-size: 1em; }
        50% { font-size: 2em; }
        100% { font-size: 1.35em; }
    }
    
    @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 only screen and (min-width: 1024px) {
    nav ul a:link {
        color: black;
    }

    nav ul a:hover {
        color: white;
        background-color: black;
    }

    nav ul li:hover{
        transform: scale(1.3);
    }
}
@media only screen and (min-width: 1440px) {
    main ul {
        column-count: 3;
        column-rule: 1px solid black;
    }

    .frame {
        opacity: 0.9;
    }
}

@media print {
    .tablet-desktop {
        display: block;
    }

    .mobile {
        display: none;
    }

    body {
        color: black;
        background: white;
        font-size: 12pt;
    }

    .no-print {
        display: none;
    }
}
