/*
 * Auteur: Evert van Essen - Spin in het Web B.V., Apeldoorn, Nederland
 *
 * Opmaak van de melding over de nieuwe naam (vanwpallin.php), in de huisstijl: de kaart met blur zoals het
 * off-canvas menu, en de knop zoals a.fl-button in css/huisstijl.css.
 */

.vanwpallin {
  padding: 0;
  border: none;
  border-radius: 20px;
  width: min(560px, calc(100% - 40px));
  box-shadow: 0 0 3px #8080809e;
  background-color: #fff;
  color: var(--sihw-global-text-color, #000);
  font-family: var(--sihw-global-text-font-family, sans-serif);
  font-size: var(--sihw-global-text-font-size, 16px);
  overflow: hidden;

  &::backdrop {
    background-color: rgb(14 64 41 / 35%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  &[open] {
    animation: vanwpallin-in .4s ease-out;
  }

  h2 {
    margin: 0;
    font-family: var(--sihw-global-h2-font-family, sans-serif);
    font-weight: var(--sihw-global-h2-font-weight, 700);
    text-transform: var(--sihw-global-h2-text-transform, uppercase);
    font-size: 30px;
    line-height: 1.2;
    color: var(--sihw-global-text-color, #000);
  }

  p {
    margin: 0;
    line-height: 1.45;
  }

  form {
    margin: 0;
  }
}

.vanwpallin-inhoud {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 40px;
  border-top: 8px solid var(--sihw-global-sihw-lichtoranje);
}

/* Het logo (het figuurtje van Website All-In) links naast de titel. Het plaatje heeft veel witruimte rond het
   figuurtje; de negatieve marges vangen die op, zodat het figuurtje links gelijk staat met de tekst eronder. */
.vanwpallin-kop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vanwpallin .vanwpallin-logo {
  flex: none;
  width: auto;
  height: 100px;
  margin: -22px 0 -22px -20px;
}

/* Met .vanwpallin ervoor, want de skin van het thema geeft button, button:hover en button:focus een oranje achtergrond
   en zwarte tekst */
.vanwpallin .vanwpallin-knop {
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding: 12px 28px;
  border: none;
  border-radius: 100px;
  font-family: var(--sihw-global-button-font-family, sans-serif);
  font-weight: var(--sihw-global-button-font-weight, 700);
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: all .5s;

  &, &:hover, &:focus, &:active {
    background-color: var(--sihw-global-button-background, var(--sihw-global-sihw-donkergroen));
    color: #fff;
    border: none;
  }

  &:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--sihw-global-sihw-lichtgroen);
    transition: all .5s;
    border-radius: 10rem;
    z-index: -1;
  }

  &:hover:before,
  &:focus-visible:before {
    width: 100%;
  }

  &:focus-visible {
    outline: 3px solid var(--sihw-global-sihw-lichtoranje);
    outline-offset: 3px;
  }
}

@media (max-width: 600px) {
  .vanwpallin-inhoud {
    padding: 30px 20px;
  }

  .vanwpallin h2 {
    font-size: 24px;
  }

  .vanwpallin .vanwpallin-logo {
    height: 76px;
    margin: -16px 0 -16px -15px;
  }
}

@keyframes vanwpallin-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vanwpallin[open] {
    animation: none;
  }

  .vanwpallin .vanwpallin-knop,
  .vanwpallin .vanwpallin-knop:before {
    transition: none;
  }
}
