/* Reset some basic styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f9fafb;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* App Bar */
.appbar {
  background-color: #4f46e5;
  padding: 1rem 2rem;
  color: white;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
}

/* Main Content */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  margin-left: 1rem;
  text-align: center;
}

.content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #111827;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  width: 100%;
}

input[type="url"] {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
}

button {
  background-color: #4f46e5;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #4338ca;
}

/* Video Section */
.video-section {
  margin-top: 3rem;
  width: 100%;
  max-width: 720px;
}

.video-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #111827;
}

.video-section video {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.checkbox-container {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  color: #1f2937;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #4f46e5;
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #4f46e5;
  border-color: #4f46e5;
}

.checkmark::after {
  content: "";
  display: none;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark::after {
  display: block;
}

.custom-checkbox .checkmark::after {
  position: relative;
  left: -0.5px;
  top: -1.25px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


.download-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.download-btn {
  background-color: #4f46e5;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.download-btn:hover {
  background-color: #4338ca;
}

/* Footer */
.footer {
  background-color: #f3f4f6;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

@media (min-width: 600px) {
  form {
    flex-direction: row;
  }

  input[type="url"] {
    flex: 1;
  }
}
