/* ===== 全体のスタイル ===== */
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, #e0f7fa, #f1f8e9); /* 柔らかいグラデ背景 */
  color: #333;
}

/* ===== 見出し ===== */
h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  color: #37474f;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* ===== 動画プレイヤー ===== */
#sharedScreen {
  width: 95%;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  background-color: #000;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

#sharedScreen:hover {
  transform: scale(1.02);
}

/* ===== ボタン共通スタイル ===== */
button {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

/* ===== プレビュー/切替ボタン枠 ===== */
#previewControls, #switchControls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

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

#downloadLinkContainer a {
  color: #6a11cb;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

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

  button {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
}
