@charset "utf-8";

html {
   background-color: hsl(210, 30%, 92%);
}

body {
    font-family: Verdana, Geneva, sans-serif;
    margin: 0;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    background-color: #111;
    color: #f5c400;
}


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

h2 {
   font-size: 1.3em;
}

nav {
   background-color: hsl(210, 35%, 75%);
   padding: 15px;
   text-align: center;
}

nav a {
   padding-left: 10px;
   padding-right: 10px;
   text-decoration: none;
   color: rgb(40, 40, 40);
}


nav a:hover {
   text-decoration: underline;
   color: rgb(0, 70, 140);
}


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

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

body > footer {
   background-color: hsl(210, 35%, 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;
}

.education-list {
   list-style-type: square;
}

header img {
    width: 100%;
    display: block;
}

html {
    background-image: url("personal2img.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

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


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

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

nav a {
    display: block;
    background-color: #000;
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
    color: #f5c400;
}

nav a:hover {
    background-color: #f5c400;
    color: #000;
}

main img {
    float: right;
}

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

body > footer {
    clear: both;
}

@media only screen and (max-width: 768px) {
    body {
    width: 100%;
    margin: 0;
}

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

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

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

}

@media only screen and (min-width: 769px) {
}

.vacation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.vacation-grid img {
    width: 100%;
    height: auto;
}

#familyTable {
    width: 100%;
    border-collapse: collapse;
    background-color: #f4f4f4;
}

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

#familyTable thead {
    background-color: #555;
    color: white;
}

#familyTable tfoot {
    background-color: #ddd;
    font-weight: bold;
    text-align: center;
}

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

    #familyTable,
    #familyTable thead,
    #familyTable tbody,
    #familyTable th,
    #familyTable td,
    #familyTable tr {
        display: block;
    }

    #familyTable thead {
        display: none;
    }

    #familyTable tr {
        margin-bottom: 15px;
        border: 2px solid #333;
        padding: 10px;
        background-color: white;
    }

    #familyTable td {
        border: none;
        position: relative;
        padding-left: 50%;
    }

    #familyTable td::before {
        position: absolute;
        left: 10px;
        font-weight: bold;
    }

    #familyTable td:nth-of-type(1)::before { content: "Name"; }
    #familyTable td:nth-of-type(2)::before { content: "Relationship"; }
    #familyTable td:nth-of-type(3)::before { content: "Birthday"; }
    #familyTable td:nth-of-type(4)::before { content: "Fact"; }
}

.clear {
clear: both;
}

input:focus, select:focus, textarea:focus {
background-color: #ffffcc;
outline: 2px solid #3399ff;
}

input:valid, select:valid, textarea:valid {
background-color: #e6ffe6;
}

input:invalid, select:invalid, textarea:invalid {
background-color: #ffe6e6;
}

@media only screen and (min-width: 769px) {

form {
    width: 90%;
    margin: auto;
}

fieldset {
    width: 90%;
    padding: 15px;
    margin: 10px auto;
}

fieldset label {
    width: 30%;
    float: left;
    padding: 8px 0;
    clear: left;
}

fieldset input,
fieldset select,
fieldset textarea {
    width: 65%;
    float: left;
    padding: 6px;
    margin-bottom: 10px;
}

/* Radio buttons */
input[type="radio"] {
    float: none;
    width: auto;
    margin-left: 10px;
}

label.radio {
    float: none;
    width: auto;
    margin-right: 15px;
}

/* Buttons */
input[type="submit"],
input[type="reset"] {
    width: 40%;
    float: left;
    padding: 10px;
    margin: 15px 5%;
    text-align: center;
}

footer {
    clear: both;
}

.radio-group {
    float: left;
    width: 65%;
    margin-bottom: 10px;
}

.radio-group input[type="radio"] {
    float: none;
    width: auto;
    margin-left: 10px;
}

.radio-group label.radio {
    float: none;
    width: auto;
    margin-right: 15px;
}

}



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

form {
width: 100%;
font-size: large;
}

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

input, select, textarea {
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;
}

}
