* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    padding: 40px 20px;
}

.meditation-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breathing-flower {
    width: 125px;
    height: 125px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 6s cubic-bezier(0.5, 0, 0.5, 1) alternate infinite;
}

.circle {
    height: 125px;
    width: 125px;
    border-radius: 50%;
    position: absolute;
    transform: translate(0, 0);
}

.circle:nth-child(odd) {
    background: #4a90e2;
    mix-blend-mode: screen;
    opacity: 0.8;
}

.circle:nth-child(even) {
    background: #87ceeb;
    mix-blend-mode: screen;
    opacity: 0.8;
}

.circle:nth-child(1) {
    animation: circle-1 6s ease alternate infinite;
}

.circle:nth-child(2) {
    animation: circle-2 6s ease alternate infinite;
}

.circle:nth-child(3) {
    animation: circle-3 6s ease alternate infinite;
}

.circle:nth-child(4) {
    animation: circle-4 6s ease alternate infinite;
}

.circle:nth-child(5) {
    animation: circle-5 6s ease alternate infinite;
}

.circle:nth-child(6) {
    animation: circle-6 6s ease alternate infinite;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: auto;
}

.timer-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.timer-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.timer-btn.active {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.timer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #4a90e2;
    transition: none;
}

.progress-fill.complete {
    background: #4caf50;
}

@keyframes pulse {
    0% {
        transform: scale(.15) rotate(180deg);
    }
    100% {
        transform: scale(1.3);
    }
}

@keyframes circle-1 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-35px, -50px);
    }
}

@keyframes circle-2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(35px, 50px);
    }
}

@keyframes circle-3 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-60px, 0);
    }
}

@keyframes circle-4 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 0);
    }
}

@keyframes circle-5 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-35px, 50px);
    }
}

@keyframes circle-6 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(35px, -50px);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px 10px 70px 10px;
        height: 100vh; /* Fallback */
        height: calc(var(--vh, 1vh) * 100);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
    }
    
    .meditation-area {
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .breathing-flower {
        width: 100px;
        height: 100px;
        margin-bottom: 0;
    }
    
    .circle {
        height: 100px;
        width: 100px;
    }
    
    .controls {
        position: fixed;
        bottom: 56px;
        left: 10px;
        right: 10px;
        display: flex;
        gap: 10px;
        justify-content: center;
        z-index: 1001;
        margin: 0;
    }
    
    .timer-btn {
        padding: 10px 12px;
        font-size: 14px;
        min-width: 70px;
        flex: 1;
        max-width: 110px;
        white-space: nowrap;
    }
}
