/* General Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Container Styles */
.login-container, .training-container, .quiz-container, .lesson-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 90%;
  max-width: 600px;
  margin: 20px auto;
}

/* Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 20px 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Form Styles */
input, button {
  margin: 10px 0;
  padding: 10px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

button {
  background-color: #28a745;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #218838;
}

/* Quiz and Lesson Styles */
.question {
  margin: 15px 0;
  text-align: left;
}

.question p {
  font-weight: bold;
}

.result-message {
  margin-top: 20px;
  font-size: 18px;
  color: #28a745;
}

.error-message {
  color: red;
  margin-top: 10px;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  p, li {
    font-size: 14px;
  }

  .video-container {
    padding-bottom: 75%; /* Adjust for smaller screens */
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

.quiz-container {
    width: 60%;
    margin: auto;
    font-family: Arial, sans-serif;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.question {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.answer-options {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
}

.answer-options label {
    display: flex;
    align-items: center;
    font-size: 16px;
    margin-bottom: 8px;
    cursor: pointer;
}

.answer-options input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}
