html {
    background-color: rgb(248, 177, 149);
    background-image: url(background.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333; 
    background-color: rgba(255, 255, 255, 0.95); 
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
}

nav {
    background-color: rgba(255, 160, 122, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; 
    top: 0;
    z-index: 1000;
}

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

nav li {
    flex: 1;
}

nav a {
    display: block;
    background-color: transparent;
    line-height: 3em;
    text-decoration: none;
    text-align: center;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

nav li:last-child a {
    border-right: none;
}

nav a:hover {
    background-color: rgba(238, 130, 238, 0.9);
    color: white;
    transform: translateY(-2px); 
    transition: all 0.3s ease; 
}

header {
    text-align: center;
    padding: 40px 20px 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 100%);
}

header img {
    width: 100%;
    max-width: 800px; 
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

h1 {
    text-align: center;
    font-size: 2.5em;
    color: #293c50;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(26, 14, 107, 0.2); 
}

h2 {
    font-size: 2em;
    color:rgb(4, 10, 109);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.1);
}

p {
    line-height: 1.8; 
    margin-bottom: 15px;
}

p.quote{
    text-align: center;
    border: solid black 2px;
}

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

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

body>footer {
    background-color: rgb(244, 157, 181);
    color: rgba(56, 0, 40, 0.5);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    clear: both;
}

ul {
    list-style-type: square;
}

/* Flexbox */
div.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

div.imgGallery {  
    flex: 0 0 calc(33.333% - 11px);  
}

div.imgGallery img {  
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Meida rules */
@media only screen and (max-width:1100px) {
    div.imgGallery {
        flex-basis: 30%;
        max-width: 50%;
    }
}

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

    div.imgGallery {
        flex-basis: 100%;
        max-width: 100%;
    }
    
    table,
    tbody,
    tr,
    td,
    th {
        display: block;
    }

    thead,
    tfoot {
        display: none
    }

    tbody td {
        position: relative;
        padding-left: 40%;
        height: auto;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        top: 0px;
        left: 0px;
        padding: 10px;
        width: 40%;
        white-space: nowrap;
    }

    iframe{
        width: 100%;
    }
}


/* Tables */
table {
    width: 100%;
    border: 10px ridge gray;
    border-collapse: collapse;
}

th,
td {
    height: 25px;
    border: 1px solid gray;
    padding: 10px;
}

thead,
tfoot {
    background-color: indianred;
    color: white;
}

tfoot {
    text-align: center;
}

tbody tr:nth-of-type(even) {
    background-color: beige;
}

