* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #751423;
    color: #fff;
}

.container {
    height: calc(100vh - 300px);
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for all browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.page {
    flex: none;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 60px;
    padding-left: 10px;
    padding-right: 10px;
}

h1 {
    font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page1, .page2, .page3 {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

.wedding-header {
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    text-align: center;
    z-index: 10;
    position: relative;
}

.wedding-script {
    font-family: "Waterfall", cursive;
    font-size: 3.2rem;
    color: #f1dadc;
    margin-bottom: 1.2rem;
}
.wedding-title {
    font-size: 2rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}
.wedding-title-logo {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Equal widths */
    justify-items: center;
    align-items: center;
    font-size: 2rem;
    letter-spacing: 0.15em;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    gap: 0;
}
.wedding-title-col-1 {
    display: flex;
    justify-content: end;
    width: 100%;
}
.wedding-title-col-2 {
    display: flex;
    justify-content: start;
    width: 100%;
}
.wedding-title-logo-center {
    margin: 0 20px;
}
.wedding-logo-inline {
    max-width: 48px;
    max-height: 48px;
    margin: 0;
}
.wedding-date-location {
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 1.7rem;
    margin-top: 1.7rem;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.wedding-nav {
    height: 25px;
    display: grid;
    /* grid-template-columns: 1fr 1fr 1fr; */
    grid-template-columns: auto auto auto;
    justify-items: center;
    align-items: center;
    font-size: 0.95rem;
    color: #f1dadc;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    gap: 1rem;
    padding-left: 5px;
    padding-right: 5px;
}
.nav-link {
    color: #f1dadc;
    text-decoration: none;
    cursor: pointer;
    font-weight: normal;
    transition: color 0.2s, font-weight 0.2s, border-bottom 0.2s;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    width: 100%;
}
.nav-link.selected span{
    color: #fff;
    font-weight: bold;
    border-bottom: 2px solid #fff;
}
.nav-link:hover {
    color: #fff;
}
.wedding-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2vh;
    height: 100%;
    width: 100%;
}
.wedding-photo {
    aspect-ratio: 200 / 120;
    max-width: 80vw;
    max-height: 900px;
    flex: 1 1 auto;
    height: 0;
    min-height: 100px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2vh;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.wedding-info-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 5px;
    margin-bottom: 1.5vh;
}
.wedding-info-divider {
    display: flex;
    align-items: center;
    height: 100%;
}
.info-hr {
    border: none;
    border-left: 2px solid #e0e0e0;
    height: 60px;
    width: 0;
    margin: 0 12px;
    background: none;
}
.wedding-date-block, .wedding-location-block {
    text-align: center;
}
.wedding-date-big, .wedding-location-big {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
    font-weight: 600;
}
.wedding-date-big span, .wedding-location-big span {
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    margin-top: 0.4rem;
}
.wedding-day-label {
    font-size: 1rem;
    color: #fff;
    text-align: center;
    margin-top: 0.5vh;
    font-weight: bold;
}
.wedding-day-label span {
    font-size: 0.95rem;
    color: #f1dadc;
    font-weight: normal;
}
.wedding-logo {
    display: block;
    margin: 0.7rem auto 0.7rem auto;
    max-width: 120px;
    max-height: 70px;
}
.map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-left: 0;
    margin-top: 6px;
}
.map-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    background: none;
    transition: filter 0.2s;
}
.icon-map{
    width: 30px;
    height: 30px;
    background-color: #f1dadcee;
    -webkit-mask: url('map.svg') no-repeat center;
    mask: url('map.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
a:hover .icon-calendar {
    background-color: #fff;
}
.icon-calendar {
    width: 30px;
    height: 30px;
    background-color: #f1dadcee;
    -webkit-mask: url('calendar.svg') no-repeat center;
    mask: url('calendar.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
a:hover .icon-map {
    background-color: #fff;
}
.wedding-location-block, .wedding-day-label span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.wedding-location-big, .wedding-day-label span {
    flex-direction: row;
    gap: 10px;
}
.wedding-plan {
    font-weight: 600;
}
.information {
    line-height: 1.6;
}
.invisible-link {
    position: fixed;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    z-index: 9999;
    opacity: 0;
    pointer-events: auto;
}
.mobile {
    display: none;
}
.info-hr {
  border: none;
  border-left: 2px solid #e0e0e0;
  height: 60px;
  width: 0;
  margin: 0 12px;
  background: none;
}
.name-hr {
    width: 60%;
    border: none;
    border-top: 2px solid #fff;
    margin-bottom: 0.3rem;
    margin-top: 0.2rem;
    opacity: 0.7;
}
.wedding-countdown-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 0.8rem;
    margin-top: 2rem;
}
.countdown-box {
    background: #fff;
    color: #751423;
    border-radius: 8px;
    padding: 2px 15px 1px 15px;
    min-width: 60px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 1rem;
}
.countdown-box::before, .countdown-box::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #751423;
}
.countdown-box::before {
    top: 0; left: 0;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 8px;
}
.countdown-box::after {
    bottom: 0; right: 0;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 8px;
}
.countdown-number {
    color: #751423;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.countdown-label {
    color: #751423;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 520px) {
    .desktop {
        display: none;
    }
    .mobile {
        display: block;
    }
    .wedding-header {
        margin-top: 15px;
    }
    .wedding-title {
        font-size: 1.6rem;
    }
    .wedding-header {
        height: 90px;
        min-height: 90px;
        max-height: 90px;
        color: #f1dadc;
    }
    .container {
        height: calc(100vh - 130px);
    }
    .wedding-date-big {
        font-size: 1.0rem;
    }
    .wedding-date-big span {
        font-size: 0.9rem;
    }
    .wedding-location-big {
        font-size: 1.0rem;
    }
    .wedding-location-big span {
        font-size: 0.9rem;
    }
    .wedding-day-label {
        font-size: 0.8rem;
    }
    .wedding-script {
        margin-bottom: 0.1rem;
    }
    .wedding-date-location {
        margin-top: 2.0rem;
        margin-bottom: 1.0rem;
    }
    .page {
        padding-bottom: 100px;
    }
    .info-hr {
        margin: 0 3px;
    }
}

@media (max-width: 367px) {
    .wedding-header {
        height: 85px;
        min-height: 85px;
        max-height: 85px;
    }
    .container {
        height: calc(100vh - 145px);
    }
}

.day-big-screen {
    display: inline;
}
.day-small-screen {
    display: none;
}

@media (max-width: 395px) {
    .day-big-screen {
        display: none;
    }
    .day-small-screen {
        display: inline;
    }
}

@media (max-height: 760px) {
    .page2 .wedding-photo {
        display: none;
    }

    .page2 {
        margin-bottom: 30px;
    }
}
