@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/WorkSans-Regular.woff2) format('woff2'),
    url(/fonts/WorkSans-Regular.woff) format('woff')
}


@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;
  }

}

.b2b-boom-legacy {
  --boom-legacy-charcoal: #231F20;
  --boom-legacy-pink: #EC008C;
  --boom-legacy-cyan: #00BAC9;
  --boom-legacy-orange: #F5821F;
  --boom-legacy-red: #ED1C24;
  --boom-legacy-yellow: #FDB913;
  --boom-legacy-paper: #F5F3EE;
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(35, 31, 32, .08) 0 1px, transparent 1px 96px),
    linear-gradient(0deg, rgba(35, 31, 32, .06) 0 1px, transparent 1px 72px),
    url(/images/boom/BG-Steel2.avif) center top / cover fixed,
    var(--boom-legacy-paper) !important;
  color: var(--boom-legacy-charcoal);
  font-family: 'WorkSansRegular', 'Futura', sans-serif;
}

.b2b-boom-legacy::after {
  content: "";
  position: fixed;
  right: -9rem;
  bottom: -11rem;
  z-index: 0;
  width: min(38rem, 70vw);
  aspect-ratio: 1;
  background: url(/images/boom/boom-logo-angled.png) center / contain no-repeat;
  opacity: .08;
  pointer-events: none;
}

.b2b-boom-legacy > header,
.b2b-boom-legacy > div,
.b2b-boom-legacy > main {
  position: relative;
  z-index: 1;
}

.b2b-boom-legacy .b2b-legacy-header {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .06) 0 12%, transparent 12% 100%),
    var(--boom-legacy-charcoal) !important;
}

.b2b-boom-legacy .b2b-legacy-header::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: .55rem;
  background:
    linear-gradient(90deg,
      var(--boom-legacy-pink) 0 24%,
      var(--boom-legacy-cyan) 24% 52%,
      var(--boom-legacy-orange) 52% 70%,
      var(--boom-legacy-yellow) 70% 84%,
      var(--boom-legacy-charcoal) 84% 100%);
}

.b2b-boom-legacy .b2b-legacy-header::after {
  content: "";
  position: absolute;
  right: -3rem;
  top: -5rem;
  width: 17rem;
  height: 17rem;
  background: url(/images/boom/boom-logo-angled.png) center / contain no-repeat;
  opacity: .12;
  transform: rotate(-10deg);
}

.b2b-boom-legacy .font-range_sans,
.b2b-boom-legacy .font-range_sans_bold {
  font-family: 'WorkSansRegular', 'Futura', sans-serif !important;
}

.b2b-boom-legacy .font-range_sans_bold {
  font-weight: 900;
}

.b2b-boom-legacy h1,
.b2b-boom-legacy h2,
.b2b-boom-legacy h3 {
  font-family: 'BoomStencil', 'NittiGrotesk', sans-serif !important;
  font-weight: 900;
  letter-spacing: 0;
}

.b2b-boom-legacy main > section {
  position: relative;
}

.b2b-boom-legacy main > section::before {
  content: "";
  position: absolute;
  left: clamp(1rem, 5vw, 4rem);
  top: .35rem;
  z-index: 0;
  width: 8rem;
  height: .9rem;
  background: var(--boom-legacy-cyan);
  box-shadow:
    2.2rem 1rem 0 var(--boom-legacy-pink),
    5.3rem .35rem 0 var(--boom-legacy-orange);
  transform: skewX(-18deg) rotate(-1deg);
  opacity: .95;
}

.b2b-boom-legacy main > section > * {
  position: relative;
  z-index: 1;
}

.b2b-boom-legacy .bg-boomgrey,
.b2b-boom-legacy .bg-zinc-900 {
  background-color: var(--boom-legacy-charcoal) !important;
}

.b2b-boom-legacy .bg-boomcream {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(245, 243, 238, .94)),
    url(/images/boom/brick2.avif) center / cover !important;
}

.b2b-boom-legacy .bg-bpink {
  background-color: var(--boom-legacy-pink) !important;
}

.b2b-boom-legacy .bg-bblue,
.b2b-boom-legacy .bg-bblue2 {
  background-color: var(--boom-legacy-cyan) !important;
}

.b2b-boom-legacy .text-bpink {
  color: var(--boom-legacy-pink) !important;
}

.b2b-boom-legacy .text-bblue,
.b2b-boom-legacy .text-bblue2 {
  color: var(--boom-legacy-cyan) !important;
}

.b2b-boom-legacy .border-bpink,
.b2b-boom-legacy .focus\:border-bpink:focus {
  border-color: var(--boom-legacy-pink) !important;
}

.b2b-boom-legacy .focus\:border-bblue:focus {
  border-color: var(--boom-legacy-cyan) !important;
}

.b2b-boom-legacy .border-zinc-900 {
  border-color: var(--boom-legacy-charcoal) !important;
}

.b2b-boom-legacy article,
.b2b-boom-legacy aside,
.b2b-boom-legacy dialog,
.b2b-boom-legacy form.border-2,
.b2b-boom-legacy .border-x-2.border-b-2 {
  box-shadow: 7px 7px 0 rgba(35, 31, 32, .18);
}

.b2b-boom-legacy article .bg-bblue2,
.b2b-boom-legacy aside .bg-bblue2,
.b2b-boom-legacy dialog .bg-bblue2 {
  color: var(--boom-legacy-charcoal) !important;
}

.b2b-boom-legacy .shadow-\[6px_6px_0_\#ff4da6\] {
  box-shadow: 7px 7px 0 var(--boom-legacy-cyan) !important;
}

.b2b-boom-legacy a.bg-bpink,
.b2b-boom-legacy button.bg-bpink,
.b2b-boom-legacy input[type="submit"].bg-bpink {
  border: 2px solid var(--boom-legacy-charcoal);
  box-shadow: 4px 4px 0 var(--boom-legacy-cyan);
}

.b2b-boom-legacy a.bg-bpink:hover,
.b2b-boom-legacy button.bg-bpink:hover,
.b2b-boom-legacy input[type="submit"].bg-bpink:hover {
  background-color: var(--boom-legacy-charcoal) !important;
  box-shadow: 4px 4px 0 var(--boom-legacy-pink);
}

.b2b-boom-legacy .input,
.b2b-boom-legacy .select,
.b2b-boom-legacy .textarea {
  background-color: rgba(255, 255, 255, .96) !important;
}

@media (max-width: 640px) {
  .b2b-boom-legacy::after {
    right: -8rem;
    bottom: -8rem;
    width: 22rem;
    opacity: .06;
  }

  .b2b-boom-legacy .b2b-legacy-header::after {
    display: none;
  }
}
/*
 * 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.
 *


 */
