/* Base styles - ensures background color fills full screen even on short pages */
html, body {
    min-height: 100%;
    background-color: rgb(240, 243, 218);
    font-family: 'Lora', serif;
}
/* Removes default browser margin and adds a fade effect at top/bottom edges using mask */
body {
    margin: 5px;
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,0.5) 0%,
        black 15%,
        black 85%,
        rgba(0,0,0,0.8) 100%
    );
}
/*//////////////////////////////////////////////*/
/* title box */
.main-header {
    background: white;
    color: rgb(236, 74, 189);
    text-align: center;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    /* padding: 15px; */
}
/* main header image */
/* 530 pixels the image starts getting cut off */
.main-header img {
    width: 500px;
}
/* main header text - hidden by default, shown on small screens */
.main-header h1 {
    display: none;
}
/* swap image for h1 text when screen is too small for image */
@media screen and (max-width:530px) {
    .main-header img {
        display: none;
    }
    .main-header h1 {
        display: inline;
    }
}
/* nav un-ordered list - displayed as 3 equal columns */
.main-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    margin: 0;
    text-align: center;
    color: white;
    padding: 0;
}
/* li is the positioning context for absolute dropdown */
.main-nav li {
    background: rgb(101, 155, 52);
    position: relative;
}
/* on small screens, flex-center each nav item vertically and horizontally */
@media screen and (max-width:430px) {
    .main-nav li {
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
/* shrink font further on very small screens to prevent text overflow */
@media screen and (max-width:309px) {
    .main-nav li {
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: smaller;
    }
}

/* dropdown content - hidden by default, absolutely positioned below button */
.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(246, 185, 229, 0.5);
    width: 100%; 
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); 
    z-index: 1;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
/* strip all default button styles from the dropdown trigger */
.dropdown .dropdown-button{
    all: unset;
}
/* position relative makes dropdown the anchor for absolute dropdown-content;
   width 100% ensures dropdown-content stretches to match the full li column */
.dropdown {
    position: relative;
    width: 100%;
}
/* wrap arrow in span so it can be transformed independently of button text */
.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
/* rotate arrow 180 degrees when dropdown is open */
.dropdown:hover .arrow {
    transform: rotate(180deg);
}
/* show dropdown content on hover */
.dropdown:hover .dropdown-content{
    display: block;
}
/* nav links - block display so they fill full height of li */
.main-nav a {
    text-decoration: none;
    display: block;
    height: 100%;
    color: white;
}
/* this media query is placed AFTER the global .main-nav a rule above so it
   correctly overrides display:block with flex centering on small screens */
@media screen and (max-width:430px) {
    .main-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
    }
}
.main-nav a:visited {
    color: white;
}
/* dropdown links use pink color to match theme */
.dropdown-content a:visited {
    color: rgb(236, 74, 189);
}
.main-nav a:active {
    background: rgb(236, 74, 189);
}
.dropdown-content a {
    border: 1px solid rgba(255,255,255,0.2);
    color: rgb(236, 74, 189);
}

/* gallery is disabled - not clickable, grayed out, shows tooltip on hover */
.nav-disabled {
    display: block;
    color: rgb(100, 100, 100);
    cursor: not-allowed;
}

/* header casts a shadow downward onto main to appear elevated above content;
   position relative and z-index required for shadow to paint over main background */
header {
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    z-index: 1;
    position: relative;
}

/* Gallery/////////////////////////////////////////////////////// */
.image-container {
    width: calc(100% * 1/3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem; 
    padding-bottom: 5rem;
}
.image-container img {
    width: 90%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
/* subtle zoom on image hover */
.image-container:hover img {
    transform: scale(1.1);
}
/*////////////////////////////////////////////////////////*/
/* CONTACT PAGE */
main {
    color: rgb(101, 155, 52);
    background: rgb(240, 243, 218);
}
.contact-list {
    padding-left: 10%;
    opacity: 0;
    transition: opacity 0.6s ease;
}
/* divider with centered 'or' text between two horizontal lines */
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.divider hr {
    flex: 1;
    border: none;
    border-top: 2px solid rgb(101, 155, 52);
}
/* .divider span {
} */
/* margin-top:0 prevents margin collapse bleeding out of main above header */
.contact-header {
    display: block;
    text-align: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.email-subject {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-left: 10%;
    opacity: 0;
    transition: opacity 0.6s ease;
    padding-top: 1%;
}
.email-body {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 20px;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 5%;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.email-body label {
    width: 25%;
    text-align: right;
}
.email-body textarea {
    width: 75%;
}
/* button centered on page; font-size set explicitly as browsers don't inherit it by default */
button {
    display: block;
    width: 10%;
    margin-left: 45%;
    margin-right: 45%;
    margin-top: 5%;
    color: rgb(101, 155, 52);
    background: white;
    font-weight: bold;
    font-size: 1rem;
}
/* shrink button font on small screens so 'Send' fits */
@media screen and (max-width: 508px) {
    button {
        font-size: 0.75rem;
        width: 15%;
    }
}
/* .contact-form {
} */

/* generic fade-in class - elements start invisible and transition to visible
   when the 'appeared' class is added by the IntersectionObserver */
.appear-target {
    opacity: 0;
    transition: opacity 0.6s ease;
}
.appear-target.appeared {
    opacity: 1;
}
.contact-header.appeared {
    opacity: 1;
}
.email-body.appeared {
    opacity: 1;
}
.email-subject.appeared {
    opacity: 1;
}
.contact-list.appeared {
    opacity: 1;
}
.divider.appeared {
    opacity: 1;
}

/* LOCATION/////////////////////////////////////////////////////////////// */
/* map-embed uses margin auto to center the iframe horizontally */
.map-embed {
    display: block;
    margin: 0 auto;
    padding-top: 1%;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.location-div {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1%;
    opacity: 0;
    transition: opacity 0.6s ease;
}
/* only apply cursive to the h2 heading inside location-div */
/* .location-div h2 {
} */
.map-embed.appeared {
    opacity: 1;
}
.location-div.appeared {
    opacity: 1;
}

/* payment ////////////////////////////////////////////////////////////*/
.payment-header {
    display: flex;
    justify-content: center;
    /* margin: 0; */
    /* padding-top: 1%; */
    opacity: 0;
    transition: opacity 0.6s ease;
}
.payment-options {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.payment-header.appeared {
    opacity: 1;
}
.payment-options.appeared {
    opacity: 1;
}
