/* Global layout */
body {
    align-items: center;

    background-image:
        url("../imgs/flowers.webp"),
        url("../imgs/background.png");
    background-position: center, center;
    background-repeat: no-repeat, repeat;
    background-size: contain, 200px 200px;

    color: black;
    display: flex;
    flex-direction: column;

    font-family: 'Neucha', 'cursive';
    font-size: clamp(0.975rem, 4vw, 1.3rem);
    font-style: normal;
    font-weight: 400;

    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;

    padding: 40px 20px;
    position: relative;
}

/* Content Box */
.content {
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
    left: 51%;
    line-height: 1.3;
    position: absolute;
    top: 40%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: min(90%, 600px);
    z-index: 10;
}

.names {
    font-family: 'Great Vibes', 'cursive';
    font-size: clamp(3rem, 4vw, 4rem);
    font-style: normal;
    font-weight: 400;
    margin-top: 50px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.names span {
    display: block;
    margin-top: -25px
}

.header {
    font-size: clamp(1.35rem, 4vw, 1.8rem);
    font-weight: 700;
    margin-top: 35px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.info {
    margin-left: auto;
    margin-right: auto;
    margin-top: 25px;
    max-width: 270px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info span {
    display: block;
    margin-top: 25px;
}

.button {
    background-color: #4caf50;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: black;
    display: inline-block;

    margin-top: 35px;
    padding: 15px 30px;
    text-decoration: none;

    transition: all 0.2s ease;
}

.button:hover {
    background-color: #256628;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    body {
        background-image:
            url("../imgs/flowers.webp"),
            url("../imgs/background.png");
        background-position: center, center;
        background-repeat: no-repeat, repeat;
        background-size: contain, 200px 200px;
        padding: 20px 10px;
    }

    .content {
        top: 45%;
        width: 90%;
    }

    .home-page .content {
        left: 53%;
    }

    .location-page .content {
        left: 51.5%
    }

    .rsvp-page .content {
        left: 51%;
    }

    .info {
        max-width: 200px;
    }

    .button {
        padding: 10px 20px;
    }
}

/* Hamburger Menu */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
    gap: 6px;
}

.menu-icon span {
    height: 3px;
    background: black;
    border-radius: 3px;
    transition: 0.3s;
}

.menu-content {
    position: absolute;
    top: 45px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.menu-content a {
    text-decoration: none;
    color: black;
    font-size: 1.1rem;
}

#menu-toggle:checked ~ .menu-content {
    display: flex;
}

#menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

#menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

* {
    box-sizing: border-box;
}
