@charset "utf-8";

html {
    background-color: rgb(208, 220, 205);
}

body {
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(91, 91, 91);
    background-color: ivory;
    margin: 25px;
}

header {
    text-align: center;
    padding: 20px;
}

h2 {
    font-size: 1.3em;
}

nav {
    background-color: rgb(79, 105, 88);
    padding: 15px;
    text-align: center;
}

nav a {
    padding-left: 10px;
    padding-right: 10px;
    text-decoration: none;
    color: white;
}

nav a:hover {
    text-decoration: underline;
    color: rgb(255, 230, 150);
}

main {
    padding-left: 20px;
    padding-right: 20px;
}

img {
    width: 25%;
    padding: 25px;
}

body > footer {
    background-color: rgb(79, 105, 88);
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    clear: both; 
}

.education-list {
    list-style-type: square;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 2px solid black;
    padding: 10px;
    text-align: left;
}

thead {
    background-color: lightgray;
}

tbody {
    background-color: white;
}

tfoot {
    background-color: lightgray;
    font-weight: bold;
    text-align: center;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}header img {
    
    width: 100%;
    padding: 0;
}

input:focus, select:focus, textarea:focus {
    background-color: rgb(255, 255, 180);
}
input:valid {
    background-color: rgb(220, 255, 220);
}

input:invalid {
    background-color: rgb(255, 220, 220);
}
form {
    width: 90%;
}

fieldset {
    width: 90%;
    padding: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
}
input, select {
    display: block;
    position: relative;
    left: 30%;
    padding: 5px;
    height: auto;
    width: 60%;
}
label {
    display: block;
    position: absolute;
    padding: 5px;
    width: 30%;
}
input[type="radio"] {
    display: inline;
    position: inherit;
    left: 0;
    width: auto;
}
label.radio {
    display: inline;
    position: inherit;
}
input[type="submit"], input[type="reset"] {
    display: block;
    float: left;
    left: 0;
    text-align: center;
    width: 40%;
    height: 20px;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 10px;
} 
@media screen and (max-width: 500px) {
    form {
        width: 100%;
        font-size: large;
    }

    fieldset {
        width: 100%;
        padding: 5px;
        margin: 0;
    }

    input, select {
        position: inherit;
        display: block;
        height: 50px;
        padding: 5px;
        width: 90%;
    }

    label {
        position: inherit;
        display: block;
        height: 50px;
        width: 90%;
    }

    input[type="submit"], input[type="reset"] {
        float: none;
        width: 90%;
        margin: 10px;
        font-size: 1.2em;
    }
}
