body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tag-cloud {
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    text-align: center;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    margin: 6px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

/* Size variations */
.size-1 {
    font-size: 12px;
}

.size-2 {
    font-size: 16px;
}

.size-3 {
    font-size: 20px;
}

.size-4 {
    font-size: 24px;
}

.size-5 {
    font-size: 28px;
}

/* Color variations */
.color-1 {
    background: #FF6B6B;
    color: white;
}

.color-2 {
    background: #4ECDC4;
    color: white;
}

.color-3 {
    background: #45B7D1;
    color: white;
}

.color-4 {
    background: #96CEB4;
    color: white;
}

.color-5 {
    background: #9B59B6;
    color: white;
}

.tag:hover {
    transform: translateY(-3px) rotate(2deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tag.selected {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.tag-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 5px;
}

@media (max-width: 600px) {
    .tag-cloud {
        padding: 20px;
        margin: 15px;
    }

    .tag {
        padding: 6px 12px;
        margin: 4px;
    }
}
