:root {
    --accent-color: #5A72F9;
    --hover-color: #FF376D;
    --drop-shadow: drop-shadow(5px 5px 0.5rem white);
}

html {
    font-family: "Sans serif", sans-serif;
    font-size: clamp(14px,1.25vw,20px);
    line-height: 1.4;
}
@font-face {
    font-family: "Pacifico";
    src: url("fonts/Pacifico.ttf") format("truetype");
}
body {
    margin: 0;
    opacity: 0;
}

body.ready {
    opacity: 1;
    transition: opacity 1s;
}

h2 {
    font-size: 1rem;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: var(--accent-color);
}

nav a {
    font-size: 1.25rem;
    font-weight: bold;
}

h2 {
    margin-top: 0;
}

a:hover {
    color: var(--hover-color);
}

.accent a {
    color: var(--accent-color);
}


app-logo {
    /* align-self: flex-start; */
    margin-top: 2rem;
}

.bg {
    pointer-events: none;
    z-index: -1;
    /* background-image: url(https://media.istockphoto.com/id/678719470/photo/closeup-of-sand-pattern-of-a-beach-in-the-summer.jpg?s=612x612&w=0&k=20&c=bKjodHBfoIeJePPW75wNIsf1ormMNWKTpGph4Rjp07Y=); */
    background-size: cover;
    opacity: 0.8;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    filter: blur(10px);
    background-color: #fff2e0;
}


.page {
    
    /* margin: 0 auto; */
    align-items: center;
    gap: 4rem;
    flex: 1;
    padding: 4rem 0 2rem;
    width: 100%;
}

.flex {
    display: flex;
}

.column {
    flex-direction: column;
}


.desktop {
    display: block;
}
.mobile {
    display: none;
}

#password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition opacity .3s, left 0s 3s;
    z-index: 100;
}

#password-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    left: -1000vw;
}

@media(max-width: 850px) {
    .desktop {
        display: none;
    }
    .mobile {
        display: block;
    }
}

#site {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem;
    gap: 0rem;
    min-height: calc(100vh - 7rem);
}

@media(max-width: 850px) {
    #site {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
}

.abs {
    position: absolute;
}

.gap-2 {
    gap: 2rem;
}

.accent {
    color: var(--accent-color);
}




@keyframes rotateHueText {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes rotateHue {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.wrap {
    flex-wrap: wrap;
}


app-nav {
    position: sticky;
    top: 2rem;
    align-self: center;
    width: 100%;
    z-index: 5;
}
 
app-nav nav {
    gap: 0 2rem ;
    justify-content: center;
}

#home img {
    /* max-width: 60%; */
}

.logo-wrapper {
    position: relative;
    max-width: 18rem;
    filter: sepia(0.5);
    width: 18rem;
    aspect-ratio: 1.01;
}

.logo-text {
    animation: rotateHueText 12s linear infinite;
}

.logo-wrapper img {
    animation: rotateHue 12s linear infinite;
    opacity: 0.4;
    transform: scale(1.2);
}

.logo-wrapper .title {
    font-family: "Pacifico";
    left: 12%;
    top: -5%;
    margin: 0;
    font-size: 5rem;
    animation-delay: -1.5s;
    z-index: 2;
    line-height: 1.1;
    transform: rotate(-4deg);
    text-shadow: 1px 1px 1px black;
    /* color: white!important; */
    
    
}


.logo-wrapper .date {
    font-family: "Pacifico";
    left: 22%;
    top: 61%;
    font-size: 1.8rem;
    animation-delay: -1s;
    z-index: 2;
    transform: rotate(-4deg);
}

.logo-wrapper .location {
    font-family: "Pacifico";
    left: 8%;
    top: 76%;
    font-size: 1.8rem;
    animation-delay: -.5s;
    z-index: 2;
    transform: rotate(-3deg);
    white-space: nowrap;
}
main {
    width: 100%;
}

main > section {
    /* min-height: 40vh; */
    width: 100%;
    /* padding: 2rem 0; */
    display: none;
}

section:not(#home){
    max-width: min(40rem, calc(100vw - 2rem));
    margin: 0 auto;
}

.bold {
    font-weight: bold;
}

#stay,#travel {

}

#stay .grid-item,#travel .grid-item {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 4rem;
    margin-right: 2rem;
}

.grid-item-title {
    font-weight: bold;
    color: var(--accent-color);
}

.grid-item-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    display: grid;
    grid-template-columns: 12rem 1fr;
    gap: 4rem;
}

.schedule-item-event {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#stay > div {
    gap: 1rem;
}

#stay .grid-item-content {
    gap: 1rem;
}

@media(max-width: 850px){
    app-nav a {
        background: #fff2e0;
        padding: 0 .2rem;
    }
    #stay > div {
        gap: 2rem;
    }
    nav {
        gap: 0 1rem!important;
        flex-wrap: wrap;
        gap: .5rem 1rem!important;
    }
    #schedule > div {
        gap: 4rem!important;
    }

    .page {
        align-items: flex-start;
        width: 100%;
    }

    #schedule > h2 {
        margin-bottom: 0;
    }
    .schedule-item-or {
        grid-template-columns: 8rem 1fr;
    }
    .schedule-item {
        grid-template-columns: 8rem 1fr;
        display: flex;
        flex-direction: column;
        gap: 0rem;
    }
    #stay .grid-item, #travel .grid-item {
        display: flex;
        grid-template-columns: 5rem 1fr;
        gap: 1rem;
        margin-right: 2rem;
        flex-direction: column;
    }
    app-logo {
        margin-top: 1rem;
    }
    .logo-wrapper {
        width: 20rem;
    }
    .logo-wrapper .title {
        left: 13%;
        top: 0%;
        font-size: 4.5rem;
    }
    .logo-wrapper .date {
        left: 19%;
        top: 60%;
        font-size: 2rem;
    }
    .logo-wrapper .location {
        left: 2.4%;
        top: 76.5%;
        font-size: 2rem;
    }
}

#password-overlay {
    font-size: 24px;
}

.password-form {
    margin: 1rem;
}

#password-overlay input, #password-overlay button {
    font-size: 24px;
    margin: .25rem;
}

.footer {
    text-align: center;
    padding-bottom: 2rem;
    justify-content: center;
    gap: .5rem;
    margin-top: 4rem; 
}

.bookend {
    width: 3rem;
    margin: 0 .25rem;
    cursor: pointer;
}

/* every 2 seconds, wiggle a little */
@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }
    79% {
        transform: rotate(0deg);
    }
    80% {
        transform: rotate(0deg);
    }
    83% {
        transform: rotate(5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.bookend:not(.playing) {
    animation: wiggle 2s infinite;
}

/* keyframes to rotate 33.3 times a minutes */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.bookend.playing {
    transform: scale(1.1);
    animation: spin 1.8s linear infinite;
}
.glide__slides {
    /* overflow: visible; */
}


.glide__slide {
    /* width: 100%!important; */
}

#carousel {
    width: calc(100% - 4rem)!important;
    margin: 0 auto;
    /* aspect-ratio: 1; */
    /* max-height: calc(100vw - 30rem); */
    display: flex;
    position: relative;
}

.main-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    
}


.full {
    width: 100%;
    height: 1px;
}

.carousel-cell {
    width: 100%;
    object-fit: contain;
    margin-right: 1px;
    height: auto;
    max-height: min(calc(100vw - 30rem), calc(100vh - 12rem));
}

.flickity-slider {
    display: flex;
    align-items: center;
}

.flickity-page-dots {
    display: none;
  }

.main-carousel .flickity-button {
    background-image: url(cj-logo.png)!important;
    background-color: transparent!important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.main-carousel .flickity-button svg {
    display: none;
}

.flickity-button {
    background: transparent;
}

.main-carousel .flickity-button.next {
    transition: .3s transform;
    transform: translateX(130%) rotate(107deg);
}

.main-carousel .flickity-button.next:hover {
    transform: translateX(130%) rotate(118deg);

}

.main-carousel .flickity-button.next.bump {
    transform: translateX(130%) rotate(100deg);
}

.main-carousel  .flickity-button:hover {
    background-color: transparent!important;

}

.flickity-button.previous {
    transition: .3s transform;
    filter: invert(1);
    transform: translateX(-130%) rotate(-71deg); 
}
.flickity-button.previous:hover {
    transform: translateX(-130%) rotate(-50deg); 
}

.flickity-button.previous.bump {
    transform: translateX(-130%) rotate(300deg); 
} 


@media(max-width: 850px){
    #carousel {
        width: calc(100% - 2rem)!important;
        margin: 0 auto;
        /* height: 350px; */
    }
    .main-carousel {
        position: static;
        display: flex;
        width: calc(100vw - 2rem);
        flex-direction: column;
        gap: 1rem;
    }
    .carousel-cell {
        max-height: min(calc(100vw - 10rem), calc(100vh - 22rem));
        max-height: none;
    }
    nav {
        justify-content: flex-start;
    }
}

#rsvpify-wrapper {
    text-align: center;
    
    /* margin: 0 auto; */
}

#rsvpify-wrapper iframe {
max-width: 800px;
}

#rsvp-wrapper {
    height: 0px;
    width: 0px;
    overflow: hidden;
}

#rsvp-wrapper.active {
    height: auto;
    width: auto;
    overflow: visible;
}