/* 全体背景とフォント設定 */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec); 
  color: #2c3e50;
  min-height: 100vh;
}

/* タイトル */
h1 {
  text-align: center;
  margin-top: 40px;
  font-size: 2.8em;
  color: #34495e;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* ボタン配置と中央揃え */
.wrapper {
  max-width: 500px;
  margin: 0 auto;
  padding: 50px 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

button {
  width: 80%;
  height: 3.2em;
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  margin: 14px 0;
  transition: all 0.3s ease;
}


#start_btn {
  background: #f39c12; 
}

#end_btn {
  background: #e74c3c; 
}

#break_btn {
  background: #2ecc71; 
}

#restart_btn {
  background: #27ae60; 
}

#cancel_btn {
  background: #3498db; 
}

#download_btn {
  background: #7f8c8d; 
  margin-top: 40px;
}

button:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* 無効ボタン */
button:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  opacity: 0.7;
}

/* フラッシュメッセージ(機械学習予測結果) */
#flash-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(52, 152, 219, 0.95);
  color: white;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: none;
  opacity: 1;
  z-index: 9999;
  animation: fadein 0.5s ease, fadeout 0.5s ease 3.5s;
}

/* モバイル対応 */
@media screen and (max-width: 480px) {
  .wrapper {
    padding: 30px 15px;
  }

  button {
    width: 100%;
    font-size: 1em;
  }

  h1 {
    font-size: 2em;
  }
}