/*Guidebook for our Vacation Rental*/
/* Normalize and base styles */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #b4e9a2;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    position: fixed;
    width: 100%;
    height: 100px;
    background-color: #326127;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
}

#header-image {
    width: 10vw;
    max-height: 90px;
    padding: 5px;
    object-fit: contain;
}

#nav-bar {
    max-width: 80vw;
}

#nav-bar ul {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    margin: 0 1rem;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: #dfdfe2;
}

.nav-link a {
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: #dfdfe2;
    color: #1b1b32;
}

main {
    margin-top: 110px;
    padding: 0 1rem;
}

h1, h2, h3 {
    text-align: center;
}

h1.last {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #326127;
}

h2 {
    font-size: 1.8rem;
    margin: 1rem 0;
}

h3 {
    font-size: 1.3rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 70vw;
    margin: 2rem auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#guidebook .entry {
    margin: 1.5rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

span {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

address, p, a {
    text-align: center;
    font-size: 1rem;
    margin: 0.3rem 0;
}

.n-link {
    scroll-margin-top: 110px;
}

.entry {
    text-align: center;
}

.entry a:hover {
    background-color: #dfdfe2;
    color: #1b1b32;
}

.form-section {
    text-align: center;
    margin: 2rem 0;
}

#email-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

#email-form label {
    font-size: 1.1rem;
}

#email-form input {
    padding: 0.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
}

#email-form button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #326127;
    color: #dfdfe2;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#email-form button:hover {
    background-color: #1b1b32;
}

/* Medium screens: Laptops and tablets (768px–1199px) */
@media screen and (max-width: 1199px) {
    header {
        height: 80px;
    }

    #header-image {
        width: 12vw;
        max-height: 70px;
    }

    .nav-link {
        font-size: 1.3rem;
        margin: 0 0.5rem;
    }

    main {
        margin-top: 90px;
    }

    h1.last {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .video-container {
        max-width: 600px;
    }

    .n-link {
        scroll-margin-top: 90px;
    }
}

/* Small screens: Phones (≤767px) */
@media screen and (max-width: 767px) {
    header {
        height: auto;
        padding: 0.5rem;
        flex-direction: column;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
    }

    #header-image {
        width: 20vw;
        max-height: 60px;
        margin-bottom: 0.5rem;
    }

    #nav-bar {
        width: 100%;
    }

    #nav-bar ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 1.1rem;
        margin: 0.3rem 0;
        padding: 0.3rem;
    }

    main {
        margin-top: 150px;
        padding: 0 0.5rem;
    }

    h1.last {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    address, p, a {
        font-size: 0.9rem;
    }

    .video-container {
        max-width: 100%;
    }

    .n-link {
        scroll-margin-top: 150px;
    }

    #email-form input {
        max-width: 250px;
    }
}

/* Extra small screens: Very small phones (≤576px) */
@media screen and (max-width: 576px) {
    #header-image {
        width: 25vw;
        max-height: 50px;
    }

    .nav-link {
        font-size: 1rem;
    }

    main {
        margin-top: 160px;
    }

    h1.last {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    address, p, a {
        font-size: 0.85rem;
    }

    #email-form input {
        max-width: 200px;
    }

    #email-form button {
        font-size: 0.9rem;
    }
}