body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

nav {
  background-color: #333;
}

nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  display: block;
  padding: 14px 20px;
  color: white;
  text-decoration: none;
}

nav ul li a:hover {
  background-color: #575757;
}

main {
  padding: 10px;
}

h2 {
  text-align: center;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-direction: column;
}

.duration-options {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.duration-option {
  border: 2px solid #ccc;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.2s;
  user-select: none;
  width: 40px;
  text-align: center;
  font-weight: 600;
}

.duration-option:hover {
  background-color: #f0f0f0;
}

.duration-option.selected {
  border-color: #007bff;
  background-color: #007bff;
  color: white;
}

#record-button {
  display: block;
  margin: 20px auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: red;
  color: white;
  font-size: 18px;
  border: none;
  cursor: pointer;
}

#record-button.loading {
  background-color: gray;
  cursor: not-allowed;
}

#status-message {
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.video-card {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 20px;
}

.video-card video {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.video-actions {
  margin-top: 10px;
}

.video-actions a {
  margin-right: 10px;
  text-decoration: none;
  color: blue;
}
