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

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

input:valid, 
select:valid {
    border: 2px solid green; 
}

input:invalid, 
select:invalid {
    border: 2px solid red; 
}

.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_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 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;
    }

    form {
        width: 90%; 
    }

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

    input, select, textarea {
        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%; 
        padding: 10px; 
        margin: 0 5% 10px 5%; 
    }
}

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

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

    .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;
    }
}