body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #ffccd5;
    color: #a4133c;
}

#container {
    padding: 30px;
    width: 30%;
    background-color: #fff0f3;
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h4 {
    margin: 20px;
    color: #c9184a;
}


#num-input {
    width: 200px;
    height: 40px;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
}
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    gap: 10px;
}
.keypad button {
    width: 60px;
    height: 60px;
    font-size: 18px;
    cursor: pointer;
    border: 2px solid pink;
    background-color: white;
    border-radius: 50px;
    transition: 0.2s;
    color: #a4133c;

}
.keypad button:hover {
    background-color: #bbb;
}
.keypad .zero {
    grid-column: span 2;
    width: 130px;
}
.clear {
    background-color: red;
}

input {
    font-size: 18px;
    text-align: center;
    width: 200px;
    height: 40px;
    margin-bottom: 20px;
    border: 2px solid pink;
    border-radius: 25px;
    outline: none;
    background-color: white;
    color: #a4133c;
}

@media (max-width: 600px) {
    #container {
        width: 80%;
    }
}





.heart {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: red;
    transform: rotate(-45deg);
    animation: floatUp 4s linear infinite;
}

/* Create the rounded top part of the heart */
.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
}

/* Position the top circles */
.heart::before {
    top: -10px;
    left: 0;
}

.heart::after {
    top: 0;
    left: 10px;
}

/* Heart animation */
@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(-45deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(-45deg) scale(0);
        opacity: 0;
    }
}

#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    pointer-events: none;
    z-index: -1;
}