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

:root {
  --base-500: #a0aec0;
  --base-200: #e2e8f0;
  --base-300: #e2e8f0;
  --base-400: #cbd5e0;
  --main-500: #667eea;
  --main-400: #7f9cf5;
  --main-200: #c3dafe;
  --main-100: #ebf4ff;
  --solid: #fff;
  --solid-900: #4a5568;
  --sidebar-bg: #edf2f7;
  --sidebar-color: #4a5568;
  --shadow: 0 10px 15px -3px rgba(36, 69, 101, 0.19), 0 4px 6px -2px rgb(208, 220, 232);
  --shadow-active: 0 0 0 2px currentColor, 0 10px 15px -3px rgba(36, 69, 101, 0.19), 0 4px 6px -2px rgb(208, 220, 232);
  --opener: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h18M3 6h18M3 18h18'/%3E%3C/svg%3E");
  --opener-active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round' class='css-i6dzq1' viewBox='0 0 24 24'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E");
}

.ace_editor {
  z-index: 0;
}
/* #editor {
    width: 100%;
    height: 100%;
  } */
/* 
#uploads_iframe {
  position: relative;
} */

#preview_iframe {
  /* -webkit-animation: slide-in-up 600ms cubic-bezier(0, 0, 0.2, 1); */
  /* animation: slide-in-up 600ms cubic-bezier(0, 0, 0.2, 1); */
  transition: 400ms cubic-bezier(0, 0, 0.2, 1);
}

.preview_desktop {
  min-width: 1400px;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  margin: 0 auto;
  /* position: absolute; */
}

.hover-trigger .hover-target {
  display: none;
}

.hover-trigger:hover .hover-target {
  display: block;
}

.hover-trigger:hover .hover-target-hide {
  display: none;
}

/* [disabled] {
  opacity: 50%;
  cursor: not-allowed;
} */

.preview_mobile {
  /* -webkit-animation: slide-in-up 600ms cubic-bezier(0, 0, 0.2, 1); */
  /* animation: slide-in-up 600ms cubic-bezier(0, 0, 0.2, 1); */
  transition: 400ms cubic-bezier(0, 0, 0.2, 1);
  z-index: 1;
  overflow: hidden;
  background-image: url("https://preview.couchyou.com/images/iphone.png");
  background-repeat: no-repeat;
  background-size: cover;
  width: 430px;
  height: 845px;
  margin: 0 auto;
  /* position: absolute; */
}

.preview_mobile #preview_iframe {
  width: 374px;
  height: 760px;
  margin-left: 28px;
  margin-right: auto;
  margin-top: 50px;
  border-radius: 16px 0 38px 38px;
  position: absolute;
  z-index: -1;
  padding: 5px;
}

.tippy-tooltip.custom-theme {
  font-size: 14px;
  padding: 1px;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}
.spinner,
.spinner:before {
  width: 30px;
  height: 30px;
  box-sizing: border-box;
}

.spinner:before {
  content: "";
  display: block;
  border-radius: 50%;
  border: 2px solid #ccc;
  border-top-color: #333;
  animation: spinner 0.6s linear infinite;
}

/* Animations */

.spinner-add,
.spinner-remove {
  animation-fill-mode: both;
  animation-duration: 0.4s;
}

.spinner-add {
  animation-name: spinner-add;
}

@keyframes spinner-add {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.spinner-remove {
  animation-name: spinner-remove;
}

@keyframes spinner-remove {
  to {
    transform: scale(0);
  }
}

/* .hidden {
  display: none !important;
} */

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

[disabled] {
  opacity: 50%;
}

.hide-scroll ::-webkit-scrollbar {
  display: none;
}
