.main-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: white !important;
    z-index: 5 !important;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.main-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(92, 79, 79, 0.4);
    z-index: 1;
    pointer-events: none;
}

h3 {
    position: relative;
    text-align: center;
    color: var(--bg-b);
    font-weight: bold;
    font-style: italic;
    font-size: 1.5em;
    z-index: 2;
    color: white;
    margin-top: 60px !important;
}

.cups {
    position: relative;
    width: 200px;
    height: 120px;
    margin: 0 auto;
    margin-bottom: 80px;
    margin-top: 40px;
}

.cup {
    position: absolute;
    top: 25px;
    width: 60px;
    height: 120px;
    transform: translateX(-50%);
    transform-origin: center -100%;
    cursor: pointer;
}

.cups_gift {
    position: relative;
    width: 100px;
    height: 120px;
    margin: 0 auto;
    margin-bottom: 80px;
    margin-top: 40px;
}

.cup_gift {
    width: 60px;
    height: 120px;

}

.tin_gift {
    position: absolute;
    top: 0%;
    left: 20%;
    width: 140%;
    height: 100%;
    perspective: 400px;
    perspective-origin: center -200%;
}

.tin_gift::before {
    content: "";
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    transform: rotateX(48.5deg);
    background-image: var(--side-tin, linear-gradient(to left, #ffffff, #f8f5ed, #f5e4f4, #b1b1b1, #dfdfdf));
    transform-origin: top;
    border-radius: 0 0 50% 50%/0 0 20px 20px;
}
  
.tin_gift::after {
    content: "";
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(0deg);
    width: 100%;
    height: 15%;
    border-radius: 50%;
    background-image: radial-gradient(var(--base-tin-color, white), var(--base-tin-color, white));
    border: 1px solid rgba(0, 0, 0, 0.5);
    z-index: 2;
}


.ball_gift {
    position: absolute;
    top: 120px;
    left: 45%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-image: radial-gradient(circle at 60% 20%, rgb(255, 0, 0), rgb(173, 26, 26));
}

.logo-overlay_gift {
    position: absolute;
    top: 40px;
    left: 1px;
    width: 100%;
    height: 70%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
    z-index: 1.5;
    pointer-events: none;
    transform: scale(0.9);
    transform-origin: center;
}

.ball {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-image: radial-gradient(circle at 60% 20%, rgb(255, 0, 0), rgb(173, 26, 26));
}

.ball_shadow {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 15px;
    border-radius: 50%;
    background-color: #4d4d4d;
    z-index: -3;
    filter: blur(5px);
}

.tin {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    perspective: 400px;
    perspective-origin: center -50%;
}

.tin::before {
    content: "";
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background-image: var(--side-tin, linear-gradient(to left, #ffffff, #f8f5ed, #f5e4f4, #b1b1b1, #dfdfdf));
    transform: rotateX(48.5deg);
    transform-origin: top;
    border-radius: 0 0 50% 50%/0 0 20px 20px;
}
  
.tin::after {
    content: "";
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(0deg);
    width: 100%;
    height: 15%;
    border-radius: 50%;
    background-image: radial-gradient(var(--base-tin-color, white), var(--base-tin-color, white));
    border: 1px solid rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.logo-overlay {
    position: absolute;
    top: 20px;
    left: 1px;
    width: 100%;
    height: 50%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
    z-index: 1.5;
    pointer-events: none;
    transform: scale(0.9);
    transform-origin: center;
}

.animation {
    animation: animation 4s ease-out forwards;
    pointer-events: none;
}

.exit-buton {
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
    background-color: #ff9100;
    color: white;
    border: none;
    border-radius: 25px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-weight: bold;
    width: 55%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 10px;

}

.exit-buton:hover {
    transform: scale(1.1);
    background-color: #ff4500;
}

@keyframes cupA {

    0%,
    45%,
    80% {
        left: 0;
    }

    55%,
    90% {
        left: 50%;
    }

    65%,
    100% {
        left: 100%;
    }

    60%,
    85% {
        transform: translateX(-50%) scale(0.909);
        z-index: 0;
    }

    0%,
    45%,
    55%,
    65%,
    80%,
    90%,
    100% {
        transform: translateX(-50%) scale(1);
        z-index: 5;
    }

    50%,
    95% {
        transform: translateX(-50%) scale(1.1);
        z-index: 10;
    }

    72.5% {
        transform: translateX(-50%) scale(1.21);
        z-index: 10;
    }
}

@keyframes cupB {

    55%,
    65% {
        left: 0%;
    }

    0%,
    45%,
    100% {
        left: 50%;
    }

    80%,
    90% {
        left: 100%;
    }

    72.5% {
        transform: translateX(-50%) scale(0.826);
        z-index: 0;
    }

    50%,
    95% {
        transform: translateX(-50%) scale(0.909);
        z-index: 0;
    }

    0%,
    45%,
    55%,
    65%,
    80%,
    90%,
    100% {
        transform: translateX(-50%) scale(1);
        z-index: 5;
    }
}

@keyframes cupC {

    90%,
    100% {
        left: 0;
    }

    65%,
    80% {
        left: 50%;
    }

    0%,
    45%,
    55% {
        left: 100%;
    }

    0%,
    45%,
    55%,
    65%,
    80%,
    90%,
    100% {
        transform: translateX(-50%) scale(1);
        z-index: 5;
    }

    60%,
    85% {
        transform: translateX(-50%) scale(1.1);
        z-index: 10;
    }
}


@keyframes tin {

    0%,
    5%,
    30%,
    100% {
        top: 0;
    }

    15%,
    20% {
        top: -50px;
    }
}

@keyframes shadow {

    0%,
    5%,
    30%,
    100% {
        bottom: 0;
        box-shadow: 0 0px 10px #777;
    }

    15%,
    20% {
        bottom: 50px;
        box-shadow: 0 50px 60px #777;
    }
}

@keyframes ball {

    0%,
    15% {
        opacity: 1;
    }

    15.1%,
    100% {
        opacity: 0;
    }
}

@keyframes ball-mid {

    0%,
    30% {
        opacity: 1;
    }

    30.1%,
    100% {
        opacity: 0;
    }
}

@keyframes slideUp {
    0% {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Girar el vaso */
@keyframes cupGiftRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(21deg) translateX(18%) translateY(-12%);
    }
}

/* Girar la tapa */
@keyframes tinGiftRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(21deg) translateX(18%) translateY(-12%);
    }
}
