body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
}

h1, h2 {
    color: #333;
    text-align: center;
    text-shadow: 1px 1px 0px #fff;
}

.draggable-item {
    width: 80px;
    height: 80px;
    margin: 10px;
    display: inline-block;
    cursor: grab;
    border: 2px dashed #ccc;
    border-radius: 10px;
    background-color: #fff;
    transition: transform 0.2s;
}

.draggable-item:hover {
    transform: scale(1.1);
}

.draggable-item:active {
    cursor: grabbing;
}

.blender {
    position: relative;
    width: 200px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.img-blender {
    width: 100%;
    height: auto;
    z-index: 1;
}

.blender-items {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    min-height: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 2;
}

.in-blender {
    width: 40px;
    height: 40px;
    margin: 5px;
    cursor: move;
}

#mix-button, .reset-button {
    margin-top: 10px;
    z-index: 3;
    position: relative;
}

.blender.vibrating {
    animation: vibrate 0.3s linear infinite; /* Fast vibration for 3s duration */
}

@keyframes vibrate {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-2px, 2px); }
    20% { transform: translate(2px, -2px); }
    30% { transform: translate(-2px, 0); }
    40% { transform: translate(2px, 0); }
    50% { transform: translate(0, 2px); }
    60% { transform: translate(-2px, -2px); }
    70% { transform: translate(2px, 2px); }
    80% { transform: translate(-2px, 0); }
    90% { transform: translate(2px, -2px); }
    100% { transform: translate(0, 0); }
}

#resultDisplay {
    margin-top: 20px;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    text-align: center;
    font-size: 1.2em;
    color: #333;
}

.mix-button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 18px;
    color: #fff;
    background-color: #ff5722;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mix-button:hover {
    background-color: #e64a19;
}