/* General Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #4a90e2;
  padding: 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  color: #fff;
  font-size: 2em;
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  padding: 50px;
}

/* Control Panel (Left Side) */
.control-panel {
  width: 50%;
  padding-right: 50px;
  box-sizing: border-box;
}

.control-panel h2 {
  margin-top: 0;
  color: #4a90e2;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-group button {
  flex: 1;
  padding: 10px;
  background-color: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
}

.button-group button:hover {
  background-color: #357abd;
}

/* Status Box */
.status-display {
  margin-top: 30px;
}

.status-box {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  white-space: pre-wrap;
  background-color: #fff;
  border-radius: 4px;
}

/* Video Section (Right Side) */
.video-section {
  width: 40%;
  display: flex;
  justify-content: center;
  /* align-items: center; */
  /* height: 678px; */
}

.video-container {
  position: relative;
  width: 500px;
  max-width: 500px;
  background-color: #000000;
  border-radius: 10px;
  overflow: hidden;
  height: 500px;
}

video,
canvas {
  width: 500px;
  /* height: 250px; */
  /* overflow: hidden; */
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background-color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-content {
    flex-direction: column;
  }

  .control-panel,
  .video-section {
    width: 100%;
  }

  .control-panel {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .button-group {
    flex-direction: column;
  }

  .button-group button {
    width: 100%;
  }
}
