@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {

  /**** /fonts/Lato/* ****/
  @font-face {
    font-family: 'Lato';
    src: url("/assets/Lato/Lato-Regular-9aa11ab1.ttf");
  }

  @font-face {
    font-family: 'Lato';
    font-style: italic;
    src: url("/assets/Lato/Lato-Italic-510e375d.ttf");
  }

  @font-face {
    font-family: 'Lato';
    font-weight: 700;
    src: url("/assets/Lato/Lato-Bold-e1bc8ac3.ttf");
  }

  @font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 700;
    src: url("/assets/Lato/Lato-BoldItalic-04aec27d.ttf");
  }

  /**** /fonts/Lato Hairline/* ****/
  @font-face {
    font-family: 'Lato';
    font-weight: 100;
    src: url('Lato Hairline/Lato-Hairline.ttf');
  }

  @font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 100;
    src: url('Lato Hairline/Lato-HairlineItalic.ttf');
  }


  /**** /fonts/Lato Black/* ****/
  @font-face {
    font-family: 'Lato';
    font-weight: 900;
    src: url('Lato Black/Lato-Black.ttf');
  }

  @font-face {
    font-family: 'Lato';
    font-weight: 900;
    font-style: italic;
    src: url('Lato Black/Lato-BlackItalic.ttf');
  }

  /**** /fonts/Lato Light/* ****/
  @font-face {
    font-family: 'Lato';
    font-weight: 300;
    src: url('Lato Light/Lato-Light.ttf');
  }

  @font-face {
    font-family: 'Lato';
    font-weight: 300;
    font-style: italic;
    src: url('Lato Light/Lato-LightItalic.ttf');
  }

  /**** /fonts/Montserrat-Black.ttf ****/
  @font-face {
    font-family: 'Montserrat';
    font-weight: 800;
    src: url("/assets/Montserrat-Black-7e13da53.ttf");
  }

}

html {
  @apply font-lato;
}

h1 {
  font-family: 'Montserrat';
  font-weight: 800;
  font-size: 2.2em;
  @apply text-primary;
}

h2 {
  font-family: 'Montserrat';
  font-weight: 600;
  font-size: 1.6em;
  @apply text-primary;
}


form.button_to {
  @apply inline-block;
}

.backdrop {
  @apply bg-secondary rounded-2xl p-4;
}

.backdrop-item {
 @apply bg-neutral rounded-2xl;
}


.brands-list li {
  display: inline;
  @apply ml-1 mr-1;
}

.level-down {
  @apply my-4 p-4 bg-white/20 rounded-lg shadow;
}

.level-down-highlight {
  @apply my-4 p-4 bg-white/50 rounded-lg shadow;
}

#error_explanation {
  @apply bg-neutral rounded-lg shadow p-8 m-8;
  border: 3px solid red;
}

.field_with_errors {
  @apply p-1;
  border: 3px solid red;
}

.field_with_errors .field_with_errors {
  border: 0;
}

.pagination {
  @apply text-center my-4;
  a {
    @apply btn btn-primary btn-xs;
  }
  .current {
    @apply btn btn-xs;
  }
}

.field {
  @apply mt-2;
}

.collapse-title,
.collapse-content {
  padding-left: 0;
  padding-right: 0;
}