.exercise {
    /* Eğlenceli gradient arka plan */
    background: linear-gradient(45deg, 
        rgba(255, 154, 158, 0.5) 0%,
        rgba(250, 208, 196, 0.5) 50%,
        rgba(173, 216, 230, 0.5) 100%
    );
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.exercise .bg {
    position: absolute;
    width: 100%;
    height:100%;
    z-index: 1;
}

.exercise .bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(0px) grayscale(0.1);
    z-index: 1;
}

.exercise .bg .clouds {
    position: absolute;
    width: 100%;
    height: 33%;
    top: 0;
    left: 0;
    z-index: 5;
}

.exercise .bg .clouds .clouds-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.exercise .bg .clouds img {
    width: 200px;
    height: auto;
    position: absolute;
    left: -20%;
    opacity: 0.8;
}


.exercise .bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, 
        rgba(231, 211, 32, 0.548) 0%,
        rgba(250, 208, 196, 0.5) 50%,
        rgba(30, 183, 235, 0.637) 100%
    );

    z-index: 1;
}

.exercise-container {
    width: 850px;
    height: 850px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 182, 193, 0.4) 25%,
        rgba(173, 216, 230, 0.4) 75%,
        rgba(255, 255, 255, 0.7) 100%
    );
    backdrop-filter: blur(100px);
    box-shadow: 
        0 0 30px rgba(255, 182, 193, 0.3),
        0 0 60px rgba(173, 216, 230, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 15px solid rgba(255, 255, 255, 0.8);
    z-index: 2;
    animation: containerGlow 3s infinite alternate;
}

.exercise-container .circle-anim {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.center-box {
    width: 410px;
    height: 250px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 182, 193, 0.2);
    border: 5px solid rgba(255, 255, 255, 0.9);
    transform: translateY(-10px);
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    color: #4a4a4a;
    font-weight: 600;
    position: relative;
}


.center-box.active-box {
    animation: centerBoxGlow 2s infinite;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 215, 0, 0.8);
    z-index: 11;
}

.hidden-text {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.start-button {
    position: absolute;
    z-index: 5;
    padding: 20px 60px;
    font-size: 28px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 50px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #5a5a5a;
    font-weight: bold;
    opacity: 0;
    display: none;
}

.start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.circles {
    position: absolute;
    width: 100%;
    height: 100%;
}


.circles::before {
    content: '';
    position: absolute;
    width: 620px;
    height: 620px;
    border: 15px dashed rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateCircle 60s linear infinite;
}

.circle {
    width: 90px;
    height: 90px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.8)
    );
    border-radius: 50%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 0 15px rgba(255, 182, 193, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 4px solid rgba(255, 255, 255, 0.9);
    color: #5a5a5a;
}

.circle::before {
    width: 110px;
    height: 110px;
}

.circle:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 20px rgba(173, 216, 230, 0.4);
}

.circle.active {
    animation: glowPulseGold 1.5s infinite;
    z-index: 11;
}

.circle.highlight {
    box-shadow: 
        0 0 30px #ffd700,
        0 0 60px #ffd700,
        inset 0 0 20px #ffd700;
    z-index: 11;
    border-color: #ffd700;
}

.circle .number {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.circle .text {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    letter-spacing: 1px;
}

.circle.active .number {
    opacity: 0;
}

.circle.active .text {
    opacity: 1;
}

.circle.completed .number {
    display: none;
}

.circle.completed .text {
    opacity: 1;
}

.path-highlight {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.overlay {
    position: fixed;
    top: -50%;
    left: -100%;
    width: 300%;
    height: 200%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.center-box.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

@keyframes containerGlow {
    from {
        box-shadow: 
            0 0 30px rgba(255, 182, 193, 0.3),
            0 0 60px rgba(173, 216, 230, 0.3),
            inset 0 0 30px rgba(255, 255, 255, 0.5);
    }
    to {
        box-shadow: 
            0 0 40px rgba(255, 182, 193, 0.4),
            0 0 80px rgba(173, 216, 230, 0.4),
            inset 0 0 40px rgba(255, 255, 255, 0.6);
    }
}

@keyframes rotateCircle {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 182, 193, 0.5),
                    0 0 40px rgba(173, 216, 230, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 182, 193, 0.8),
                    0 0 60px rgba(173, 216, 230, 0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 182, 193, 0.5),
                    0 0 40px rgba(173, 216, 230, 0.5);
    }
}

@keyframes glowPulseGold {
    0% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.6),
            0 0 50px rgba(255, 215, 0, 0.4),
            inset 0 0 20px rgba(255, 215, 0, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 0 50px rgba(255, 215, 0, 0.8),
            0 0 80px rgba(255, 215, 0, 0.6),
            inset 0 0 40px rgba(255, 215, 0, 0.8);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.6),
            0 0 50px rgba(255, 215, 0, 0.4),
            inset 0 0 20px rgba(255, 215, 0, 0.6);
            transform: scale(1);
    }
}

@keyframes centerBoxGlow {
    0% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.4),
            0 0 60px rgba(255, 215, 0, 0.2),
            inset 0 0 30px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 0 50px rgba(255, 215, 0, 0.6),
            0 0 80px rgba(255, 215, 0, 0.4),
            inset 0 0 50px rgba(255, 215, 0, 0.5);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.4),
            0 0 60px rgba(255, 215, 0, 0.2),
            inset 0 0 30px rgba(255, 215, 0, 0.3);
    }
}

.center-box p {
    opacity: 0;
    transform: translateY(20px);
    margin: 0px 0;
}

.center-box p:first-child {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #2a2a2a;
}

.center-box.active-box p {
    animation: slideInText 0.8s ease forwards;
}

.center-box.active-box p:nth-child(1) { animation-delay: 0.2s; }
.center-box.active-box p:nth-child(2) { animation-delay: 1.2s; }
.center-box.active-box p:nth-child(3) { animation-delay: 2.2s; }
.center-box.active-box p:nth-child(4) { animation-delay: 3.2s; }
.center-box.active-box p:nth-child(5) { animation-delay: 4.2s; }

@keyframes slideInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.music-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.music-control-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 50px;
}

.play-pause, .mute {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.1),
        -4px -4px 8px rgba(255, 255, 255, 0.9);
    position: relative;
}

.mute {
    z-index: 2;
}

.volume-dropdown {
    position: absolute;
    top: calc(100%);
    right: 0px;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-out;
    z-index: 1;
}

.volume-dropdown input {
    opacity: 0;
}

.volume-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.volume-slider {
    width: 4px;
    height: 120px;
    position: relative;
    margin: 10px auto;
    cursor: pointer;
    user-select: none; 
}

.volume-bar {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    position: relative;
}

.volume-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #4a90e2;
    border-radius: 2px;
    transition: height 0.05s linear; 
}

.volume-progress::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 12px;
    height: 12px;
    background: #4a90e2;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.4);
    z-index: 2;
    pointer-events: none; /* Tıklamayı engelle */
}

/* Hover efekti için yeni stil */
.volume-slider:hover .volume-progress::after {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Touch cihazlar için destek */
@media (hover: none) {
    .volume-slider {
        width: 6px; /* Dokunmatik için biraz daha geniş */
    }
}

.music-control-panel i {
    color: #5a5a5a;
    font-size: 16px;
}

/* Düğme hover efektleri */
.play-pause:hover, .mute:hover {
    transform: scale(1.05);
}

.play-pause:active, .mute:active {
    transform: scale(0.95);
}

.play-pause.playing i {
    color: #4a90e2;
}

.mute.muted i {
    color: #ff4444;
}

.tick-point {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 30px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

.tick-triangle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid rgba(255, 255, 255, 0.9);
    position: relative;
    filter: drop-shadow(0 -8px 4px rgba(0, 0, 0, 0.2));
    transform: rotate(180deg);
}

.tick-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(255, 215, 0, 0) 0%,
        rgba(255, 215, 0, 0) 50%,
        rgba(255, 215, 0, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tick-point.active .tick-triangle {
    border-bottom-color: #ffd700;
    transform: scale(1.1) rotate(180deg);
    transition: all 0.1s ease;
}

.tick-point.active .tick-glow {
    opacity: 1;
    background: radial-gradient(circle at center, 
        rgba(255, 215, 0, 0.6) 0%,
        rgba(255, 215, 0, 0.3) 50%,
        rgba(255, 215, 0, 0) 100%
    );
}

@keyframes tickGlow {
    0% {
        transform: scale(1);
        border-bottom-color: rgba(255, 255, 255, 0.9);
    }
    50% {
        transform: scale(1.1);
        border-bottom-color: #ffd700;
    }
    100% {
        transform: scale(1);
        border-bottom-color: rgba(255, 255, 255, 0.9);
    }
}

.entrance-anim {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    box-sizing: border-box;
}

.text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.text-item {
    opacity: 0;
    transform: translateY(20px);
    text-align: center;
    margin: 10px 0;
    position: absolute;
}

.text-item p {
    font-size: 24px;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.character {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    
    border-radius: 50%;
    box-shadow: 
        0 0 30px rgba(255, 182, 193, 0.5),
        0 0 60px rgba(173, 216, 230, 0.5),
         0 0 30px rgba(255, 255, 255, 0.5);
    border: 5px solid rgba(255, 255, 255, 0.8);
}

.character video {
    width: 200%;
    height: 200%;
    object-fit: cover;
    position: absolute;
    top: 65%;
    left: 45%;
    transform: translate(-50%, -50%);
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.start-anim {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 10;
}

.start-anim h1 {
    font-size: 48px;
    color: #333;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 4px solid rgba(255, 255, 255, 0.8);
}

.big-play-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 4px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 30px rgba(255, 182, 193, 0.2);
    animation: jumpButton 2s ease-in-out infinite;
}

@keyframes jumpButton {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.big-play-button:hover {
    animation: none;
    transform: scale(1.1);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        inset 0 0 40px rgba(74, 144, 226, 0.3);
}

.big-play-button i {
    font-size: 48px;
    color: #4a90e2;
    transition: all 0.3s ease;
    transform: translateX(3px);
}

.big-play-button:hover i {
    color: #2171cd;
}

.final-message {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.final-message .character {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 182, 193, 0.5);
    border: 5px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.final-message p {
    font-size: 24px;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.final-anim {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    box-sizing: border-box;
}

@media screen and (max-height: 900px) {
    .exercise-container {
        width: 700px;
        height: 700px;
    }

    .circles::before {
        width: 520px;
        height: 520px;
    }

    .center-box {
        width: 360px;
        height: 220px;
        font-size: 0.9em;
    }

    .circle {
        width: 75px;
        height: 75px;
        font-size: 14px;
    }

    .circle::before {
        width: 95px;
        height: 95px;
    }

    .start-anim h1 {
        font-size: 28px;
    }

    .big-play-button {
        width: 100px;
        height: 100px;
    }

    .big-play-button i {
        font-size: 40px;
    }

    .character {
        width: 250px;
        height: 250px;
    }

    .text-item p {
        font-size: 20px;
        padding: 12px 25px;
    }
}

@media screen and (max-height: 800px) {
    .exercise-container {
        width: 600px;
        height: 600px;
    }

    .circles::before {
        width: 450px;
        height: 450px;
    }

    .center-box {
        width: 320px;
        height: 200px;
        font-size: 0.85em;
        padding: 15px;
    }

    .circle {
        width: 65px;
        height: 65px;
        font-size: 13px;
    }

    .circle::before {
        width: 85px;
        height: 85px;
    }

    .character {
        width: 220px;
        height: 220px;
    }

    .text-item p {
        font-size: 18px;
        padding: 10px 20px;
    }
}
