body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f8ff;
    padding: 20px;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
}

/* Icon Container Styles */
.icon-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.icon-button {
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.icon-button:hover {
    transform: scale(1.05);
    background: rgba(59, 130, 246, 0.2);
}

.share-icon {
    width: 24px;
    height: 24px;
}

.share-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    margin-top: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 200px;
}

.share-options.active {
    display: block;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 6px;
    color: #2d3748;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.share-option:hover {
    background: #f7fafc;
}

.instruction-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #2c5282;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    text-align: center;
    width: 80%;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 8px;
    pointer-events: none;
}

.controls {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.counter {
    font-size: 8rem;
    margin: 2rem 0;
    color: #2c5282;
    transition: all 0.3s ease;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 5px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: #4299e1;
    transition: width 1s linear;
}

select, button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    background-color: white;
}

button {
    background-color: #4299e1;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 100px;
}

button:hover {
    background-color: #2b6cb0;
}

button:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
}

.pulse {
    animation: pulse 1s ease-in-out;
}

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

.label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

@media (max-width: 768px) {
    .icon-container {
        top: 10px;
        left: 10px;
        gap: 8px;
    }
    
    .icon-button {
        padding: 8px;
    }
    
    .share-icon {
        width: 20px;
        height: 20px;
    }
    
    .share-options {
        min-width: 160px;
    }
}