@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"; }
}
