:root {
    --primary-color: #3b82f6;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --light-text: #f8fafc;
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 뒤로 가기 버튼 제거 */
/* .back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light-text);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
} */

/* 메뉴 설정 컨테이너 */
.menu-settings {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 600px;
}

/* 디스플레이 컨테이너 */
.display-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* 타이머 디스플레이 */
.timer-display {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background-color: var(--bg-color, #1e293b);
    color: var(--text-color, #f8fafc);
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    overflow: hidden;
    text-align: center;
    position: relative;
}

.timer-time {
    font-size: clamp(4rem, 15vw, 15rem);
    line-height: 1.1;
    white-space: nowrap;
    display: inline-block;
}

/* 초 위치 조정 - 모든 섹션에 적용 */
.timer-seconds {
    font-size: clamp(1rem, 5vw, 3rem);
    opacity: 0.8;
    margin-left: 5px;
    position: relative;
    bottom: 130px; /* 기본 위치 설정 */
    align-self: flex-end;
    line-height: 0.8;
}

/* 시계 메뉴에서만 초 크기를 작게 설정 */
.timer-display[data-section="clock"] .timer-seconds {
    font-size: clamp(1rem, 5vw, 3rem);
    bottom: 130px; /* 시계 모드에서의 위치 */
}

/* 업 타이머와 다운 타이머에서는 초 표시 숨김 */
.timer-display[data-section="up-timer"] .timer-seconds,
.timer-display[data-section="down-timer"] .timer-seconds {
    display: none;
}

/* 시간 형식 스위치 */
.time-format-switch {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    width: fit-content;
}

.format-option {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.format-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.format-option.active {
    background: var(--primary-color);
    color: white;
}

/* 타이머 스위치 */
.timer-switches {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.timer-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform var(--transition-speed);
    flex: 1;
    max-width: 120px;
}

.timer-switch:hover {
    transform: scale(1.05);
}

.timer-switch.active {
    transform: scale(1.1);
}

.timer-switch-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    transition: background-color var(--transition-speed);
}

.timer-switch.active .timer-switch-icon {
    background-color: var(--primary-color);
}

.timer-switch-icon i {
    font-size: 24px;
}

.timer-switch-label {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* 깜빡임 효과 */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.blink {
    animation: blink 1s infinite;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .timer-display {
        padding: 1rem;
    }
    
    .timer-time {
        font-size: clamp(3rem, 15vw, 10rem);
    }
    
    /* 시계 메뉴에서만 초 크기를 작게 설정 */
    .timer-display[data-section="clock"] .timer-seconds {
        font-size: clamp(0.8rem, 3vw, 1.5rem);
        bottom: 80px; /* 태블릿에서 위치 조정 */
    }
    
    .timer-switches {
        gap: 10px;
    }
    
    .timer-switch-icon {
        width: 50px;
        height: 50px;
    }
    
    .timer-switch-icon i {
        font-size: 20px;
    }
    
    .timer-switch-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .timer-display {
        padding: 0.5rem;
    }
    
    .timer-time {
        font-size: clamp(2.5rem, 15vw, 8rem);
    }
    
    /* 시계 메뉴에서만 초 크기를 작게 설정 */
    .timer-display[data-section="clock"] .timer-seconds {
        font-size: clamp(0.7rem, 3vw, 1.2rem);
        bottom: 50px; /* 모바일에서 위치 조정 */
    }
} 