/* All */
* {
  margin: 0;
  padding: 0;
  color: #FFF;
  overflow: hidden;
}
/* Background */
body {
    font-family: 'Poppins', sans-serif;
    background: #f8acc6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
h1 {
    font-family: 'Pacifico', cursive;
    font-size: 2.6rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Candy Machine */
.maquina {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}
.container {
    text-align: center;
    max-width: 500px;
    padding: 20px;
    position: relative;
    overflow: visible;
}
.maquina-container {
    position: relative;
    display: block;
    margin: 20px auto;
    width: fit-content;
    overflow: visible;
}
/* Hearts Candy */
.mini-heart {
    position: absolute;
    left: 50%;
    top: 75%;
    width: 90px;
    height: 75px;
    transform: translateX(-50%) rotate(0deg);
    pointer-events: none;
    z-index: 15;
    background-image: url('assets/heart.png');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    animation: fallLove 6s ease-out forwards;
}
.mini-heart .contenido {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-align: center;
    width: 70px;
    font-family: 'Arial Black', Arial, sans-serif;
}
.mini-heart.rosa {
    filter: hue-rotate(330deg) brightness(1.15) saturate(1.35);
}
.mini-heart.naranja {
    filter: hue-rotate(35deg) brightness(1.2) saturate(1.6);
}
.mini-heart.morado {
    filter: hue-rotate(265deg) brightness(1.1) saturate(1.45);
}

@keyframes fallLove {
    0% {
        transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateX(-50%) translateY(30px) rotate(60deg) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(520px) rotate(900deg) scale(0.7);
        opacity: 0;
    }
}

/* Pull Button */
.btn-palanca {
    position: absolute;
    top: 66%;
    bottom: 28.5%;
    right: 45%;
    width: 45px;
    height: 45px;
    background-color: #717171;
    border-color: black;
    border-radius: 50%;
    font-size: 1.4em;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.btn-palanca:hover {
    transform: scale(1.1) rotate(-10deg);
}

.btn-palanca:active {
    transform: scale(0.95) rotate(5deg);
}
/* Text under machine */
.instruccion {
    text-align: center;
    color: white;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-top: 20px;
}

/* Footer */
footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 0.9em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    
}

/* Background animation made by Toshiya Marukubo */
canvas#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/*Responsive*/
@media (max-width: 480px) {
    .maquina {
        max-width: 260px;
    }

    .btn-palanca {
        top: 66%;
        bottom: 28.5%;
        right: 45%;
        width: 9%;
        height: 9%;
    }

    h1 {
        font-size: 2rem;
    }

    .instruccion {
        font-size: 1rem;
    }
}