/* 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; /* Ensures font consistency */
}

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

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

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; /* Standard text color for headings */
}

h3 {
    color: #006646; /* Specific style for h3 elements */
}

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

th, td {
    padding: 0.5em; /* Padding around table cells */
    border: 1px solid #006600; /* Consistent cell border */
}

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

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

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

a {
    text-decoration: none;
}

/* Form styles for Contact Page */
/* Label styles */
label {
    float: left;
    display: block;
    text-align: right;
    width: 125px;
    padding-right: 2em; /* Ensures text doesn't touch the input fields */
}

/* Input and Textarea styles */
input, textarea {
    display: block;
    margin-bottom: 20px; /* Spacing below each input/textarea */
}

/* Submit Button styles */
input[type="submit"] {
    width: 135px; /* Specific width for submit button */
    margin-left: auto; /* Aligns the button to the right within its container */
    display: block;
}

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

    input[type="submit"] {
        margin-left: 0; /* Remove left margin on small screens for full width usage */
    }
}
