* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.scroll {
    overflow: scroll;
}

body.scroll {
    padding-bottom: 60px;
}

h1 {
    color: var(--light-neutral);
    font-family: 'Antic Didone', serif;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0.1rem;
    text-align: center;
    margin: 0;
}

h2 {
    color: var(--light-neutral);
    font-family: 'Antic Didone', serif;
    font-size: 1.75rem;
    font-weight: 400;
    text-align: center;
    margin: 0;
}

h3 {
    color: var(--light-neutral);
    font-family: 'Antic Didone', serif;
    font-size: 1.5rem;
    letter-spacing: 0.05rem;
    font-weight: 400;
    text-align: center;
    margin: 0;
}

h5 {
    color: var(--light-neutral);
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    text-align: center;
    margin: 0;
    letter-spacing: 0.1rem;
}

.monogram {
    margin-bottom: 16px;
    width: 96px;
}

.countdown {
    background: var(--dark-neutral);
    color: var(--light-neutral);
    display: flex;
    font-size: 3rem;
    flex-direction: column;
    gap: 24px;
    padding: 40px 16px;
}

.countdown div {
    display: flex;
    margin: 0 auto;
    justify-content: space-evenly;
}

.countdown h5 {
    font-size: 0.625rem;
}

.time-unit {
    display: flex;
    width: 60px;
    flex-direction: column;
    gap: 2px;
}

#count-quote {
    font-family: 'Antic Didone', serif;
    font-size: 0.875rem;
    letter-spacing: 0.1rem;
}

.countdown p {
    font-family: 'Antic Didone', serif;
    letter-spacing: 0.1rem;
    text-align: center;
    font-size: 1.725rem;
    margin: 0;
    color: var(--light-neutral);
}

.description {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.quote {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-style: oblique;
    font-weight: bold;
    margin: 0;
    opacity: 50%;
}

.body-1 {
    font-family: 'Antic Didone', serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.5rem;
    letter-spacing: 0.025rem;
    margin: 0;
}

.body1-alt {
    font-family: 'Poppins', sans-serif;
}

#opener {
    position: relative;
    z-index: 15;
}

#opener .btn-big {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 3;
}

@keyframes animateOpener {
    0% {
        transform: translateY(0);
        opacity: 1;
        display: block;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0.25;
        display: block;
    }
}

a {
    text-decoration: none;
}

header {
    margin: 0 auto;
}

.main {
    position: relative;
}

.music {
    background-color: rgba(0, 0, 0, 0.80);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 4px;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 3;
    opacity: 50%;
    transition: all 500ms ease;
    cursor: pointer;
}

.music:hover {
    opacity: 100%;
}

.music span {
    color: var(--light-neutral);
}

.audio {
    display: none;
}

#menu-desktop {
    display: none;
}

.menu-mobile {
    background-color: black;
    bottom: 0px;
    display: flex;
    justify-content: space-around;
    opacity: 80%;
    padding: 8px 0;
    position: fixed;
    width: 100%;
    z-index: 4;
}

.menu-items {
    color: var(--light-neutral);
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.1rem;
    text-align: center;
    text-decoration: none;
    height: 44px;
    width: 84px;
}

.menu-mobile span {
    color: var(--light-neutral);
    position: relative;
}

.hidden {
    display: none;
}

footer {
    background-color: var(--dark-neutral);
    color: var(--light-neutral);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
}

.foot-left {
    line-height: 24px;
}

.copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
}

.logotype {
    padding-top: 5px;
}

.image {
    background-image: url("../media/ourstory.jpg");
    height: 480px;
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;
}

#hero {
    position: relative;
}

#hero h2 {
    position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 3;
}

.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    height: 100%;
    width: 100%;
    padding: 22vh 0;
    position: absolute;
    top: 0;
    z-index: 2;
}

.name {
    display: flex;
    flex-direction: column;
}

.bg-intro {
    background-image: url("../media/hero.jpg");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    filter: brightness(65%);
    height: 100vh;
}

#our-story {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px 24px;
    justify-content: center;
}

h2.var,
h3.var,
h5.var {
    color: var(--dark-neutral);
    text-align: left;
}

#details {
    background-color: var(--main-color);
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-height: 80vh;
    padding: 100px 24px;
}

.date-venue {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.date,
.venue {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

#gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 40px 0;
}

#gallery h2 {
    text-align: center;
}

.gform {
    height: 70vh;
}

#rsvp {
    background: var(--sec-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    padding: 56px 24px;
    color: var(--light-neutral);
    text-align: center;
}

#rsvp a {
    margin: 24px auto 0;
}

.btn-big {
    border: 1px solid var(--light-neutral);
    border-radius: 10px;
    color: var(--light-neutral);
    letter-spacing: 0.1rem;
    padding: 8px 12px;
    text-align: center;
    width: 200px;
    transition: all 500ms ease;
    cursor: pointer;
}

.btn-small {
    border: 1px solid var(--dark-neutral);
    border-radius: 8px;
    color: var(--dark-neutral);
    font-size: 0.875rem;
    letter-spacing: 0.1rem;
    margin-top: 8px;
    padding: 4px 16px;
    text-align: center;
    width: fit-content;
    transition: all 500ms ease;
    cursor: pointer;
}

.btn-big-alt {
    background-color: var(--sec-color);
    border: 1px solid var(--sec-color);
    border-radius: 8px;
    color: var(--light-neutral);
    font-size: 0.875rem;
    letter-spacing: 0.1rem;
    margin-top: 8px;
    padding: 8px 12px;
    text-align: center;
    width: 120px;
    transition: all 500ms ease;
    cursor: pointer;
}

.btn-big:hover {
    background-color: var(--light-neutral);
    border: 1px solid var(--light-neutral);
    color: var(--dark-neutral);
}

.btn-small:hover {
    background-color: var(--dark-neutral);
    color: var(--light-neutral);
}

.btn-big-alt:hover {
    background-color: transparent;
    color: var(--sec-color);
}

.photo-col,
.photo-col-10 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 24px 32px;
}

.photo-col div,
.photo-col-10 div {
    cursor: pointer;
    transition: all 500ms ease
}

.photo-col div:hover,
.photo-col-10 div:hover {
    opacity: 80%;
}

.img-a {
    background-image: url("../media/1.jpg");
    background-position: center;
    background-size: cover;
    grid-area: a;
    background-color: grey;
    width: auto;
    height: 320px;
}

.img-b {
    background-image: url("../media/2.jpg");
    background-position: center;
    background-size: cover;
    grid-area: b;
    background-color: grey;
    width: auto;
    height: 320px;
}

.img-c {
    background-image: url("../media/3.jpg");
    background-position: center;
    background-size: cover;
    grid-area: c;
    background-color: grey;
    width: auto;
    height: 240px;
}

.img-d {
    background-image: url("../media/4.jpg");
    background-position: center;
    background-size: cover;
    grid-area: d;
    background-color: grey;
    width: auto;
    height: 240px;
}

.img-e {
    background-image: url("../media/5.jpg");
    background-position: center;
    background-size: cover;
    grid-area: e;
    background-color: grey;
    width: auto;
    height: 240px;
}

.img-f {
    background-image: url("../media/6.jpeg");
    background-position: center;
    background-size: cover;
    grid-area: f;
    background-color: grey;
    width: auto;
    height: 320px;
}

.img-g {
    background-image: url("../media/7.jpeg");
    background-position: center;
    background-size: cover;
    grid-area: g;
    background-color: grey;
    width: auto;
    height: 320px;
}

.img-h {
    background-image: url("../media/8.jpeg");
    background-position: center;
    background-size: cover;
    grid-area: h;
    background-color: grey;
    width: auto;
    height: 240px;
}

.img-i {
    background-image: url("../media/9.jpeg");
    background-position: center;
    background-size: cover;
    grid-area: i;
    background-color: grey;
    width: auto;
    height: 240px;
}

.img-j {
    background-image: url("../media/10.jpeg");
    background-position: center;
    background-size: cover;
    grid-area: j;
    background-color: grey;
    width: auto;
    height: 240px;
}

.bg-overlay {
    background-color: black;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transition: all 200ms ease;
}

.swiffy-slider {
    display: none;
}

#overlay.shown,
#overlay2.shown {
    opacity: 0.85;
    visibility: visible;
    overflow: hidden;
    z-index: 5;
}

.swiffy-slider.shown {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    opacity: 1;
    overflow: hidden;
    z-index: 6;
}

.swiffy-slider li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiffy-slider img {
    width: 100%;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.material-icons {
    color: var(--light-neutral);
    position: fixed;
    right: 2%;
    top: 2%;
    cursor: pointer;
}

#streaming {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 16px 64px;
}

#streaming iframe {
    padding-top: 16px;
}


/* -------- DIALOG -------- */

.popup {
    background-color: var(--light-neutral);
    border-radius: 10px;
    box-shadow: 0px 4px 24px rgb(2 18 43 / 30%);
    font-size: 1.125rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: auto;
    padding: 24px 24px 20px;
    position: fixed;
    top: -180px;
    left: 0;
    right: 0;
    bottom: 0;
    height: fit-content;
    width: 280px;
    opacity: 0;
    text-align: center;
    transition: all 600ms ease;
    visibility: hidden;
    z-index: 10;
}

.popup.shown {
    opacity: 1;
    top: 0px;
    visibility: visible;
}

#gifts {
    background: var(--main-color);
    display: flex;
    flex-direction: column;
    padding: 40px 16px;
    gap: 32px;
    position: relative;
}

#gifts h2 {
    text-align: center;
}

.gift-info {
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-grow: 1;
    gap: 16px;
}

.bank-acc {
    text-align: center;
}

.bank-no {
    border-bottom: 1px solid;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-align: center;
    width: 50vw;
}

#norek {
    border: none;
    font-family: 'Poppins', sans-serif;
    width: 100px;
}

#norek::selection {
    color: var(--light-neutral);
    background: var(--sec-color);
    opacity: 0.5;
}

.qr {
    background: var(--light-neutral);
    border-radius: 20px;
    display: flex;
    font-size: 0.875rem;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    margin: 0 auto;
    padding: 24px 24px 16px;
}

.qr img {
    width: 200px;
}

#tooltip {
    position: absolute;
    bottom: 320px;
    width: 90vw;
    transition: all 300ms ease;
    visibility: hidden;
}

#tooltip.shown {
    bottom: 300px;
    visibility: visible;
}

.rectangle {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    color: var(--light-neutral);
    font-size: 0.75rem;
    padding: 8px 16px;
    margin: 0 auto;
    width: fit-content;
}

.triangle {
    margin: 0 auto;
    height: 0;
    width: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.5);
}

#copy-snippet {
    cursor: pointer;
}

.backtop {
    display: flex;
    gap: 8px;
    color: var(--light-neutral);
    align-items: center;
    padding-top: 4px;
    margin-left: -5px;
    font-size: 0.625rem;
}


/*------CHANGE THEME------*/

#theme-widget {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px 10px 0 0px;
    box-shadow: rgba(149, 157, 165, 0.5) 0px 8px 24px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    padding: 10px 20px 10px 16px;
    position: fixed;
    bottom: 220px;
    right: -76px;
    rotate: -90deg;
    transition: all 500ms ease;
    z-index: 2;
}

#theme.slide {
    right: 0;
}

#theme-widget.slide {
    right: -142px;
    opacity: 0;
}

#theme {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px 0 0 10px;
    box-shadow: rgba(149, 157, 165, 0.5) 0px 8px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 16px 32px 24px;
    position: fixed;
    bottom: 0;
    right: -280px;
    width: 270px;
    z-index: 10;
    transition: all 500ms ease;
}

.theme-title {
    display: flex;
    gap: 10px;
    align-items: center;
}

#theme .material-icons {
    color: black;
    position: relative;
}

#theme h3 {
    color: black;
}

.color-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.preset {
    background: white;
    border: 1px solid var(--dark-neutral);
    cursor: pointer;
    padding: 8px 16px;
    transition: all 500ms ease;
}

.preset:hover {
    background: var(--main-color);
    border: 1px solid var(--dark-neutral);
}

.preset:active,
.preset:focus,
.pressed {
    background: var(--sec-color);
    border: 1px solid var(--dark-neutral);
    color: rgba(255, 255, 255, 0.75);
}


/*------FULL VER DETAILS------*/

#info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin: 0 auto;
    padding: 40px 16px 56px;
}

.two-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    width: 70vw;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 150px;
    text-align: center;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.avatar {
    background: url("../media/avatar-male.jpg");
    background-position: center;
    background-size: cover;
    border-radius: 50%;
    width: 180px;
    height: 180px;
}

.profile:nth-child(2) .avatar {
    background: url("../media/avatar-female.jpg");
    background-position: center;
    background-size: cover;
}

.caption {
    font-size: 0.75rem;
}

#info h2.var,
#info h3.var,
#info h5.var,
#info .body-1 {
    text-align: center;
}

#info .date-venue {
    gap: 40px;
}

#info .date,
#info .venue {
    align-items: center;
}


/* --- FORM ---*/

form {
    background: var(--light-neutral);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 10vw;
}

button {
    background: transparent;
    border: none;
}

label {
    color: var(--dark-neutral);
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.03rem;
    text-align: left;
    text-transform: uppercase;
}

input {
    background-color: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgb(0, 0, 0, 0.35);
    font-family: 'Antic Didone', serif;
    font-size: 1rem;
    letter-spacing: 0.02rem;
    line-height: 1.2rem;
    outline: none;
    overflow: visible;
    padding: 8px 0;
    transition: all 500ms ease;
    width: 100%;
}

input:focus {
    border-bottom: 1px solid rgb(0, 0, 0, 0.7);
}

input::placeholder {
    color: (rgba(0, 0, 0, 0.3));
    overflow: visible;
}

input:focus::placeholder {
    color: rgba(0, 0, 0, 0.7);
}

#guest-name.required,
#phone-input.required {
    border-bottom: 1px solid #dc0018;
}

#error-name,
#error-phone {
    color: #dc0018;
    font-size: 0.75rem;
    padding-top: 4px;
    text-align: left;
}

#radio {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-opt {
    display: flex;
    align-items: center;
    color: black;
    font-family: 'Antic Didone', serif;
    font-size: 1rem;
    line-height: 1.25rem;
    text-transform: none;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.radio-opt input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.mark {
    border: 1.5px solid var(--sec-color);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
    height: 20px;
    width: 20px;
    transition: 50ms ease;
}

#radio-2.disabled {
    display: none;
}

.radio-opt:hover input~.mark {
    box-shadow: inset 0px 0px 0px 3px var(--light-neutral);
    background: var(--sec-color);
}


/* When the radio button is checked */

.radio-opt input:checked~.mark {
    box-shadow: inset 0px 0px 0px 3px var(--light-neutral);
    background: var(--sec-color);
}


/* Create the indicator (the dot/circle - hidden when not checked) */

.radio-opt:after {
    content: "";
    position: absolute;
    display: none;
}


/* Show the indicator (dot/circle) when checked */

.radio-opt input:checked~.mark:after {
    display: block;
}


/* Style the indicator (dot/circle) */

.radio-opt .mark:after {
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--light-neutral);
}

@media (min-width: 744px) {
    body {
        padding: 0;
    }
    body.scroll {
        padding-bottom: 0px;
    }
    h1 {
        font-size: 4rem;
    }
    h2 {
        font-size: 2rem;
    }
    .body1-alt {
        font-size: 0.875rem;
    }
    #details h2 {
        width: 400px;
    }
    .quote {
        font-size: 1.125rem;
    }
    .monogram {
        margin-bottom: 32px;
        width: 110px;
    }
    .countdown div {
        width: 55vw;
        gap: 4px;
    }
    .countdown p {
        font-size: 2rem;
    }
    #menu-desktop {
        display: flex;
        justify-content: center;
        gap: 24px;
        padding: 8px 0;
        position: fixed;
        transition: all 500ms ease;
        width: 100%;
        z-index: 3;
    }
    .dark-bg {
        background-color: rgba(0, 0, 0, 0.5);
    }
    .menu-items {
        display: block;
        color: var(--light-neutral);
        font-family: 'Poppins', sans-serif;
        font-size: 0.875rem;
        font-weight: 300;
        letter-spacing: 0.2rem;
        text-decoration: none;
        height: auto;
        width: auto;
    }
    .menu-mobile {
        display: none;
    }
    #details {
        align-items: flex-start;
        flex-direction: row;
        gap: 56px;
        justify-content: center;
        min-height: auto;
        padding: 88px 10vw 88px 12vw;
    }
    #our-story {
        display: flex;
        flex-direction: row;
        gap: 56px;
        padding: 96px 10vw 56px;
        margin: 0 auto;
        width: 100vw;
    }
    .description {
        width: 60%;
    }
    .image {
        width: 410px;
        height: 480px;
        background-size: cover;
        background-repeat: no-repeat;
    }
    #gallery {
        padding: 88px 0;
    }
    .photo-col {
        display: grid;
        align-items: center;
        grid-template-areas: "a a b" "c d e";
        grid-auto-rows: minmax(100px, auto);
        gap: 24px;
        margin: 0 auto;
        padding: 32px 0 24px;
        width: 80vw;
    }
    .photo-col-10 {
        display: grid;
        align-items: center;
        grid-template-areas: "a a b" "c d e" "f g g" "h i j";
        grid-auto-rows: minmax(100px, auto);
        gap: 16px;
        margin: 0 auto;
        padding: 32px 0 24px;
        width: 80vw;
    }
    .gform {
        height: 400px;
    }
    form {
        width: 65vw;
        margin: 24px auto;
        padding: 40px;
    }
    footer {
        flex-direction: row;
        height: 56px;
        padding: 16px 10vw;
        justify-content: space-between;
    }
    .copyright {
        flex-direction: row;
        gap: 10px;
    }
    .music {
        width: 40px;
        height: 40px;
        padding: 8px;
        top: unset;
        bottom: 72px;
        right: 32px;
    }
    #info {
        padding: 88px 0;
    }
    #info h5.var {
        font-size: 0.875rem;
    }
    .two-col {
        flex-direction: row;
        justify-content: space-evenly;
    }
    .avatar {
        width: 240px;
        height: 240px;
    }
    #streaming {
        padding: 72px 10vw 56px;
    }
    #gifts {
        flex-direction: row;
        align-items: center;
        padding: 88px 17vw;
    }
    #gifts h2 {
        text-align: left;
    }
    .gift-info {
        align-items: flex-start;
    }
    .bank-acc {
        display: flex;
        flex-direction: column;
        gap: 4px;
        text-align: left;
    }
    .bank-no {
        justify-content: left;
        text-align: left;
        width: auto;
    }
    .qr {
        display: block;
        padding: 16px;
        height: min-content;
    }
    .qr span,
    .qr #norek {
        display: none;
    }
    .qr img {
        width: 200px;
    }
    #tooltip {
        bottom: 68px;
        width: auto;
    }
    #tooltip.shown {
        bottom: 48px;
    }
    .totop {
        display: none;
    }
}