@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: "Open Sans", sans-serif;

    @apply text-dark bg-light;
  }
}
.page-container {
  @apply container 2xl:max-w-[1600px] mx-auto lg:px-4 px-2 sm:px-4 md:px-0;
}
.btn-primary--filled {
  @apply bg-blue fill-white text-white flex items-center h-12 px-3 rounded-md gap-2;
}

.mui-wrapper {
  width: 100%;
  position: relative;
}

.mui-input {
  height: 44px;
  font-size: 16px;
  padding: 11px 15px;
  border-radius: 4px;
  border: 1px solid #444444;
  width: 100%;
  outline: none;
  box-sizing: border-box;
  cursor: pointer;
}

.mui-input.large {
  height: 56px;
}

.mui-placeholder {
  pointer-events: none;
  position: absolute;
  font-weight: 400;
  top: 10px;
  left: 8px;
  padding: 0 8px;
  background-color: white;
  border-radius: 5px;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
  color: #444444;
}

.mui-placeholder.large {
  top: 16px;
}

.mui-input:not(:placeholder-shown).mui-input:not(:focus) + .mui-placeholder {
  transform: scale(0.75) translateY(-29px) translateX(-15%);
  color: #444444;
  transition: 0.2s ease;
}

.mui-input.large:not(:placeholder-shown).mui-input.large:not(:focus)
  + .mui-placeholder {
  transform: scale(0.75) translateY(-37px) translateX(-15%);
  color: #444444;
  transition: 0.2s ease;
}

.mui-input:focus {
  border-color: #444444;
}

.mui-input.mui-blue-border:focus {
  border-color: blue;
}

.mui-input:focus + .mui-placeholder {
  transform: scale(0.75) translateY(-29px) translateX(-15%);
  color: #444444;
  transition: 0.2s ease;
}

.mui-input.large:focus + .mui-placeholder {
  transform: scale(0.75) translateY(-37px) translateX(-15%);
  color: #444444;
  transition: 0.2s ease;
}

.mui-wrapper.error .mui-input,
.mui-input:invalid:not(:placeholder-shown) {
  transition: 0.2s ease;
  border-color: #f52c5c !important;
}

.mui-wrapper.error .mui-input + .mui-placeholder,
.mui-input:invalid:not(:placeholder-shown) + .mui-placeholder {
  transition: 0.2s ease;
  color: #f52c5c !important;
}

/* Remove spinner from number input */
.mui-input[type="number"]::-webkit-outer-spin-button,
.mui-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mui-input[type="number"] {
  -moz-appearance: textfield;
}

.animated-menu {
  /* animation-fill-mode: both;
  animation-name: slideInUp-30;
  animation-duration: 0.3s;
  -webkit-animation-duration: 0.3s;
  -webkit-animation-fill-mode: both;
  -webkit-animation-name: slideInUp-30;
  z-index: 50; */
  z-index: 999;
  grid-auto-flow: column;
}

.custom-check-label:has(input[type="radio"]:first-child:checked) {
  @apply bg-blue fill-white text-white border-blue;
}

/* width */
main ::-webkit-scrollbar {
  height: 4px;
  width: 4px;
}

/* Track */
main ::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
main ::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
main ::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.thin-scrollbar::-webkit-scrollbar {
  height: 4px;

  width: 4px;
}

.thin-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.thin-scrollbar::-webkit-scrollbar-thumb {
  background: #888;
}

.thin-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* The container must be positioned relative: */
.custom-select {
  position: relative;
}

.custom-select select {
  display: none; /*hide original SELECT element: */
}

.custom-select {
  @apply text-dark border border-lightGray rounded-md relative z-10;
}

.custom-select:has(.select-arrow-active) {
  @apply border-b-transparent rounded-b-none;
}

.select-selected.select-arrow-active {
  @apply rounded-b-none;
}

/* Style the arrow inside the select element: */
.select-chevron {
  @apply absolute right-2 top-0 bottom-0 my-auto flex items-center z-0;
}

/* style the items (options), including the selected item: */
.select-selected {
  @apply cursor-pointer py-2 pl-3;
}
.select-items div {
  @apply cursor-pointer py-2 px-3  border-t border-lightGray mx-1.5;
}

.select-items div:first-child {
  @apply mx-0 px-4;
}

/* Style items (options): */
.select-items {
  @apply absolute bg-white top-full -left-[1px] right-0 z-[99] border border-lightGray border-t-0 min-w-max;
}

/* Hide the items when the select box is closed: */
.select-hide {
  display: none;
}

.select-items div:hover,
.same-as-selected {
  @apply text-blue font-semibold;
}

/* Tooltip container */
.tooltip {
  position: relative;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;

  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}
.tooltip .tooltiptext {
  width: 120px;
  bottom: 115%;
  left: 50%;
  margin-left: -60px; /* Use half of the width (120/2 = 60), to center the tooltip */
}

@keyframes slideInUp-30 {
  0% {
    -webkit-transform: translate3d(0, 30px, 0);
    transform: translate3d(0, 30px, 0);
    opacity: 0;
    visibility: visible;
  }

  100% {
    -webkit-transform: translate3d(0, 0, 0);
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media screen and (min-width: 768px) {
  .blogs-row > div {
    grid-row: 1;
    grid-column: auto;
  }
}
