/* עיצוב כללי */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f8fa;
  margin: 0;
  padding: 0;
  direction: rtl;
  color: #333;
}

/* === עיצוב ההדר === */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0077A2;
  padding: 12px 20px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  max-height: 55px;
}

.header-text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.header-text h1 {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
}

.header-text h2 {
  margin: 0;
  font-size: 13px;
  font-weight: normal;
  direction: ltr;
}

/* עיצוב מיכל התוכן */
.container {
  max-width: 1400px;
  margin: 30px auto;
  background: #fff;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border-radius: 12px;
  text-align: center;
}

.title {
  margin-bottom: 5px;
}

.subtitle {
  margin-bottom: 20px;
  font-size: 15px;
}

/* ווידאו + הקלטה אחד ליד השני */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.flex-item {
  flex: 1 1 48%;
  min-width: 480px;
  max-width: 720px;
}

.intro-video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ווידאו ההקלטה */
.recorder video {
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
  background-color: #000;
}

.loader {
  margin-top: 10px;
  color: #0077A2;
  font-weight: bold;
}

/* כפתורים */
.controls {
  margin-top: 15px;
}

button {
  padding: 12px 20px;
  margin: 5px;
  background-color: #0077A2;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

button:hover:enabled {
  background-color: #005f82;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* הודעות סטטוס */
#status {
  margin-top: 15px;
  font-weight: bold;
  color: #0077A2;
}

/* פוטר */
.footer {
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  background: #0077A2;
  color: #fff;
  font-size: 14px;
}

/* רספונסיביות למסכים קטנים */
@media (max-width: 1024px) {
  .flex-container {
    flex-direction: column;
    align-items: center;
  }

  .flex-item {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: unset;
  }
}
