* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

video {
  display: block;
  max-width: 100%;
  margin-top: 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  color: white;
  background-color: #3b82f6;
  border: none;
  cursor: pointer;
  border-radius: 20px;
  width: 100px;
  padding: 8px 10px;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
  background-color: #000;
  color: #fff;
  padding: 10px 15px;
  z-index: 9999;
  text-decoration: none;
  border: 1px solid #fff;
}

.skip-link:focus {
  top: 10px;
  left: 10px;
}

*:focus {
  outline: 2px solid blue;
}

.contact {
  margin-left: 20px;
}

.logo {
  width: 24px;
  height: 24px;
}

.introduction-text {
  margin-top: 10px;
  margin-bottom: 20px;
  max-width: 450px;
  width: 100%;
  font-size: 1em;
  color: darkgrey;
}

header .logo {
  padding-left: 15px;
  padding-right: 15px;
}

header h1 {
  font-size: 2em;
  margin-left: 20px;
}

header h1,
header h2 {
  color: white;
}

header {
  background-color: #3b82f6;
  display: flex;
  padding: 20px 0;
  height: 100px;
}
footer {
  background-color: #3b82f6;
  color: white;
}

header .left-section,
header .middle-section,
header .right-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

header .middle-section {
  flex: 3;
}

.dark-mode-button {
  font-weight: bold;
  font-size: 1.2em;
}

header .middle-section ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

header .middle-section li {
  font-size: 1.3em;
  margin-left: 20px;
  list-style: none;
  color: white;
  font-weight: bold;
}

main h1,
main h2,
main p {
  margin: 3px 0;
}

table {
  margin-left: auto;
  margin-right: auto;
  border-spacing: 10px;
  margin-top: 20px;
}

.middle-column,
.left-column {
  padding-right: 40px;
}

th {
  font-size: 1.1em;
}

caption {
  font-weight: bold;
  font-size: 1.3em;
}

header h2 {
  padding-left: 10px;
  padding-right: 10px;
}

header .left-section {
  margin-right: 60px;
  flex: 1;
}

header .right-section {
  flex: 1;
}

footer {
  display: flex;
  justify-content: space-evenly;
  padding-top: 20px;
  padding-bottom: 60px;
}

.social-media {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-top: 15px;
}

footer .middle-section {
  display: flex;
  flex-direction: column;
}

.subscribe-heading {
  margin-bottom: 15px;
}

.subscribe-button {
  margin-top: 10px;
  width: 40%;
  background-color: white;
  color: black;
}

.shakshuka-container,
.shakshuka-video-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.shakshuka-text {
  margin-left: 20px;
}

.shakshuka-text h2 {
  padding-top: 0;
}

.shakshuka-image-container {
  display: flex;
}

footer h1,
footer h2,
footer p {
  margin: 3px 0;
}

main {
  padding-bottom: 60px;
}

.index-main {
  padding-top: 90px;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 75px;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  width: 90%;
}

.magamrol-hobbik-main {
  margin: 0 auto;
  width: 650px;
  padding-top: 30px;
}

.magamrol-hobbik-main h1 {
  margin-bottom: 15px;
  margin-top: 15px;
  font-size: 1.7em;
}

.magamrol-hobbik-main h2 {
  margin-bottom: 10px;
  margin-top: 10px;
  font-size: 1.3em;
}

.magamrol-hobbik-main ol {
  margin-left: 20px;
}

.magamrol-hobbik-main ol li {
  margin-bottom: 10px;
}

.profile-picture {
  width: 400px;
  height: auto;
  border-radius: 50%;
}

.profile-picture-container {
  margin-left: 40px;
}

.contact-text {
  padding-bottom: 15px;
}

.left-section p {
  color: white;
}

details {
  margin-top: 20px;
  margin-bottom: 20px;
}

summary {
  font-size: 1.2em;
  font-weight: bold;
}

.email-input {
  padding: 5px 2px;
  width: 20em;
  margin-bottom: 10px;
  border-radius: 10px;
}

h1 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.form-container {
  display: flex;
  justify-content: center;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  margin: 30px auto;
  width: 90%;
  max-width: 1000px;
}

.form-inner {
  display: flex;
  width: 100%;
}

.form-image-container {
  flex: 1;
  margin-right: 20px;
}

.form-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.form-content {
  flex: 2;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group label {
  font-size: 0.9em;
  margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 0.9em;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

textarea {
  resize: none;
}

.checkbox-group {
  display: flex;
  align-items: center;
  height: 100%;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  font-size: 0.9em;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.submit-btn,
.reset-btn {
  flex: 1;
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}

.reset-btn {
  background-color: #e5e7eb;
  color: #374151;
}

.submit-btn:hover {
  background-color: #2563eb;
}

.reset-btn:hover {
  background-color: #d1d5db;
}

@media print {
  header,
  footer,
  video,
  .social-media {
    display: none;
  }
  img {
    max-width: 200px;
  }
}

.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

@media print {
  .no-print {
    display: none;
  }
}

nav a[aria-current="page"] {
  font-weight: bold;
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

body.dark-theme {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-theme header,
body.dark-theme footer {
  background-color: #1e1e1e;
}

body.dark-theme .form-container {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border: 1px solid #444;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
  color: #aaa;
}

body.dark-theme button {
  background-color: #3b82f6;
  color: white;
}

body.dark-theme a {
  color: #90cdf4;
}

input[type="tel"] {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

body.dark-theme input[type="tel"] {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border: 1px solid #555;
}

@media (max-width: 900px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
  }

  header .left-section,
  header .middle-section,
  header .right-section {
    flex: 1 1 100%;
    justify-content: center;
    margin-right: 0;
    padding: 10px 0;
  }

  header .middle-section ul {
    flex-direction: column;
    align-items: center;
  }

  header .middle-section li {
    margin-left: 0;
    margin-bottom: 10px;
  }

  .index-main {
    flex-direction: column;
    padding-top: 30px;
    width: 95%;
  }

  .introduction-container {
    order: 1;
    text-align: center;
  }

  .profile-picture-container {
    order: 2;
    margin-left: 0;
    margin-top: 30px;
    display: flex;
    justify-content: center;
  }

  .profile-picture {
    width: 300px;
    max-width: 80%;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer .left-section,
  footer .middle-section,
  footer .right-section {
    margin-bottom: 20px;
    width: 90%;
  }

  footer .middle-section {
    align-items: center;
  }

  .subscribe-button {
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  .email-input {
      width: 100%;
      max-width: 300px;
  }

  .form-inner {
    flex-direction: column;
  }
  .form-image-container {
    margin-right: 0;
    margin-bottom: 20px;
    max-height: 250px;
  }
  .form-image {
      object-fit: contain;
  }
}

@media (max-width: 599px) {
  header h1 {
    font-size: 1.8em;
    margin-left: 10px;
  }

  header .middle-section li {
    font-size: 1.1em;
  }

  .dark-mode-button {
    font-size: 1em;
  }

  .index-main {
    width: 95%;
  }
  
  .introduction-container h1 {
    font-size: 1.5em;
  }
  .introduction-container h2 {
    font-size: 1.2em;
  }
  .introduction-text {
    font-size: 0.9em;
  }

  .profile-picture {
    width: 200px;
    max-width: 70%;
  }

  button,
  .submit-btn,
  .reset-btn {
    padding: 8px 12px;
    font-size: 0.9em;
  }

  .contact {
    margin-left: 10px;
  }

  footer .left-section p,
  footer h2 {
      font-size: 0.9em;
  }

  .social-media .logo {
      width: 20px;
      height: 20px;
  }

  .form-container {
      width: 95%;
      padding: 15px;
  }
  .form-row {
      flex-direction: column;
      gap: 0;
  }
  .form-group {
      margin-bottom: 15px;
  }

  .button-row {
      flex-direction: column;
  }
  .submit-btn, .reset-btn {
      width: 100%;
      margin-bottom: 10px;
  }
  .reset-btn {
      margin-bottom: 0;
  }
}
