/* ===== 全体のスタイル ===== */
body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 16px;
  background: #f0f4f8; /* シンプルな淡色背景 */
  color: #333;
}

/* ===== 見出し ===== */
h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
  color: #222;
}

/* ===== 動画プレイヤー ===== */
#sharedScreen {
  width: 95%;
  border-radius: 8px;
  background-color: #000;
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}

#sharedScreen:hover {
  transform: scale(1.01); /* 軽いホバーアニメーション */
}

/* ===== ボタン共通スタイル ===== */
button {
  background-color: #5c6bc0; /* 単色で控えめ */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.95rem;
  cursor: pointer;
  margin: 6px;
  transition: background-color 0.2s, transform 0.15s;
}

button:hover {
  background-color: #3f51b5;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* 録画停止ボタンの初期非表示 */
button#stopRecording {
  display: none;
}

/* ===== ボタングループ ===== */
#previewControls, #switchControls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* ===== ダウンロードリンク ===== */
#downloadLinkContainer {
  margin-top: 16px;
  text-align: center;
}

#downloadLinkContainer a {
  color: #5c6bc0;
  text-decoration: none;
}

#downloadLinkContainer a:hover {
  text-decoration: underline;
}

/* ===== メディアクエリ（スマホ対応） ===== */
@media (max-width: 600px) {
  #sharedScreen {
    width: 100%;
    border-radius: 6px;
  }

  button {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
}
