:root {
  --bg-color: #fffaf1;
  --text-color: #000000;
  --accent-color-light: #c33737;
  --accent-color-dark: #4378ec;

  --accent-color-light-filter: invert(33%) sepia(54%) saturate(2014%)
    hue-rotate(334deg) brightness(80%) contrast(90%);
  --accent-color-dark-filter: invert(44%) sepia(22%) saturate(7283%)
    hue-rotate(208deg) brightness(97%) contrast(90%);

  --accent-color: var(--accent-color-light);
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #fffaf1;
  --accent-color: var(--accent-color-dark);
}

body {
  --padding: 2rem;
  margin: 0;
  font-family: Helvetica, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  transition: color 250ms cubic-bezier(0.45, 0.05, 0.55, 0.95),
    background-color 250ms cubic-bezier(0.45, 0.05, 0.55, 0.95);
  text-wrap: nowrap;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--padding);
  gap: 16px;

  * {
    text-wrap: nowrap;
  }
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

header .dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  background-color: var(--text-color);
  position: relative;
  height: 36px;
  width: 36px;
}

header nav.navigation {
  display: flex;
  gap: 16px;
  align-items: baseline;
  vertical-align: middle;
}

.dark-mode-toggle::after {
  content: "🌙";
  filter: var(--accent-color-dark-filter);
}

[data-theme="dark"] .dark-mode-toggle::after {
  content: "☀️";
  filter: var(--accent-color-light-filter);
}

main {
  padding: var(--padding);
  display: flex;
  gap: var(--padding);
  height: 100%;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
  max-width: 100vw;
}

main .image {
  flex: 1 1 300px;
  max-width: 50%; /* Ensure it doesn't take more than half the width */
  display: flex;
  justify-content: center;
  height: 100%;
}

main .copy {
  flex: 2 1 400px;
  max-width: 70%; /* Prevent wrapping by setting a max width */
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1em;
}

main .image img {
  min-height: 300px;
  max-height: 600px;
  object-fit: contain;
  width: 100%;
}

@media (max-width: 900px) {
  body {
    --padding: 1rem;
  }
  main {
    flex-direction: column-reverse;
    justify-content: start;
  }

  main .image,
  main .copy {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
}

button {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: none;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 12px;
}

button:hover {
  opacity: 0.9;
}

span.highlight {
  color: var(--accent-color);
}

footer {
  text-align: center;
  padding: 1rem;
  width: 100%;
}

h1 {
  font-size: 45px;
}

p {
  font-size: 1.5rem;
}

strong {
  color: var(--accent-color);
}

.inner-headings {
  border: 0px solid #ddd;
  height: 50px;
  line-height: 50px;
  font-size: 45px;
  text-transform: uppercase;
  overflow: hidden;
}

.inner-headings span {
  position: relative;
  color: var(--accent-color);
  animation: animation 12.5s ease infinite; /* Adjusted duration to fit five items */
}

@keyframes animation {
  0%,
  100% {
    top: 0;
  }
  16% {
    top: 0;
  }
  20% {
    top: -50px;
  }
  36% {
    top: -50px;
  }
  40% {
    top: -100px;
  }
  56% {
    top: -100px;
  }
  60% {
    top: -150px;
  }
  76% {
    top: -150px;
  }
  80% {
    top: -200px;
  }
  96% {
    top: -200px;
  }
}

.availability {
  filter: drop-shadow(0px 0px 10px #1eff00);
  font-size: 1rem;
  text-wrap: nowrap;
}

.info {
  display: flex;
  gap: 16px;
  align-items: center;
}

.formlink button {
  width: 100%;
  font-weight: 600;
}
