@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Pacifico&family=Playpen+Sans:wght@100..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Pacifico&family=Playpen+Sans:wght@100..800&family=Poiret+One&display=swap');


@font-face {
  font-family: 'Annabelle Cyr';
  src: url('Annabelle Cyr.ttf');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Improves loading performance */
}

/* GENERAL*/ 
    html {
        scroll-behavior: smooth;
        height: 100%;
        overflow: hidden; /* Prevent double scrollbars */
    }

    body {
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height */
        height: -webkit-fill-available; /* Safari fallback */
        overflow: auto;
        overscroll-behavior-y: none; /* Prevent pull-to-refresh */
        background: #dfd6cb;
    }

    * {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        /* font-family: "Pacifico", cursive;
        font-family: "Playpen Sans", cursive; */
        font-family: "Poiret One", cursive;
        letter-spacing: 1px;
    }

/* SCROLLING */
    .scroll_container {
        overflow-y: auto;
        /* scroll-snap-type: y mandatory; */
        height: 100dvh;
    }
    .scroll_item {
        flex: none;
        scroll-snap-align: center;
        height: 100dvh;
        padding: 30px 20px;
    }

/* FIRST ITEM */
    .scroll_item.one {
        display: grid;
        justify-items: center;
        text-align: center;
        grid-gap: 5px;

        grid-template-rows: 1fr auto auto 50px;
        
        background-image: url("us3.jpg");
        background-repeat: no-repeat;
        background-position: right;
        background-size: cover;
    }
    .scroll_item.one img { 
        width: 150px;
    }
    .darr {
        color: white;
        font-size: 30px;
    }
    .date {
        color: white;
        font-size: 23px;
    }
    .names {
        display: grid;
        grid-auto-flow: column;
    }
    .names * {
        font-size: 30px;
        font-family: 'Annabelle Cyr';
        color: white;
    }
    .names .fadeBigLetter {
        font-size: 60px;
    }
    .names .elizaveta {
        margin-top: 20px;
        animation: fadeIn linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 100%;
    }

/* SECOND ITEM - background-color: rgba(0, 0, 0, 0.5);*/
    .scroll_item.two {
        display: grid;
        align-content: space-between;
        justify-items: center;
        height: auto;
        grid-gap: 30px;
        /* padding: 0; */
        /* padding-top: 20px; */
    }
    .scroll_item.two p {
        font-size: 20px;
        text-align: center;
        height: auto;
        /* padding: 0 20px; */
    }
    .scroll_item p.bold {
        font-size: 35px;
        font-weight: bold;
        text-align: center;
    }

    .scroll_item.three {
        display: grid;
        grid-gap: 30px;
        height: auto;
        align-content: flex-start;
    }
    .timetable {
        display: grid;
        grid-gap: 30px;
        font-size: 20px;
    }
    .timetable .text {
        padding-left: 20px;
    }
    .photo_cont {
        width: 300px;
        height: 180px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
        border-radius: 10px;
        display: grid;
        justify-items: center;
        background: #a08276;
        color: white;
        text-decoration: none;
    }
    .photo_cont .link-icon {
        fill: white;
        transform: scale(1.5);
    }
    .photo {
        width: 300px;
        height: 150px;
        border-radius: 10px;
        background-repeat: no-repeat;
        background-position: right;
        background-size: cover;
    }
    .zags_photo {
        background-image: url("zags.jpg");
    }
    .rest_photo {
        background-image: url("rest.png");
    }
    .rest {
        display: grid;
        justify-content: end;
        grid-gap: 15px;
    }
    .zags {
        display: grid;
        grid-gap: 15px;
    }



    .scroll_item.four {
        display: grid;
        height: auto;
        /* align-content: center; */
    }
    div.checkbox {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-gap: 10px;
        grid-template-areas: "a a"
                             "a a"
                             "a a"
                             "a a"
                             "a a"
                             "b b";
    }
    input[type="checkbox"] {
        appearance: none;
        border: 1px solid black;
        width: 20px;
        height: 20px;
    }
    input[type="checkbox"]:checked {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
        background-size: 140%;
        background-position: center;
    }
    input[type="checkbox"]:disabled {
        background: none;
    }
    input[type="text"] {
        display: block;
        appearance: none;
        border: 1px solid rgba(0, 0, 0, 0.5);
        padding: 7px;
        background: none;
        border-radius: 5px;
        font-size: 16px;
        width: 100%;
    }
    button[type="submit"] {
        background: #a08276;
        color: white;
        display: block;
        width: 100%;
        border: 0;
        padding: 15px;
        border-radius: 5px;
        margin-top: 20px;
        font-size: 20px;
    }
    legend, .legend {
        font-size: 20px;
        font-weight: bold;
        padding: 20px 0 10px 0;
        display: block;
    }


    .five {
        justify-items: center;
        display: grid;
        align-content: space-evenly;
        grid-template-rows: 1fr auto auto auto 1fr;
        grid-gap: 50px;
        color: black;
    }
    .countdown {
        display: grid;
        grid-template-columns: 60px 1px 60px 1px 60px 1px 60px;
        grid-gap: 5px;
        text-align: center;
        font-size: 30px;
    }
    .countdown .name {
        font-size: 16px;
    }
    .countdown .line {
        border: 1px solid black;
    }
    .five .us {
        background-image: url(us4.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        width: 335px;
        height: 375px;
        margin-top: -35px;
    }

    .six {
        justify-items: center;
        display: grid;
        align-content: space-between;
        height: auto;
        background: #a08276;
        padding: 20px 0;
        border-radius: 20px;
        color: white;
    }

    .six p.text {
        font-size: 20px;
        text-align: center;
        padding: 20px 10px;
    }

    .six .big_color_container {
        display: grid;
        grid-template-columns: auto auto;
        grid-gap: 15px;
    }

    .six .color_container {
        display: grid;
        align-content: space-between;
        font-size: 20px;
    }

    .six .colors {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-gap: 10px;
        height: 50px;
        width: 200px;
    }
    .six .colors div {
        border-radius: 10px;
    }