/* --- 基本設定とアニメーション --- */
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* 画面いっぱいに広げる */
    margin: 0;
    transition: background-color 0.8s ease; /* 背景色切り替えをスムーズに */
    color: white;
}

/* --- モードごとの背景色 --- */
.work-mode {
	background-color: #771414; /* 作業色 (赤系) */
	background-image: url(images/work.gif);
}

.short-break-mode {
	background-color: #287628; /* 短い休憩色 (緑系) */
		background-image: url(images/short_break_bg.gif);
}

.long-break-mode {
	background-color: #266499; /* 長い休憩色 (青系) */
		background-image: url(images/long_break_bg.gif);
}

/* --- アプリコンテナ --- */
#pomodoro-app {
    background: rgba(0, 0, 0, 0.2);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px;
}

/* --- タイマーとラベル --- */
#timer-display {
    font-size: 100px;
    font-weight: bold;
    letter-spacing: 5px;
    margin: 20px 0;
}

#mode-label {
    margin-bottom: 5px;
    font-size: 28px;
    font-weight: 300;
}

#set-count {
    font-size: 18px;
    margin-bottom: 10px;
}

/* --- ボタン --- */
.controls button {
    margin: 10px 8px;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.1s, opacity 0.3s;
}

.controls button:active {
    transform: scale(0.98);
}

.main-btn {
    background-color: #fff;
    color: #d9534f;
    min-width: 150px;
}

.sub-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

#toggle-settings-btn {
    margin-top: 20px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 8px 15px;
    font-weight: normal;
}

/* --- 設定パネル --- */
#settings-panel {
    margin-top: 20px;
    padding: 10px 0;
}

#settings-panel.hidden {
    display: none;
}

.setting-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 10px;
}

.setting-group input, .setting-group select {
    width: 70px;
    padding: 8px;
    border-radius: 5px;
    border: none;
    text-align: center;
    color: #333;
    font-size: 16px;
}

/* 音声設定 */
.sound-setting select {
    width: 150px;
}

.sound-setting .preview-btn {
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
}

/* 初期化ボタン */
#initialize-settings {
    margin-top: 15px;
    background-color: #f0ad4e;
    color: white;
}

hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}