:root {
  --primary: #000069;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  background: #f9f9f9;
  color: #333;
}

header {
  width: 100vw;
  background: var(--primary);
  color: white;
  padding: 20px;
  box-sizing: border-box;
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.logo img {
  width: 60px;
  height: auto;
}

.header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.header-text h1 {
  margin: 0;
  font-size: 1.5em;
}

.header-text p {
  margin: 5px 0 0;
  font-size: 1em;
}

.page-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.left-pane {
  flex: 2;
  min-width: 600px;
}

.middle-pane {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.middle-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  width: 100%;
}


.right-pane {
  flex: 1;
  min-width: 280px;
}

.right-pane .examples {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

section {
  padding: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

section:hover {
  transform: translateY(-4px);
}

.features, .instructions {
  margin-top: 2rem;
}

.features ul, .instructions ol {
  padding-left: 1.5rem;
}

.examples a {
  display: block;
  margin: 0.5rem 0;
  color: var(--primary);
  text-decoration: none;
}

.cta {
  text-align: center;
  margin-top: 3rem;
}

.cta a {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
}

form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
}

input, textarea {
  margin-bottom: 1rem;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background: var(--primary);
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

#toast, #toast_fail {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-size: 17px;
}

#toast.show, #toast_fail.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .header-container {
      flex-direction: column;
      gap: 10px;
  }

  .logo img {
      width: 40px;
  }

  .header-text h1 {
      font-size: 1.2em;
  }

  .header-text p {
      font-size: 0.9em;
  }

  .left-pane, .right-pane {
      min-width: 100%;
  }

  .page-layout {
      flex-direction: column;
      padding: 0 1rem;
  }

  section {
      margin: 1rem auto;
      padding: 1.5rem;
  }
}