@charset "utf-8";

html {
    background-color: hsl(236, 97%, 13%);
    background-image: url("Background.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

body {
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(91, 91, 91);
    background-color: rgb(255, 146, 3);
    width: 90%;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
}

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

header img {
    width: 100%;
    height: auto;
}

h1, h2 {
    text-shadow: 4px 6px 5px grey;
}

h2 {
    font-size: 1.3em;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: block;
    width: 20%;
    float: left;
}

nav a {
    display: block;
    background-color: rgb(255, 146, 3);
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
    color: rgb(91, 91, 91);
}

nav a:hover {
    background-color: rgb(200, 120, 0);
    color: white;
    font-size: 1.2em;
    background-color: rgb(3, 0, 42);
    transition: color 0.5s ease-in 0.2s, font-size 1s ease;
}

main {
    padding: 20px;
    margin-top: 70px;
}

main > img {
    width: 25%;
    height: auto;
    padding: 25px;
    float: right;
}

body > footer {
    background-color: hsl(210, 20%, 75%);
    color: rgba(102, 102, 102, 0.6);
    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;
}

/*Vacation Gallery */

.vacation-gallery {
    display: flex;
    flex-wrap: wrap;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item {
    flex: 0 0 25%;
    padding: 5px;
    box-sizing: border-box;
}

/* Mobile Display Queries */

@media screen and (max-width: 768px) {

    body {
        width: 100%;
        margin: 0;
    }

    nav li {
        float: none;
        width: 100%;
        font-size: x-large;
    }

    nav a {
        border-bottom: 1px solid black;
    }

    main > img {
        width: 90%;
        float: none;
    }

    .gallery-item {
        flex: 0 0 50%;
    }

    .family-table,
    .family-table thead,
    .family-table tbody,
    .family-table tfoot,
    .family-table tr,
    .family-table th,
    .family-table td {
        display: block;
        width: 100%;
    }

/* Mobile Form Display Styles */
    form {
    width: 100%;
    font-size: large;
}

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

/* Inputs + Select */
input,
select {
    position: inherit;
    display: block;
    height: 50px;
    padding: 5px;
    width: 100%;
}
select {
    box-sizing: border-box;
}

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

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

    
@media screen and (max-width: 480px) {

    .gallery-item {
        flex: 0 0 100%;
    }
}


/* Family Table */

.family-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgb(255, 230, 180);
}

.family-table th,
.family-table td {
    border: 2px solid rgb(91, 91, 91);
    padding: 10px;
    text-align: left;
}

.family-table thead {
    background-color: rgb(200, 120, 0);
    color: white;
}

.family-table tfoot {
    background-color: rgb(220, 160, 60);
    font-weight: bold;
    text-align: center;
}

/* Focus Styles */

input:focus,
select:focus,
textarea:focus {
    background-color: #f0f0f0;
}

/* Valid and Invalid Input Styles */
input:focus:valid,
select:focus:valid,
textarea:focus:valid {
    background-color: rgb(220, 255, 220);
}

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

/* Form Styles */
form {
    width: 90%;
    margin: 0 auto;
}

fieldset {
    width: 90%;
    padding: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    position: relative;
}

/* Inputs + Select  */
input,
select {
    display: block;
    position: relative;
    left: 30%;
    width: 60%;
    padding: 5px;
    height: auto;
}

/* Labels */
label {
    display: block;
    position: absolute;
    padding: 5px;
    width: 30%;
}

/* Radio buttons */
input[type="radio"] {
    display: inline;
    position: inherit;
    left: 0;
    width: auto;
}

/* Radio labels */
label.radio {
    display: inline;
    position: inherit;
}

/* Submit + Reset buttons */
input[type="submit"],
input[type="reset"] {
    display: block;
    position: relative;
    float: none;
    left: 0;
    text-align: center;
    width: 40%;
    padding: 10px;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 10px;
}

textarea {
    display: block;
    position: relative;
    left: 30%;
    width: 60%;
    padding: 5px;
}
textarea {
    margin-bottom: 20px;
}