.fixed-row, .draggable-row, .slot-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.slot {
    width: 50px;
    height: 50px;
    border: 2px dashed #aaa;
    display: inline-block;
    border-radius: 50%;
}

.fixed {
    border: 2px solid black; /* Fixed beads have a defined look */
}

.bead {
    width: 50px;
    height: 50px;
    cursor: grab;
    border-radius: 50%;
}

#success-message {
    margin-top: 20px;
}

.reset-btn {
    background-color: #f07883;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
    margin-top: 10px;
}

.reset-btn:hover {
    background-color: #c82333;
}

.bead {
    transition: transform 0.2s ease-in-out; /* Smooth movement */
}

.bead:active {
    transform: scale(1.2); /* Slightly expand when picked */
}

@keyframes bounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); } /* Slight expand */
    50% { transform: scale(0.9); } /* Shrink slightly */
    70% { transform: scale(1.1); } /* Expand a bit again */
    100% { transform: scale(1); } /* Back to normal */
}

.slot img {
    animation: bounce 0.4s ease-in-out;
}

.slot {
    transition: box-shadow 0.3s ease-in-out;
}

.slot:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7); /* Glow effect */
}

@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(50px) rotate(360deg); opacity: 0; }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: gold;
    border-radius: 50%;
    animation: confetti 1s ease-in-out forwards;
}

.letter-slot {
    background-color: #007bff;
    color: white;
    font-size: 18px;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.letter-slot:hover {
    background-color: #0056b3;
}

.message-container {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    text-align: center;
    margin-top: 15px;
}

.message-icon {
    font-size: 24px;
    margin-right: 10px;
}

.message-text {
    font-size: 18px;
    font-weight: bold;
}

.kindness-btn {
    background-color: #800080; /* Purple */
    color: white;
    font-size: 16px;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    margin-top: 10px;
}

.kindness-btn:hover {
    background-color: #6a0dad;
}

#success-message {
    display: none;
    color: green;
    font-weight: bold;
    background-color: #ccffcc; /* Very light green */
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.bracelet-builder p {
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
}
.fixed-row, .draggable-row, .slot-row {
    display: flex;
    gap: 15px; /* Adds space between items */
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Separates rows */
}

.fixed-row, .draggable-row, .slot-row {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    justify-content: center;
    gap: 10px; /* Adds spacing between elements */
}

.slot, .bead {
    width: 40px;
    height: 40px;
} 

@media (max-width: 600px) {
    .bracelet-builder h2, .bracelet-builder p {
        font-size: 16px; /* Scale down text on small screens */
    }

    .letter-slot, .kindness-btn {
        font-size: 14px; /* Make buttons smaller */
        padding: 8px;
    }

    .slot, .bead {
        width: 35px;
        height: 35px;
    }
}

.bracelet-builder p {
    text-align: center;
    margin: 10px auto;
    max-width: 80%; /* Keeps text readable */
}

.warning-message {
    text-align: center;
    color: red;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
    display: none; /* Hidden by default */
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

