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

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
  --screen-width: 1366px;
}

* {
  font-family: 'Outfit', sans-serif;
}

#review__sliderEl .slick-track {
  display: flex;
  justify-content: center;
}

.speech-bubble {
  background-color: #e6f7ff; /* light blue */
  border: 1px solid #0070f3; /* blue border */
  border-bottom-width: 3px;
  border-radius: 16px;
  padding: 20px;
  width: 300px;
  position: relative;
  font-family: sans-serif;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Tail at bottom-right */
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 20px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: #e6f7ff;
  border-bottom: 0;
  margin-left: -10px;
  z-index: 1;
}

/* Border for the tail */
.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -12px;
  right: 19px;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  border-top-color: #0070f3;
  border-bottom: 0;
  margin-left: -12px;
  z-index: 0;
}

.custom__select {
  /* Remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Custom padding for the arrow area */
  /* padding-right: 32px; Space for custom arrow */

  /* Custom arrow (using background image) */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center; /* Adjust 10px for horizontal position */
  background-size: 16px;
}

.scrollable-no-bar {
  overflow: auto; /* Enables scrolling */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

/* Hide scrollbar for Chrome/Safari */
.scrollable-no-bar::-webkit-scrollbar {
  display: none;
}

.error__msg {
  box-shadow: 0 0 0 2px #fb7185; /* ring-2 ring-rose-400 */
  outline: none;
}

.error__msg:focus-visible {
  border-color: #fb7185; /* focus-visible:border-ring */
  box-shadow: 0 0 0 2px #fb7185; /* focus-visible:ring-rose-400 */
}

/* Hide arrows in Chrome, Safari, Edge, Opera */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

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

@media (max-width: 1199px) {
  /* the slides */
  #review__sliderEl .slick-slide {
    margin: 0 20px;
  }

  /* the parent */
  #review__sliderEl .slick-list {
    margin: 0 -20px;
  }
}
