@import url('https://fonts.googleapis.com/css2?family=ABeeZee&display=swap');

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #1f1f1f;
    color: white;
    font-family: 'ABeeZee', sans-serif;
}

.card {
    width: 220px;
    height: 320px;
    background: #313131;
    border-radius: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden;
    position: relative;
}

.img {
    height: 40%;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    z-index: 1;
    margin-bottom: 10px;
}

.textBox {
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
}

.textBox > .text {
    font-weight: bold;
    margin: 0;
}

.textBox > .head {
    font-size: 22px;
}

.textBox > .price {
    font-size: 18px;
    color: gold;
}

.textBox > .tagline {
    font-size: 14px;
    color: lightgrey;
    padding: 0 10px;
}

.card:hover .textBox {
    opacity: 1;
}

.card:hover .img {
    transform: scale(1.1);
    filter: blur(5px);
    animation: bounce 3s infinite;
}

.card:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1.1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}