/* Block display for HTML5 elements */
header, main, nav, footer, figure, figcaption, aside, section, article {
    display: block;
}

/* Reset box-sizing to border-box for all elements */
* {
    box-sizing: border-box;
}

/* General body styles */
body {
    background-color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
}

/* Header styles */
header {
    background-color: #00B386;
    color: #FFFFFF;
    height: 175px;
    padding-top: 30px;
    padding-left: 3em;
    box-shadow: 0 4px 4px #133926;
    font-family: serif;
    font-weight: bold;
    text-align: center;
    position: relative; /* Ensure positioning context for logo */
}

/* Logo styles */
#logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: auto;
}

/* Header text styles */
header h1 {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFFFFF;
    margin: 0;
    line-height: 175px; /* Vertically centers the text */
}

/* Navigation styles */
nav {
    padding: 1.5em;
    font-size: 120%;
    float: left;
    width: 160px;
    font-family: Arial, sans-serif;
}

nav ul {
    list-style-type: none;
}

nav a {
    text-decoration: none;
    transition: color 3s ease-out;
}

nav a:link {
    color: #00664D;
}

nav a:visited {
    color: #7A7A52;
}

nav a:hover {
    color: #FFFFFF;
}

/* Wrapper styles */
#wrapper {
    width: 80%;
    margin: 0 auto;
    background-color: #0C5442;
    min-width: 900px;
    max-width: 2050px;
    box-shadow: 0 0 4px #133926;
    border: 1.5pt solid #003300;
    background-image: linear-gradient(to bottom, #FFFFFF, #0C5442);
}

/* Main content styles */
main {
    background-color: #FFFFFF;
    margin-left: 190px;
    padding-left: 30px;
}

h1, h2, h3 {
    color: #00664D;
}

h3 {
    color: #006646;
}

/* Table styles */
table {
    border-collapse: collapse;
    border: 1.5px solid #006600;
}

th, td {
    padding: 0.5em;
    border: 1px solid #006600;
}

/* Alternate row coloring for table */
tr:nth-of-type(odd) {
    background-color: #ECF9EC;
}

/* Footer styles */
footer {
    margin-left: 190px;
    padding: 15px;
    background-color: #FFFFFF;
    clear: both;
}

/* Additional nav styles */
nav ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
    font-size: 1.2em;
}

a {
    text-decoration: none;
}

/* Form styles for Contact Page */
label {
    float: left;
    display: block;
    text-align: right;
    width: 125px;
    padding-right: 2em;
}

input, textarea {
    display: block;
    margin-bottom: 20px;
}

input[type="submit"] {
    width: 135px;
    margin-left: auto;
    display: block;
}

/* Gallery styles */
#gallery {
    position: relative;
    height: 200px;
}

#gallery ul {
    list-style: none;
    width: 300px;
    padding: 0;
}

#gallery ul li {
    display: inline;
    float: left;
    padding: 10px;
}

#gallery img {
    border: none;
}

#gallery a {
    text-decoration: none;
    font-style: italic;
    color: white;
}

#gallery span {
    position: absolute;
    left: -1000px;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

#gallery a:hover span {
    opacity: 1;
    top: 15px;
    left: 320px;
    text-align: center;
}

figure {
    position: absolute;
    left: 280px;
    opacity: 0.25;
}

/* Styles for Smart Phone display */
@media only screen and (max-width: 37.5em) {
    label {
        float: none;
        text-align: left;
    }

    input[type="submit"] {
        margin-left: 0;
    }

    #gallery {
        display: none;
    }
}
