/* ====== Global Styles ====== */
body {
    margin: 0;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    color: #e6e6e6;
    font-size: 1.1em;
    font-family: cursive;
}

header img {
    width: 100%;
    border: fuchsia 5px solid;
    box-shadow: #070b0c 4px 4px 10px;
    display: inline-block;
    animation: scroll-across 20s linear infinite;
}

#familypic {
    width: 50%;
    border: fuchsia 5px solid;
    box-shadow: #070b0c 4px 4px 10px;
    display: block;
    margin: 20px auto;
}

h1,
h2 {
    color: #e02eab;
    font-size: 2.2em;
    text-shadow:
        0 0 2px #e7f0f3,
        0 0 3px #99487e,
        0 0 4px cyan,
        4px 6px 5px lightpink;
}

figcaption {
    color: #e6e6e6;
    font-size: 18px;
    text-align: center;
    margin-top: 5px;
}

p {
    font-size: 20px;
    color: #130a10;
    text-shadow: 0 0 4px cyan;
    font-weight: bolder;
}

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

footer {
    clear: both;
    padding-top: 20px;
}

footer a {
    color: #a8157c;
    text-shadow: 0 0 4px cyan;
    font-size: 20px;
    text-decoration: none;
}

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

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

nav a {
    display: block;
    background-color: #d87c83;
    line-height: 2.8em;
    text-align: center;
    text-decoration: none;
    color: #00e6ff;
    font-size: 1.1em;
    font-weight: bold;
    text-shadow:
        0 0 3px #ffffff,
        0 0 6px #070b0c;
}

nav a:hover {
    background-color: #00e6ff;
    color: #b398ab;
    text-shadow:
        0 0 4px cyan,
        0 0 8px #ff88dd;
}

/* Animation */
@keyframes scroll-across {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ====== Desktop Media Query ====== */
@media only screen and (min-width: 769px) {
    html {
        background-image: url('./images/background.jpg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        background-attachment: fixed;
    }

    main>img {
        width: 25%;
        float: right;
        box-shadow: #070b0c 4px 4px 10px;
        border: fuchsia 5px solid;
    }
}

/* ====== Tablet/Mobile Media Query ====== */
@media only screen and (max-width: 768px) {
    body {
        width: 100%;
        margin: 0;
    }

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

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

    main>img {
        width: 90%;
        float: none;
        display: block;
        margin: 10px auto;
    }
}



/* ====== Vacation Grid ====== */
.vacation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.vacation-grid img {
    width: 100%;
    height: auto;
    border: fuchsia 5px solid;
    box-shadow: #070b0c 4px 4px 10px;
}