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

@media print {
  @page {
    margin: 8mm;
  }
}

@keyframes flashIn {
  from {
    background-color: #fef3c7;
    /* amber-100 */
  }

  to {
    background-color: transparent;
  }
}

.flash-in {
  animation: flashIn 2s ease-out;
}



@font-face {
  font-family: 'BoomStencil';
  src: url(/fonts/BOOMStencilV2.otf) format('opentype'),
    /* IE6-IE8 */
}

@font-face {
  font-family: 'Futura';
  src: url('/fonts/Futura Medium.otf') format('opentype'),
    /* IE6-IE8 */
}


@font-face {
  font-family: 'NittiGrotesk';
  src: url(/fonts/NittiGrotesk-ExtraBlack.woff2) format('woff2'),
    url(/fonts/NittiGrotesk-ExtraBlack.woff) format('woff'),
    url(/fonts/NittiGrotesk-ExtraBlack.otf) format('opentype'),
    /* IE6-IE8 */
}

@font-face {
  font-family: 'WorkSansLight';
  src: url(/fonts/WorkSans-Light.woff2) format('woff2'),
    url(/fonts/WorkSans-Light.woff) format('woff'),
    url(/fonts/WorkSans-Light.otf) format('opentype'),
    /* IE6-IE8 */
}

@font-face {
  font-family: 'WorkSansRegular';
  src: url(/fonts/WorkSans-Regular.woff2) format('woff2'),
    url(/fonts/WorkSans-Regular.woff) format('woff'),
    url(/fonts/WorkSans-Regular.otf) format('opentype'),
    /* IE6-IE8 */
}
@font-face {
  font-family: 'RangeSansRegular';
  src: url(/fonts/RangeSans-Regular.woff2) format('woff2'),
    url(/fonts/RangeSans-Regular.woff) format('woff')
    /* IE6-IE8 */
}
@font-face {
  font-family: 'RangeSansBold';
  src: url(/fonts/RangeSans-Bold.woff2) format('woff2'),
    url(/fonts/RangeSans-Bold.woff) format('woff')
    /* IE6-IE8 */
}



@layer components {
  .capacity td {
    /* padding-top: 2px; */
    /* padding-bottom: 2px; */
    /* @apply py-1; */
  }


  .slot--idle {
    @apply bg-green-50 border-2 border-green-500 text-green-700;
  }

  .slot--active {
    @apply bg-yellow-50 border-2 border-yellow-500 text-yellow-700;
  }

  .angled-banner {

    color: white;
    display: inline-block;
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    clip-path: polygon(0% 10%, 100% 10%, 99% 100%, 0.5% 100%);
  }


}


/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}


.my-tooltip:before {
  white-space: pre;
}


.tippy-box[data-animation=fade][data-state=hidden] {
  opacity: 0
}

[data-tippy-root] {
  max-width: calc(100vw - 10px)
}

.tippy-box {
  position: relative;
  background-color: #333;
  color: #fff;
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: normal;
  outline: 0;
  transition-property: transform, visibility, opacity
}

.tippy-box[data-placement^=top]>.tippy-arrow {
  bottom: 0
}

.tippy-box[data-placement^=top]>.tippy-arrow:before {
  bottom: -7px;
  left: 0;
  border-width: 8px 8px 0;
  border-top-color: initial;
  transform-origin: center top
}

.tippy-box[data-placement^=bottom]>.tippy-arrow {
  top: 0
}

.tippy-box[data-placement^=bottom]>.tippy-arrow:before {
  top: -7px;
  left: 0;
  border-width: 0 8px 8px;
  border-bottom-color: initial;
  transform-origin: center bottom
}

.tippy-box[data-placement^=left]>.tippy-arrow {
  right: 0
}

.tippy-box[data-placement^=left]>.tippy-arrow:before {
  border-width: 8px 0 8px 8px;
  border-left-color: initial;
  right: -7px;
  transform-origin: center left
}

.tippy-box[data-placement^=right]>.tippy-arrow {
  left: 0
}

.tippy-box[data-placement^=right]>.tippy-arrow:before {
  left: -7px;
  border-width: 8px 8px 8px 0;
  border-right-color: initial;
  transform-origin: center right
}

.tippy-box[data-inertia][data-state=visible] {
  transition-timing-function: cubic-bezier(.54, 1.5, .38, 1.11)
}

.tippy-arrow {
  width: 16px;
  height: 16px;
  color: #333
}

.tippy-arrow:before {
  content: "";
  position: absolute;
  border-color: transparent;
  border-style: solid
}

.tippy-content {
  position: relative;
  padding: 5px 9px;
  z-index: 1
}


/*  */
/*  */
/*  */
@media print {

  /* Each booking on a new page */
  .booking-summary {
    page-break-after: always;
    break-after: page;
  }

  /* Simplify appearance */
  body {
    background: white !important;
    color: black !important;
  }


  /* Remove screen-only chrome */
  nav,
  .footer,
  .actions {
    display: none !important;
  }

  /* Make it fill the page neatly */
  .container,
  .max-w-4xl,
  .max-w-5xl {
    max-width: 100% !important;
  }

}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
