/* 
   CSS Document used for the Web Project 1 assignment 
   AUTHOR: Dustin Weller 
   Course: ITWP 1000 
   File: css_styles_proj1_main.css 
*/

body {
    margin: 0; 
    padding-top: 1em;
    font-family: Arial, sans-serif;
    line-height: 1.6; 
    background-color: #f0ce9b; 
}

header, nav, main, footer {
    max-width: 900px; 
    margin: 0 auto;
    padding: 10px;
}

h1 {
    text-align: center;
    font-size: 2.5em;
    color: #3f2a14;
}

/* Trying to use instead of "href" */
nav {
    text-align: center;
    padding: 15px 0;
    border-bottom: 2px solid #4d4237;
    margin-bottom: 20px;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #3f2a14;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

p {
    margin: 15px 0;
}

/* Tables */
table {
    margin: 20px auto;
    border: 5px solid #3f2a14;
    width: 100%;
    border-collapse: collapse; 
}

td, th {
    padding: 0.5em;
    text-align: left; 
}

tfoot td {
    font-size: 0.75rem;
    font-style: italic;
    text-align: center;
}

tr:nth-of-type(even) {
    background-color: #eaeaea;
}

thead {
    background-color: #3f2a14;
    color: #FFF;
}

caption {
    font-family: Impact, "Franklin Gothic Bold", "Arial Black", sans-serif; 
    font-weight: bold;
    padding-bottom: 0.5em;
    font-size: 1.2em;
}

/* Images and Video */
.responsive {
    max-width: 100%;
    height: auto;
    border: 1px solid #51471A;
    border-radius: 10px;
    display: block; 
    margin: 20px auto;
}

/* Video Iframe */
iframe {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* Footer Styling */
footer {
    font-size: 0.75rem;
    font-style: italic;
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 2px solid #0a0a0a;
}

#validation {
    display: inline-block;
    padding: 10px;
}

@media (max-width: 550px) {
         .responsive { 
        width: 90%; 
    }
    
    table {
        font-size: 0.8em; 
    }
}