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

/* html,
body,
:root {
  height: 100%;
} */

:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 214, 219, 220;
  --background-end-rgb: 255, 255, 255;
}

@media (prefers-color-scheme: dark) {
  :root {
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 0, 0, 0;
    --background-end-rgb: 0, 0, 0;
  }
}

body {
  color: rgb(var(--foreground-rgb));

  @apply !bg-lighterGrey md:!bg-white;
}

.newtons-cradle {
  --uib-size: 50px;
  --uib-speed: 1.2s;
  --uib-color: #474554;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--uib-size);
  height: var(--uib-size);
}

.newtons-cradle__dot {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  width: 25%;
  transform-origin: center top;
}

.newtons-cradle__dot::after {
  content: "";
  display: block;
  width: 100%;
  height: 25%;
  border-radius: 50%;
  background-color: var(--uib-color);
}

.newtons-cradle__dot:first-child {
  animation: swing var(--uib-speed) linear infinite;
}

.newtons-cradle__dot:last-child {
  animation: swing2 var(--uib-speed) linear infinite;
}

@keyframes swing {
  0% {
    transform: rotate(0deg);
    animation-timing-function: ease-out;
  }

  25% {
    transform: rotate(70deg);
    animation-timing-function: ease-in;
  }

  50% {
    transform: rotate(0deg);
    animation-timing-function: linear;
  }
}

@keyframes swing2 {
  0% {
    transform: rotate(0deg);
    animation-timing-function: linear;
  }

  50% {
    transform: rotate(0deg);
    animation-timing-function: ease-out;
  }

  75% {
    transform: rotate(-70deg);
    animation-timing-function: ease-in;
  }
}

/* gallery comman style */
.expert-listing .react-photo-album,
.expert-gallery .react-photo-album {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
}

.expert-listing .react-photo-album .react-photo-album--row img,
.expert-gallery .react-photo-album .react-photo-album--row img {
  width: 64px !important;
  height: 64px !important;
  border-radius: 4px;
  object-fit: cover;
}
.expert-listing .react-photo-album .react-photo-album--row,
.expert-gallery .react-photo-album .react-photo-album--row {
  justify-content: flex-start !important;
  gap: 9.1px;
  flex-direction: row !important;
}
.expert-listing .react-photo-album.react-photo-album--rows,
.expert-gallery .react-photo-album.react-photo-album--rows {
  flex-direction: row !important;
  justify-content: flex-start !important;
}
.expert-listing .react-photo-album .react-photo-album--row > div,
.expert-gallery .react-photo-album .react-photo-album--row > div {
  width: 64px !important;
  height: 64px !important;
  border-radius: 4px;
}
.expert-listing .react-photo-album.react-photo-album--rows,
.expert-gallery .react-photo-album.react-photo-album--rows {
  overflow-x: auto;
}
.home-filter .home-grid input {
  box-shadow: 0px 0px 12.263px 0px rgba(0, 0, 0, 0.15);
}
.home-filter .home-grid input:focus {
  border: 1px solid #00000030 !important;
  box-shadow: 0px 0px 12.263px 0px rgba(0, 0, 0, 0.15) !important;
}
.home-filter {
  margin: 0;
  margin-top: 39px !important;
}
.bg-lightersuccess {
  background-color: #93c197 !important;
}
.bg-lightsuccess {
  background-color: #8cca93 !important;
}

@media screen and (max-width: 360px) {
  .sm-mobile-flex div > a {
    font-size: 10px;
  }
  .main-flex-wrap .sm-mobile-flex {
    align-items: flex-start;
  }
  .main-flex-wrap .button-wrap-area {
    margin-top: 0px;
  }
  .main-flex-wrap .flex-content-area {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-direction: column;
  }
  .mobile-wrap {
    align-items: flex-end;
  }
  .mobile-wrap .flex-top-area span {
    font-size: 12px !important;
  }
  .mobile-wrap .flex-right-wrap {
    text-align: left;
  }
  .main-flex-wrap .button-flex-area {
    padding: 4px;
    height: 20px;
  }
  .main-flex-wrap .button-flex-area span {
    font-size: 8px !important;
  }
  .flex-top-area {
    margin-top: 0;
  }
  .flex-right-wrap {
    margin-top: 0;
  }
  .flex-right-wrap span:first-child {
    font-size: 16px;
  }
  .flex-right-wrap span:nth-child(2) {
    font-size: 11px;
  }
  .mobile-wrap .star-rate {
    margin-top: 0;
  }
  .mobile-wrap .star-rate {
    margin-bottom: 7px;
  }

  .radio-cards input[type="radio"] + label span {
    transition: background 0.2s, transform 0.2s;
  }
  .radio-cards input[type="radio"]:checked + label span {
    background-color: white;
    box-shadow: inset 0px 0px 0px 5px #fdc006;
    border: 1px solid #fdc006;
  }
  .radio-cards input[type="radio"]:checked + label {
    color: #fdc006;
  }
  .rating-block svg {
    margin: 0 auto;
  }
}

@media screen and (max-width: 390px) {
  .sm-mobile-flex div > a {
    font-size: 11.5px;
  }
  .main-flex-wrap .sm-mobile-flex {
    align-items: flex-start;
  }
  .main-flex-wrap .button-wrap-area {
    margin-top: 0px;
  }
  .main-flex-wrap .flex-content-area {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-direction: column;
  }
  .mobile-wrap {
    align-items: flex-end;
  }
  .mobile-wrap .flex-top-area span {
    font-size: 13.8px !important;
  }
  .mobile-wrap .flex-right-wrap {
    text-align: left;
  }
  .main-flex-wrap .button-flex-area {
    padding: 4px;
    height: 20px;
  }
  .main-flex-wrap .button-flex-area span {
    font-size: 60% !important;
  }
  .flex-top-area {
    margin-top: 0;
  }
  .flex-right-wrap {
    margin-top: 0;
  }
  .flex-right-wrap span:first-child {
    font-size: 18px;
  }
  .flex-right-wrap span:nth-child(2) {
    font-size: 12.65px;
  }
  .mobile-wrap .star-rate {
    margin-top: 0;
  }
  .mobile-wrap .star-rate {
    margin-bottom: 7px;
  }

  .radio-cards input[type="radio"] + label span {
    transition: background 0.2s, transform 0.2s;
  }
  .radio-cards input[type="radio"]:checked + label span {
    background-color: white;
    box-shadow: inset 0px 0px 0px 5px #fdc006;
    border: 1px solid #fdc006;
  }
  .radio-cards input[type="radio"]:checked + label {
    color: #fdc006;
  }
  .rating-block svg {
    margin: 0 auto;
  }
}

@media screen and (max-width: 991px) {
  .sm-mobile-flex div > a {
    font-size: 16px;
  }
  .placeholder-text-mobile::placeholder {
    font-size: 12px;
  }
}

@media screen and (min-width: 992px) {
  .left-content,
  .right-content {
    overflow-y: auto;
    height: 100vh;
    padding: 0 25px 25px 25px;
  }
  .sticky {
    position: sticky;
    top: 0;
  }
  .left-content::-webkit-scrollbar-track,
  .right-content::-webkit-scrollbar-track {
    background-color: #f5f5f5;
  }

  .left-content::-webkit-scrollbar,
  .right-content::-webkit-scrollbar {
    width: 0px;
    background-color: #f5f5f5;
  }

  .left-content::-webkit-scrollbar-thumb,
  .right-content::-webkit-scrollbar-thumb {
    background-color: #c4c4c4;
    border: 0px solid transparent;
  }
  .right-content > div {
    @apply !bg-transparent;
  }
}
@media screen and (max-width: 1320px) {
  .screen-width {
    @apply !w-[371px] !left-6;
  }
}
@media screen and (max-width: 1280px) {
  .screen-width {
    @apply !w-[413px] !left-[25px];
  }
}
@media screen and (max-width: 1240px) {
  .screen-width {
    @apply !w-[429px] !left-[25px];
  }
}
@media screen and (max-width: 1200px) {
  .screen-width {
    @apply !w-[413px] left-[25px];
  }
}
@media screen and (max-width: 1180px) {
  .screen-width {
    @apply !w-[405px] left-[25px];
  }
}
@media screen and (max-width: 1141px) {
  .screen-width {
    @apply !w-[369px] left-[25px];
  }
}
@media screen and (max-width: 1081px) {
  .screen-width {
    @apply !w-[365px] left-[25px];
  }
}
@media screen and (max-width: 1024px) {
  .screen-width {
    @apply !w-[343px] left-[25px];
  }
}

@media screen and (min-width: 768px) {
  .scroll1 {
    @apply md:!h-screen md:overflow-y-auto;
  }
  .scroll1::-webkit-scrollbar-track {
    @apply rounded-2xl !bg-[#f5f5f5];
  }

  .scroll1::-webkit-scrollbar {
    @apply !w-1.5 !bg-[#f5f5f5];
  }

  .scroll1::-webkit-scrollbar-thumb {
    @apply !rounded-2xl !bg-[#bababa];
  }
  .main-flex-wrap .flex-text-area {
    margin-bottom: 0;
    line-height: initial;
    word-break: break-all;
    max-width: 100%;
    text-align: center;
  }
  .main-flex-wrap .flex-text-area p {
    line-height: initial;
    word-break: break-all;
    max-width: 100%;
    font-size: 14px;
    margin-bottom: 3px;
  }
}

.expert-listing
  .react-photo-album.react-photo-album--rows::-webkit-scrollbar-track,
.expert-gallery
  .react-photo-album.react-photo-album--rows::-webkit-scrollbar-track {
  @apply rounded-2xl !bg-[#f5f5f5];
}

.expert-listing .react-photo-album.react-photo-album--rows::-webkit-scrollbar,
.expert-gallery .react-photo-album.react-photo-album--rows::-webkit-scrollbar {
  @apply !h-1.5 !bg-[#f5f5f5];
}

.expert-listing
  .react-photo-album.react-photo-album--rows::-webkit-scrollbar-thumb,
.expert-gallery
  .react-photo-album.react-photo-album--rows::-webkit-scrollbar-thumb {
  @apply !rounded-2xl !bg-[#bababa];
}
._gmkRL {
  display: flex !important;
}
.pac-container {
  z-index: 999999 !important;
}
.sticky-export-button {
  text-align: left;
}
