/* Base styles for body and main elements */
body {
    background-color: #009890;
    color: #000000;
    font-family: Tahoma;
}

header, main, footer {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto; /* Centers the content horizontally */
}

h1, h2, p, nav {
    text-align: center;
}

a {
    color: #3305ff;
}

a:hover {
    color: #3305ff91;
}

figure {
    text-align: center;
    font-style: italic;
}

footer > a > img {
    border: 0;
    width: 88px;
    height: 31px;
}

img {
    width: 50%; 
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    background-color: #fff; 
    color: #000000; 
}

th, td {
    border: 1px solid #ddd; 
    padding: 12px;
}

th {
    background-color: #005f5f;
    color: white; 
    text-align: center;
    font-weight: bold;
}

/* Alternating Row Colors */
tr:nth-child(even) {
    background-color: #f2f2f2; 
}

tr:nth-child(odd) {
    background-color: #ffffff; 
}

tr:hover {
    background-color: #e0e0e0; 
}

/* Form styles */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select {
    box-sizing: border-box; 
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #009890;
    border-radius: 4px;
    font-size: 16px;
}

label {
    margin-bottom: 5px;
    display: block;
    font-weight: bold;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 10px;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
    display: inline-block;
    margin-bottom: 10px;
    font-weight: normal;
}

button[type="submit"],
button[type="reset"] {
    background-color: #009890;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

button[type="submit"]:hover,
button[type="reset"]:hover {
    background-color: #007f7f;
}

/*Screen Sizes */

/* Large screens and desktops*/
@media (min-width: 1201px) {
    main {
        width: 80%;
    }
}

/* Tablets*/
@media (min-width: 601px) and (max-width: 1200px) {
    main {
        width: 90%;
    }
}

/* Mobile devices */
@media (max-width: 600px) {
    main {
        width: 95%;
    }

    form {
        width: 100%;
    }
}
