body {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--background-desktop-url);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    user-select: none;
    align-items: center;
    flex-direction: column;
    display: flex;
    background-attachment: fixed;
}

.logo-container img {
    width: 400px;
    margin-top: 5px;
}

.logo-container {
    z-index: 15;
}

.wrapper > div > div {
    height: 205px;
    width: 120px;
    background-color: rgb(255, 4, 4);
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 0;
}

.lid {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top;
    transition: transform 0.25s linear;
}

.lid.one {
    transform: rotateX(0deg);
    z-index: 4;
    transition-delay: 0.75s;
    height: 100%;
}

.lid.two {
    transform: rotateX(90deg);
    z-index: 2;
    transition-delay: 0.5s;
    height: 100%;
}

.lid.one img, .lid.two img {
    width: 120px;
}

.envelope {
    height: 100%;
    width: 120px;
    border-top: 0px solid transparent;
    border-bottom: 205px solid rgb(255, 217, 0);
    box-shadow: 2px 2px 10px #000000;
    z-index: 3;
}

.letter {
    top: 30px;
    width: 80%;
    height: 140px;
    background-image: var(--belakang-letter);
    background-size: cover;
    border-radius: 15px;
    z-index: 2;
    transition: 0.5s;
    border: 3px solid gold;
    box-shadow: 0 0 8px gold;
    animation: shine 1s infinite;
}

@keyframes shine {
    0% { box-shadow: 0 0 8px gold; }
    50% { box-shadow: 0 0 16px gold; }
    100% { box-shadow: 0 0 8px gold; }
}

.letter img {
    width: 60px;
    transform: translateY(-10px);
    height: auto;
    display: block;
}

.letter p {
    font-size: 14px;
    font-weight: bold;
    color: gold;
    text-align: center;
    text-shadow: 1px 1px 2px #000000;
    position: absolute;
    background: red;
    border-radius: 5px;
    padding-left: 3px;
    padding-right: 3px;
    border: 1px solid gold;
}

.letter span {
    font-size: 13px;
    font-weight: 700;
    color: gold;
    text-align: center;
    text-shadow: 1px 1px 2px #000000;
}

.wrapper .lid.one {
    transition-delay: 0s;
    text-align: center;
}

.wrapper .lid.two {
    transition-delay: 0.25s;
    text-align: center;
}

.wrapper .letter {
    transition-delay: 0.5s;
    text-align: center;
}

.background {
    z-index: 3;
}

.background img {
    width: 120px;
}

.mb-6 {
    margin-bottom: 3rem !important;
}

.animated-button1, .animated-button2, .animated-button3 {
    background: linear-gradient(to bottom, #ffd700, #daa520);
    width: 400px;
    margin: 0;
    padding: 10px 10px;
    display: inline-block;
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
    overflow: hidden;
    color: rgb(255, 255, 255);
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    font-family: Convergence, sans-serif;
    position: relative;
}

.animated-button2, .animated-button3 {
    background: linear-gradient(to bottom, #fd020f, #050505);
    color: gold;
    text-shadow: 1px 1px 1px #000000;
}

.animated-button3 {
    margin-left: 5px;
}

.form-control {
    width: 50% !important;
}

.animated-button1 {
    padding: 5px 30px;
    margin-bottom: 2px;
    background: linear-gradient(to bottom, gold, #8d6b13);
    color: white;
    text-shadow: 2px 2px 1px black;
    font-size: 20px;
}

.animated-button1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ad8585;
    opacity: 0;
    -webkit-transition: .2s opacity ease-in-out;
    transition: .2s opacity ease-in-out;
}

.animated-button1:hover::before {
    opacity: .2;
}

.animated-button1 span {
    position: absolute;
}

.animated-button1 span:nth-child(1) {
    top: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: -webkit-gradient(linear, right top, left, top, from(rgba(43, 8, 8, 0)), to(#0f0));
    background: linear-gradient(to left, rgba(43, 8, 8, 0), yellow);
    -webkit-animation: 2s animateTop linear infinite;
    animation: 2s animateTop linear infinite;
}

@keyframes animateTop {
    0% {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }

    100% {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}

.animated-button1 span:nth-child(2) {
    top: 0;
    right: 0;
    height: 100%;
    width: 3px;
    background: -webkit-gradient(linear, left bottom, left top, from(rgba(43, 8, 8, 0)), to(rgb(32, 184, 32)));
    background: linear-gradient(to top, rgba(43, 8, 8, 0), yellow);
    -webkit-animation: 2s animateRight linear -1s infinite;
    animation: 2s animateRight linear -1s infinite;
}

@keyframes animateRight {
    0% {
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }

    100% {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
    }
}

.animated-button1 span:nth-child(3) {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: -webkit-gradient(linear, left top, right top, from(rgba(43, 8, 8, 0)), to(#0f0));
    background: linear-gradient(to right, rgba(43, 8, 8, 0), yellow);
    -webkit-animation: 2s animateBottom linear infinite;
    animation: 2s animateBottom linear infinite;
}

@keyframes animateBottom {
    0% {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }

    100% {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }
}

.animated-button1 span:nth-child(4) {
    top: 0;
    left: 0;
    height: 100%;
    width: 3px;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(43, 8, 8, 0)), to(#0f0));
    background: linear-gradient(to bottom, rgba(43, 8, 8, 0), yellow);
    -webkit-animation: 2s animateLeft linear -1s infinite;
    animation: 2s animateLeft linear -1s infinite;
}

@keyframes animateLeft {
    0% {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
    }

    100% {
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }
}

.voucher-text {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.item.active {
    transform: scale(1.5);
    transition: transform 0.5s ease-in-out;
    z-index: 10;
}

.item.dim {
    opacity: 0.5;
    filter: blur(2px);
}

@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        -webkit-transform: scale(1.05);
        -moz-transform: scale(1.05);
        -ms-transform: scale(1.05);
        -o-transform: scale(1.05);
    }
}

.item:not(.item.active):not(.item.dim) {
    animation: zoomInOut 3s infinite ease-in-out;
}

#winner-info, #zonk-info {
    display: none;
    z-index: 15;
    color: white;
    font-size: 23px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.699);
    background: rgb(0 0 0 / 10%);
    top: 180px;
    margin-bottom: 0.75rem;
}

#claimButton, #backButton, #redeem-section {
    display: none;
}

.audio {
    top: 10px;
    left: 10px;
    z-index: 20;
}

#audio-control {
    cursor: pointer;
    width: 32px;
    height: auto;
}

.social-icons {
    padding: 35px 0 0;
}

.img-bordered {
    border: 2px solid #000;
    border-radius: 8px;
    padding: 5px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: start;
    color: #f4f4f4;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    font-family: cursive;
    text-shadow: 0px 3px black;
}

.social-icons img {
    width: 45px;
    height: auto;
    margin-right: 15px;
}

.sosmed {
    box-shadow: 4px 4px 4px rgb(195 195 195);
    border-radius: 10px 10px 10px 10px;
}

.sosmed a:hover{
    color: gold;
}

.facebook{
    background-color: #20499f;
}

.telegram{
    background-color: #0282b9;
}

.instagram{
    background-color: #e30246;
}

.twitter{
    background-color: #1b84ff;
}

.marquee {
    width: 50% !important;
}

.marquee-text {
    display: inline-block;
    color: white;
    font-size: 20px;
    text-shadow: 2px 2px 1px rgb(0, 0, 0);
    border-radius: 25px;
    padding: 5px;
    margin-top: 5px;
    box-shadow: 4px 4px 10px rgba(209, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.3);
}

.confetti {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 16px;
    background-image: var(--background-angpao);
    background-size: cover;
    top: 0;
    opacity: 0;
}

.confetti-piece:nth-child(1) {
    left: 7%;
    transform: rotate(-79deg);
    animation: makeItRain 5000ms infinite ease-out;
    animation-delay: 1s;
    animation-duration: 2s;
}

.confetti-piece:nth-child(2) {
    left: 14%;
    transform: rotate(-42deg);
    animation: makeItRain 5000ms infinite ease-out;
    animation-delay: 2s;
    animation-duration: 2.5s;
}

.confetti-piece:nth-child(3) {
    left: 21%;
    transform: rotate(-25deg);
    animation: makeItRain 5000ms infinite ease-out;
    animation-delay: 3s;
    animation-duration: 3.5s;
}

.confetti-piece:nth-child(4) {
    left: 28%;
    transform: rotate(-10deg);
    animation: makeItRain 5000ms infinite ease-out;
    animation-delay: 4s;
    animation-duration: 3.5s;
}

.confetti-piece:nth-child(5) {
    left: 35%;
    transform: rotate(24deg);
    animation: makeItRain 5000ms infinite ease-out;
    animation-delay: 5s;
    animation-duration: 3.5s;
}

.confetti-piece:nth-child(6) {
    left: 42%;
    transform: rotate(-9deg);
    animation: makeItRain 5000ms infinite ease-out;
    animation-delay: 1s;
    animation-duration: 2s;
}

.confetti-piece:nth-child(7) {
    left: 49%;
    transform: rotate(-28deg);
    animation: makeItRain 5000ms infinite ease-out;
    animation-delay: 2s;
    animation-duration: 2.5s;
}

.confetti-piece:nth-child(8) {
    left: 56%;
    transform: rotate(-49deg);
    animation: makeItRain 5000ms infinite ease-out;
    animation-delay: 3s;
    animation-duration: 3.5s;
}

.confetti-piece:nth-child(9) {
    left: 63%;
    transform: rotate(-11deg);
    animation: makeItRain 5000ms infinite ease-out;
    animation-delay: 4s;
    animation-duration: 3s;
}

.confetti-piece:nth-child(10) {
    left: 70%;
    transform: rotate(63deg);
    animation: makeItRain 5000ms infinite ease-out;
    animation-delay: 5s;
    animation-duration: 3.5s;
}

.confetti-piece:nth-child(11) {
    left: 77%;
    transform: rotate(27deg);
    animation: makeItRain 5000ms infinite ease-out;
    animation-delay: 1s;
    animation-duration: 2s;
}

.confetti-piece:nth-child(12) {
    left: 84%;
    transform: rotate(24deg);
    animation: makeItRain 5000ms infinite ease-out;
    animation-delay: 2s;
    animation-duration: 2.5s;
}

.confetti-piece:nth-child(13) {
    left: 91%;
    transform: rotate(54deg);
    animation: makeItRain 5000ms infinite ease-out;
    animation-delay: 3s;
    animation-duration: 3s;
}

.confetti-piece:nth-child(odd) {
    background-image: var(--background-angpao);
    background-size: cover;
}

.confetti-piece:nth-child(even) {
    z-index: 999;
}

.confetti-piece:nth-child(4n) {
    width: 5px;
    height: 12px;
    animation-duration: 5000ms;
}

.confetti-piece:nth-child(3n) {
    width: 3px;
    height: 10px;
    animation-duration: 5000ms;
    animation-delay: 2000ms;
}

.confetti-piece:nth-child(4n-7) {
    background-image: var(--background-angpao);
    background-size: cover;
}

@keyframes makeItRain {
    from {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    to {
        transform: translateY(300px);
    }
}

@media (max-width: 768px) {

    body {
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--background-mobile-url);
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    .logo-container img {
        width: 65%;
    }

    .letter {
        top: 35px;
        height: 125px;
    }

    .letter p {
        font-size: 11px;
    }

    .letter span {
        font-size: 10px;
    }

    .wrapper > div > div {
        height: 170px;
        width: 100px;
    }

    .lid.one img, .lid.two img {
        width: 100px;
    }

    .envelope {
        height: 0px;
        width: 100px;
        border-bottom: 170px solid rgb(255, 217, 0);
    }

    .background img {
        width: 100px;
    }

    #winner-info, #zonk-info {
        color: white;
        top: 148px;
        font-size: 15px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.699);
        background: rgb(0 0 0 / 10%);
        margin-top: 0px !important;
    }

    #zonk-info {
        top: 180px;
    }

    #claimButton, #backButton, #redeem-section {
        display: none;
    }

    .marquee {
        width: 100% !important;
    }

    .marquee-text {
        font-size: 15px;
    }

    .social-icons {
        width: 100% !important;
        padding: 5px 35px 0px;
    }

    .social-icons img {
        width: 25px;
        height: auto;
        margin-right: 10px;
    }

    .sosmed {
        box-shadow: 2px 2px 4px rgb(195 195 195);
        border-radius: 5px 5px 5px 5px;
    }

    .social-icons a {
        font-size: 13px;
        width: 100% !important;
    }

    .animated-button3 {
        margin-left: 15px;
        width: 160px;
    }

    .form-control {
        font-size: 14px !important;
    }

}

@media (max-width: 400px) {

    .lid.one img, .lid.two img {
        width: 85px;
    }

    .background img {
        width: 85px;
    }

    .envelope {
        width: 85px;
        border-bottom: 145px solid rgb(255, 217, 0);
    }

    .wrapper > div > div {
        height: 145px;
        width: 85px;
    }

    .letter {
        top: 30px;
        height: 110px;
    }

    .letter img {
        width: 50px;
    }

    .letter span, .letter p {
        font-size: 9px;
    }

    .animated-button1 {
        font-size: 14px;
        width: 330px;
    }

    .animated-button2 {
        width: 330px !important;
        padding: 5px;
        margin: 0;
        margin-left: 0;
    }

    .animated-button3 {
        margin-left: 3px;
        width: 160px;
        font-size: 10px;
    }

    .form-control {
        font-size: 12px !important;
    }

    .social-icons img {
        width: 20px;
    }

    .mx-2 {
        margin-right: .1rem !important;
        margin-left: .1rem !important;
    }

    #winner-info, #zonk-info {
        top: 120px;
        font-size: 14px;
        position: absolute;
    }

    .mb-6 {
        margin-bottom: 0.2rem !important;
    }

    .marquee-text {
        font-size: 14px;
        padding: 2px;
    }
}

@media (max-width: 360px) {
    #winner-info, #zonk-info {
        top: 105px;
        font-size: 13px;
    }
}
