
@layer utilities {

  :root {
    --font-family-title: "Fjalla One";
    --font-family-paragraph: "Proza Libre";

    --input-height: 3rem;
    --input-border-width: .2rem;

    --primary-color: #008080;
    --secondary-color: #4bff31;
  }



  /* html {
    font-size: 62.5%;
  } */

  html {
    &::before {
      content: "";
      position: fixed;
      inset: 0;
      background: url('../imgs/concrete-bg.jpg') center center / cover no-repeat;
      z-index: -1;
      pointer-events: none;
    }
  }

  body {
    overflow-x: hidden;
    font-family: var(--font-family-paragraph), sans-serif;
    min-height: 100%;
    background: transparent;
  }

  h1 {
    font-family: var(--font-family-title), sans-serif;
    color: white;
  }

  a {
    text-decoration: underline;
  }

  .bg-primary { background-color: var(--primary-color); }
  .text-primary { color: #000; }
  .text-muted { color: #444; }
  .text-muted-foreground { color: #444; }

  .text-primary-foreground { color: #ffffff; }



  .desktop-only {
    display: none;

    @media screen and (min-width: 760px) {
      display: inline;
    }
  }




  .icon-party {
    display: inline-block;
    position: relative;
    margin: -057em 0;
    font-size: 2em;
    text-decoration: none;
  }




  .email,
  .button {
    height: var(--input-height);
    border-radius: 0;
    border: var(--input-border-width) solid var(--primary-color);
    vertical-align: middle;
  }

  .email {
    border-color: #fff;
    text-indent: 10px;

    width: calc(100% - var(--input-height) - var(--input-border-width));

    border-radius: 1.5rem 0 0 1.5rem;
    background: white;

    &:focus {
      outline: none;
      border-color: var(--primary-color);
      border-style: dotted;
    }
  }

  .button {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: var(--input-height);
    margin: 0;
    vertical-align: middle;
    color: white;
    cursor: pointer;
    border-left: 0;
    background-color: var(--primary-color);
    border-radius: 0 1.5rem 1.5rem 0;

    &:focus {
      outline: none;
      border-color: white;
      border-style: dotted;
    }

    .icon {
      font-size: 37px;

      .sending & {
        display: none;
      }
    }
  }


  #mce-error-response,
  div.mce_inline_error {
    color: red;
  }

  #mce-success-response,
  #mce-error-response,
  div.mce_inline_error {
    display: block;
    position: relative;
    margin: .5rem 0 0 2.5rem;
    /* margin: .5rem var(--input-height) 0 0; */

    &::before {
      content: "↳";
      /* margin-right: .5rem; */
      display: block;
      position: absolute;
      left: -1rem;
      top: -.25rem;
    }
  }


  input.mce_inline_error {
    border-color: red;
  }



  .throbber {
    display: none;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;

    width: 18px;
    height: 18px;
    border: 2px solid #FFF;
    border-right-color: transparent;
    border-radius: 50%;

    .sending & {
      display: inline-block;
    }
  }

  @keyframes rotation {
    0% { transform: rotate(0deg);  }
    100% { transform: rotate(360deg);  }
  }



  .language-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 999;
    mix-blend-mode: multiply;

    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 100%;
      background: var(--secondary-color);
      opacity: 65%;

      z-index: 5;
    }

    a {
      display: block;
      width: 32px;
      height: 32px;
      position: relative;
      z-index: 10;
      
      background: url('../imgs/flags.png') no-repeat;
      background-size: 80px 32px;
      margin: 1rem;

      &.nl {
        background-position: -50px 0;
      }
    }
  }


  
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
  }
}
