:root {
    /* Bảng màu chủ đạo */
    --bg-beige: #FCFAFA;      /* Màu Be sáng cho nền */
    --deep-red: #800000;      /* Màu Đỏ thẫm (Maroon) cho điểm nhấn */
    --gold-accent: #FAF3E0;   /* Màu Vàng Gold nhẹ cho viền/chi tiết nhỏ */
    --text-dark: #2D2D2D;     /* Màu chữ chính */
    --white-soft: #FCFAFA;    /* Trắng sữa cho các card nội dung */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-beige);
    color: var(--text-dark);
}

/* Hero Section: Hiệu ứng chuyển màu đỏ mờ đè lên ảnh */
.hero1 {
    height: 50vh;
    background: linear-gradient(var(--deep-red),var(--deep-red)), 
                url('link-anh-cuoi.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-soft);
    /* margin-top: -10%; */
}
.date {
    font-family: 'Arial', sans-serif; /* Hoặc font Montserrat nếu bạn có nhúng */
    font-size: 1.2rem;
    font-weight: 300;           /* Nét chữ mảnh */
    letter-spacing: 4px;        /* Giãn cách chữ rộng ra cho sang */
    color: #ffffff;                /* Màu xám nhẹ hoặc màu vàng đồng #d4b068 */
    margin-top: 20px;
    text-transform: uppercase;  /* Viết hoa toàn bộ */
    display: flex;
    align-items: center;
    justify-content: center;
}
.couple-name {
    font-family: 'Dancing Script', cursive;
    font-size: 3.8rem;
    color: var(--white-soft); /* Chữ trắng trên nền đỏ mờ */
    margin: 15px 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

/* Countdown Section */
.countdown-section {
    padding: 80px 20px;
    background-color: var(--bg-beige);
    text-align: center;
    margin-top: -80px;
}

.countdown-section h3 {
    color: var(--deep-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.time-box {
    background-color: var(--deep-red); /* Nền đỏ thẫm cho ô đếm ngược */
    color: var(--bg-beige);
    padding: 20px 10px;
    border-radius: 4px;
    min-width: 75px;
    border: 1px solid var(--gold-accent); /* Viền vàng gold sang trọng */
}

/* Info Cards */
.info-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
}

.info-card {
    background: var(--white-soft);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.1);
    border-top: 5px solid var(--deep-red); /* Thanh màu đỏ trên đầu card */
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.info-card h3 {
    color: var(--deep-red);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.btn-map {
    background-color: var(--deep-red);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-map:hover {
    background-color: #5a0000; /* Đỏ tối hơn khi hover */
    transform: translateY(-2px);
}
/* Tối ưu chung cho Mobile */
body {
    -webkit-tap-highlight-color: transparent; /* Xóa highlight khi chạm trên iOS */
    overflow-x: hidden;
}

/* Section chung cho mobile */
.mobile-section {
    padding: 40px 15px;
    background-color: var(--bg-beige);
}

.card-mobile {
    background: var(--white-soft);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3); /* Viền vàng gold rất nhạt */
}

.title-script {
    font-family: 'Dancing Script', cursive;
    color: var(--deep-red);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.divider {
    width: 50px;
    height: 2px;
    background: var(--gold-accent);
    margin: 15px auto;
}

/* Form cho mobile: Dễ bấm bằng ngón cái */
.mobile-form {
    margin-top: 25px;
}

.input-group {
    margin-bottom: 15px;
}

.mobile-form input, 
.mobile-form select {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 16px; /* Quan trọng: Tránh auto-zoom trên iPhone */
    font-family: 'Quicksand', sans-serif;
    outline: none;
    background-color: #fff;
}

.mobile-form input:focus {
    border-color: var(--deep-red);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--deep-red);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.2);
}

/* Điều chỉnh Countdown cho màn hình dọc */
@media (max-width: 480px) {
    #countdown {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Chia 2 cột thay vì 4 cột ngang */
        gap: 10px;
    }
    
    .time-box {
        padding: 15px 5px;
    }

    .couple-name {
        font-size: 2.5rem; /* Thu nhỏ tên để không bị tràn dòng */
        padding: 0 10px;
    }
}
/* Container & Background */
.family-info {
    background-color: #fff;
    padding-bottom: 10px;
    position: relative;
    text-align: center;
}

/* Hiệu ứng đường cong bo tròn phía trên */
/* .arc-divider {
    width: 100%;
    height: 100px;
    background-color: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    margin-top: -100px; 
    position: relative;
    z-index: 2;
} */

.couple-names-script {
    font-family: 'Dancing Script', cursive;
    color: var(--deep-red);
    font-size: 2.2rem;
    margin: 20px 0;
}

/* Thư mời tiệc cưới */
.invitation-text {
    margin: 30px 0;
}

.invite-label {
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 10px;
}

.date-highlight {
    display: inline-block;
}

.big-date {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 5px 0;
}

.line-deco {
    width: 100%;
    height: 1px;
    background: #000;
    margin: 5px 0;
}

/* Grid chia đôi Nhà trai - Nhà gái */
.family-grid {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    gap: 20px;
}

.family-side {
    flex: 1;
}

.side-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.parents-name {
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.address {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
}

/* Xử lý ảnh chân dung */
.portrait-wrapper {
    width: 100%;
    aspect-ratio: 2/3; /* Tạo khung dọc giống ảnh mẫu */
    overflow: hidden;
    border-radius: 4px; /* Bo góc nhẹ */
}

.portrait-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo ảnh không bị méo */
    transition: transform 0.5s;
}

/* Hiệu ứng zoom nhẹ khi di chuyển chuột (desktop) */
.portrait-wrapper:hover img {
    transform: scale(1.05);
}

/* Responsive cho Mobile nhỏ */
@media (max-width: 480px) {
    .family-grid {
        flex-direction: column; /* Chuyển thành 1 cột trên điện thoại nhỏ */
        gap: 40px;
    }
    
    .couple-names-script {
        font-size: 1.8rem;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&family=Great+Vibes&display=swap');

body {
    margin: 0;
}

/* FULL màn hình */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.hero2 {
    /* position: relative; */
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Ảnh full */
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* cực quan trọng */
}
.hero2 img {
    width: 100%;
    height: 100%;
    bottom: -20px;
    position: relative;
}
/* overlay đè lên ảnh */
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

/* nền cong */
.curve {
    position: relative;
    z-index: 1; /* nằm dưới */
}
@keyframes flicker {
    0%, 100% {
        opacity: 1; /* Chữ hiện rõ hoàn toàn ở đầu và cuối chu kỳ */
    }
    50% {
        opacity: 0.2; /* Chữ mờ đi ở giữa chu kỳ */
    }
}
@keyframes gold-twinkle {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 5px #f3ada4, 0 0 10px #b31105; /* Bóng sáng */
    }
    50% {
        opacity: 0.5;
        text-shadow: 0 0 2px #a3210a; /* Bóng tối hơn */
    }
}
/* chữ */
.title {
    position: absolute;
    bottom: -10px;
    width: 100%;
    text-align: center;

    z-index: 2; /* nằm trên */

    font-family: 'Playfair Display', serif;
    font-size: 50px;
    color: var(--bg-beige);
    letter-spacing: 6px;
    animation: gold-twinkle 1.5s ease infinite;
}

/* Thư mời tiệc cưới */
/* Tiêu đề thư mời ở giữa */
.invitation-header {
    text-align: center;
    margin-bottom: 30px;
}

.invite-label {
    font-size: 1.1rem;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--text-dark);
}

.line-center {
    width: 60px;
    height: 2px;
    background: var(--gold-accent);
    margin: 10px auto;
}

/* Khối thời gian tiệc riêng biệt */
.event-time-box {
    background-color: rgba(128, 0, 0, 0.05); /* Nền đỏ nhạt nhẹ */
    padding: 15px 5px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--deep-red);
}

.event-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--deep-red);
    margin-bottom: 5px;
}

.event-date {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

/* Grid layout */
.family-grid {
    display: flex;
    gap: 20px;
    padding: 0 10px;
}

.family-side {
    flex: 1;
    text-align: center;
}

.side-title {
    font-size: 1.1rem;
    margin: 15px 0 10px;
    color: #000;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.parents-name {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
    font-weight: 500;
}

.address {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 15px;
    min-height: 40px; /* Giữ cho các cột bằng nhau nếu địa chỉ dài */
}

/* Responsive cho Mobile */
@media (max-width: 480px) {
    .family-grid {
        flex-direction: column; /* Chuyển thành 1 cột dọc trên Mobile */
        gap: 50px;
    }
    .family-side {
      width: 100%; /* Mỗi nhà chiếm toàn bộ chiều rộng */
      margin-bottom: 20px; /* Thêm khoảng cách dọc */
    }
    .event-time-box {
        margin: 0 20px 20px;
    }
}

/* event box time */
/* Box chứa thông tin */
.event-time-box {
    border: 1px solid #800000; /* Màu đỏ thẫm */
    padding: 20px 15px;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 20px;
}

/* Group 2 nút nằm ngang */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-action {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border: none;
    display: inline-block;
    cursor: pointer;
}

.btn-maps {
    background: #fff;
    color: #800000;
    border: 1px solid #800000;
}

.btn-qr {
    background: #800000;
    color: #fff;
}

/* CSS cho Popup (Modal) */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    width: 85%;
    max-width: 320px;
    text-align: center;
    position: relative;
}

#modal-img {
    width: 100%;
    border-radius: 10px;
    margin: 10px 0;
}

.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    cursor: pointer;
}
/* ĐỊNH KIỂU CHO CHỮ LOVE UỐN LƯỢN */
.love-text {
    /* Font uốn lượn ngoằn nghèo */
    font-family: 'MyGreatVibes', cursive;
    
    /* Kích thước và màu sắc */
    font-size: 50px;
    color: var(--deep-red); 
    display: inline-flex; /* Để căn giữa icon trái tim dễ dàng */
    /* Khoảng cách */
    gap: 20px;
    margin-top: 10px; /* Kéo ảnh lên gần chữ hơn một chút cho nghệ thuật */
    
    /* Hiệu ứng nhấp nháy nhẹ (nếu bạn vẫn muốn dùng) */
    animation: simple-flicker 3s ease-in-out infinite;
}

/* Hỗ trợ hiển thị trên điện thoại (Responsive) */
@media (max-width: 600px) {
    .love-text {
        font-size: 40px;
        margin-bottom: 0px;
    }
}
@font-face {
    font-family: 'MyGreatVibes'; /* Bạn đặt tên gì cũng được */
    src: url('fonts/GreatVibes-Regular.ttf') format('truetype'); /* Kiểm tra kỹ đường dẫn đến file ttf */
    font-weight: normal;
    font-style: normal;
}
.calendar-section {
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
}

.calendar-container {
    max-width: 350px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
}

.calendar-month {
    font-size: 1.5rem;
    color: #800000;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th {
    color: #999;
    font-weight: normal;
    padding: 10px 0;
    font-size: 0.8rem;
}

.calendar-table td {
    padding: 12px 0;
    font-size: 1rem;
    color: #333;
    position: relative;
    cursor: default;
}

/* Hiệu ứng khoanh tròn ngày cưới */
.wedding-day {
    color: #fff !important;
    font-weight: bold;
    z-index: 1;
}

.wedding-day::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    background-color: #800000; /* Màu đỏ rượu hoặc đổi thành #d4b068 nếu muốn màu vàng */
    border-radius: 50%;
    z-index: -1;
    /* Hiệu ứng nhấp nháy nhẹ cho vòng tròn (tùy chọn) */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); }
}
/* Container chính: Xóa padding thừa để full viền mobile */
.photo-layout {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0; /* Chỉ để một chút trên dưới, 2 bên để 0 */
}

.layout-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Tỷ lệ 2:1 */
    gap: 8px; /* Khoảng cách giữa các ảnh nhỏ lại cho tinh tế */
}

/* Ép ảnh to và cột ảnh nhỏ phải cùng chiều cao */
.photo-big, .photo-small-group {
    display: flex;
    flex-direction: column;
}

.photo-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Aspect ratio giúp duy trì tỷ lệ nếu bạn không muốn set cứng height */
    aspect-ratio: 4 / 5; 
}

.photo-small-group {
    gap: 8px; /* Phải khớp với gap của layout-container */
}

.photo-small {
    flex: 1; /* Tự động chia đôi chiều cao để khớp với ảnh to */
    overflow: hidden;
}

.photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- ĐOẠN QUAN TRỌNG: FULL VIỀN CHO MOBILE --- */
@media (max-width: 768px) {
    .photo-layout {
        padding: 0; /* Xóa sạch khoảng trắng 2 bên */
    }
    
    .layout-container {
        gap: 4px; /* Thu nhỏ khe hở giữa các ảnh trên mobile */
    }
    
    .photo-big img, .photo-small img {
        border-radius: 0; /* Xóa bo góc để ảnh chạm sát mép màn hình */
    }
}
/* Trạng thái ban đầu: Ẩn và nằm dưới */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease-out; /* Tốc độ hiện ra */
}

/* Trạng thái khi đã scroll tới: Hiện lên và về vị trí cũ */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Chia khung Grid (như mẫu bạn muốn) */
.layout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    padding: 20px;
}

.photo-small-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.photo-big img, .photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
/* Lớp nền mờ */
.lightbox {
    display: none; /* Mặc định ẩn */
    position: fixed;
    z-index: 9999; /* Luôn nằm trên cùng */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Nền đen mờ 90% */
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

/* Ảnh phóng to */
.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

/* Hiệu ứng khi hiện ra */
.lightbox.active .lightbox-content {
    transform: scale(1);
}

/* Nút đóng */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.poem-container {
    max-width: 600px;
    margin: 0 auto;
}
.wedding-poem {
    /* Giảm padding trên và dưới xuống (ví dụ từ 60px xuống 20px) */
    padding: 20px 0; 
    text-align: center;
    background-color: #fff;
    margin-top: -90px;
    margin-bottom: -20px;
}

.poem-container p {
    font-family: 'Arial', cursive;
    font-size: 1.6rem;
    color: #800000;
    /* Quan trọng: Giảm margin giữa các dòng thơ */
    margin: 5px 0; 
    line-height: 1.4; /* Thu hẹp khoảng cách dòng */
}

/* Tùy chỉnh cho mobile để chữ không quá to */
@media (max-width: 768px) {
    .poem-container p {
        font-size: 1.3rem;
    }
    .wedding-poem {
        padding: 40px 15px;
    }
}
/* --- BỐ CỤC ALBUM (1 to 2 nhỏ) --- */
.album-section {
    padding: 40px 20px;
    background-color: #fbf9f6; /* Màu nền nhẹ nhàng, bạn có thể đổi */
    text-align: center;
}


/* Cột ảnh to chiếm 2 phần */
.img-large {
    flex: 2; 
}
.img-large img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Giúp ảnh không bị méo */
    border-radius: 10px; /* Bo góc mềm mại */
}

/* Cột 2 ảnh nhỏ chiếm 1 phần */
.img-small-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.img-small-group img {
    width: 100%;
    height: calc(50% - 5px); /* Chia đôi chiều cao, trừ đi khoảng cách gap */
    object-fit: cover;
    border-radius: 10px;
}
/* --- CSS CHO CÁC BỐ CỤC ALBUM MỚI --- */

/* Class tiện ích để tạo khoảng cách giữa các hàng */
.margin-bottom-10 {
    margin-bottom: 10px;
}

/* BỐ CỤC 2 ẢNH: Sử dụng flexbox để chia đôi */
.layout-two-images {
    display: flex;
    gap: 10px; /* Khoảng cách giữa 2 ảnh */
    max-width: 600px; /* Cùng độ rộng với bố cục 1-2 */
    margin-left: auto;
    margin-right: auto;
}

.layout-two-images img {
    width: calc(50% - 5px); /* Chia đôi, trừ đi một nửa khoảng cách gap */
    height: auto;
    object-fit: cover; /* Giúp ảnh không bị méo */
    border-radius: 10px; /* Bo góc thống nhất */
    /* Thêm các thuộc tính này nếu bạn có hiệu ứng lightbox phóng to */
    cursor: zoom-in; 
    transition: transform 0.3s ease;
}

/* BỐ CỤC 1 ẢNH: Full chiều rộng */
.layout-one-image {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.layout-one-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    /* Thêm các thuộc tính này nếu bạn có hiệu ứng lightbox phóng to */
    cursor: zoom-in;
}

/* Hiệu ứng hover nhẹ khi rà chuột vào ảnh (tùy chọn) */
.layout-two-images img:hover,
.layout-one-image img:hover {
    transform: scale(1.02); /* Phóng to nhẹ 2% */
}
/* Khóa cuộn trang ban đầu (Sẽ được JS mở khóa sau khi bấm Mở thiệp) */
body.locked {
    overflow: hidden;
}

/* --- MÀN HÌNH BÌA THIỆP --- */
.invitation-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fbf9f6; /* Màu nền của bìa thiệp */
    z-index: 99999; /* Đảm bảo nằm trên cùng che mọi thứ */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 1s ease, visibility 1s ease; /* Hiệu ứng mờ dần */
}

/* Class để ẩn màn hình bìa */
.invitation-cover.hidden {
    opacity: 0;
    visibility: hidden;
}

/* --- NÚT BẬT/TẮT NHẠC --- */
/* music control */
.music-control{position:fixed;right:20px;bottom:20px;background:var(--pink-light);border-radius:50px;padding:10px 16px;border:2px solid rgba(217,136,165,0.3);box-shadow:0 6px 14px var(--shadow);display:flex;align-items:center;gap:8px}
.music-control button{background:transparent;border:none;font-size:18px;cursor:pointer}

/* Khi nhạc tạm dừng thì ngừng xoay */
.music-control.paused {
    animation-play-state: paused;
    background-color: #ccc; /* Đổi màu xám để biết là đang tắt */
}

@keyframes spinMusic {
    100% { transform: rotate(360deg); }
}
#petal-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 999;
}

.petal {
    position: absolute;
    top: -50px;
    width: 30px;
    opacity: 0.9;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translate(0,-50px) rotate(0deg);
    }

    25% {
        transform: translate(40px,25vh) rotate(90deg);
    }

    50% {
        transform: translate(-40px,50vh) rotate(180deg);
    }

    75% {
        transform: translate(30px,75vh) rotate(270deg);
    }

    100% {
        transform: translate(-20px,110vh) rotate(360deg);
    }
}