.bouncing-balls__container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.bouncing-balls__counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: #333;
}

.bouncing-balls__counter-label {
    font-weight: 500;
    color: #666;
}

.bouncing-balls__counter-value {
    font-size: 48px;
    font-weight: bold;
    color: #4a90e2;
    min-width: 60px;
    text-align: center;
}

.bouncing-balls__shape {
    position: relative;
    width: 500px;
    height: 500px;
    border: 3px solid #4a90e2;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.bouncing-balls__shape.shape-circle {
    border-radius: 50%;
}

.bouncing-balls__shape.shape-square {
    border-radius: 0;
}

.bouncing-balls__shape-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
}

.bouncing-balls__shape-selector label {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-right: 10px;
}

.bouncing-balls__shape-selector .shape-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid #4a90e2;
    background: #fff;
    color: #4a90e2;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.bouncing-balls__shape-selector .shape-btn:hover {
    background: #f0f0f0;
}

.bouncing-balls__shape-selector .shape-btn.active {
    background: #4a90e2;
    color: #fff;
}

.bouncing-balls__ball {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

#ball1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#ball2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

@media (max-width: 600px) {
    .bouncing-balls__container {
        flex-direction: column;
        gap: 20px;
    }
    
    .bouncing-balls__shape {
        width: 350px;
        height: 350px;
    }
    
    .bouncing-balls__ball {
        width: 7px;
        height: 7px;
    }
    
    .bouncing-balls__counter {
        font-size: 20px;
    }
    
    .bouncing-balls__counter-value {
        font-size: 36px;
    }
}

