@charset "utf-8";

body {
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(70, 85, 100);
    background-color: rgb(245, 249, 252);
    width: 90%;
    margin-left: auto;
    margin-right: auto;   
}

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

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

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

h2 {
    font-size: 1.3em;
}


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

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

nav a {
    display: block;
    background-color: rgb(195, 215, 230);
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
    color: rgb(60, 85, 110);
    border: 1px solid #fff; 
}

nav a:hover {
    background-color: rgb(170, 200, 220);
    color: rgb(40, 65, 90);
}


main {
    padding: 20px;
    margin-top: 35px;
    background-color: rgba(255, 255, 255, 0.8); 
    border-radius: 10px;
}


.personal_image {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


.vacation_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.vacation_card {
    flex: 1 1 300px; 
    max-width: 350px;
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.vacation_card img {
    width: 100%;
    aspect-ratio: 4 / 3; 
    object-fit: cover;   
    border-radius: 8px;
    display: block;
}




.family-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    border: 2px solid rgb(70, 85, 100);
}

.family-table th, .family-table td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: left;
}

.family-table thead {
    background-color: rgb(195, 215, 230);
    color: rgb(60, 85, 110);
}

.family-table tfoot {
    font-style: italic;
    background-color: rgb(245, 249, 252);
    font-weight: bold;
}


@media screen and (max-width: 600px) {
    .family-table thead { display: none; }
    .family-table td {
        display: block;
        text-align: right;
        position: relative;
        padding-left: 50%;
        border-bottom: 1px solid #eee;
    }
    .family-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-align: left;
    }
}


@media only screen and (min-width: 769px) {
    html {
        background-image: url("website_background.jpg"); 
        background-repeat: no-repeat;
        background-position: center center;
        background-attachment: fixed;
        background-size: cover;
    }
}


footer {
    clear: both;
    background-color: rgb(195, 215, 230);
    color: rgb(90, 105, 120);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 1.5em;
    text-align: center;
    margin-top: 20px;
    padding: 20px;
}

.education-list {
    list-style-type: square;
    line-height: 1.8em;
}


@media only screen and (max-width: 768px) {
    body {
        width: 100%;
    }
    nav li {
        width: 100%; 
        float: none;
    }
}