@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

@import './_fonts.css';
@import './select-tag.css';
@import './select-table.css';
@import './select-tag-overlay.css';
@import './google-map.css';
@import './mui.css';
@import './react-table.css';

@layer components {
  .cmp-circle {
    @apply flex w-8 h-8 items-center justify-center rounded-full;
  }

  .cmp-togglebutton {
    @apply flex items-center bg-haze rounded hover:bg-EBEEF0;
  }

  .cmp-togglebutton-pushed {
    @apply flex items-center bg-E5F7FB rounded hover:bg-D3F4FB;
  }

  .fub-switch {
    margin-left: 1rem;
    margin-top: 0.3rem;
    height: 0.875rem;
    width: 2rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #CCCCCC;

    border-radius: 0.4375rem;
  }

  .fub-switch::before {
    position: absolute;
    height: 0.875rem;
    width: 0.875rem;
    border-radius: 50%;
    background-color: transparent;
    content: '';
  }

  .fub-switch::after {
    position: absolute;
    z-index: 2;
    margin-top: -0.05rem;
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    border: none;
    background-color: black;
    box-shadow: 0 0px 3px 0 rgb(0 0 0 / 7%), 0 2px 2px 0 rgb(0 0 0 / 4%);
    transition: background-color 0.2s, transform 0.2s;
    content: '';
  }

  .fub-switch:checked {
    background-color: #CCCCCC;
  }

  .fub-switch:checked::after {
    position: absolute;
    z-index: 2;
    margin-top: -0.05;
    margin-left: 1.0625rem;
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    border: none;
    background-color: rgb(18 132 237);
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s, transform 0.2s;
    content: '';
  }

  .fub-switch:hover {
    cursor: pointer;
  }
  
}

@layer utilities {
  .icon-gray {
    @apply text-roman-silver hover:text-space-cadet;
  }

  .group-icon-gray {
    @apply text-roman-silver group-hover:text-space-cadet;
  }

  .icon-gray-light {
    @apply text-icon-gray-light hover:text-icon-gray-dim;
  }

  .group-icon-gray-light {
    @apply text-icon-gray-light group-hover:text-icon-gray-dim;
  }

  .icon-dodger-blue {
    @apply text-roman-silver hover:text-dodger-blue;
  }

  .group-icon-dodger-blue {
    @apply text-roman-silver group-hover:text-dodger-blue;
  }
}

html {
  font-size: 16px;
}

body {
  @apply font-sans;
}

*:focus {
  outline-width: 0px !important;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.form-multiselect:focus {
  box-shadow: none !important;
}

label,
button,
input[type='checkbox'],
input[type='radio'] {
  @apply cursor-pointer;
}

input:disabled {
  opacity: 0.4;
}

.firebase-emulator-warning {
  display: none !important;
}

.ReactModal__Overlay {
  z-index: 9999 !important;
  background-color: rgba(0, 0, 0, 0.384) !important;
  transition: 1s ease;
}

.CommentsAnimation {
  position: absolute !important;
  opacity: 1 !important;
  transition: all 300ms ease !important;
  animation: animationComments 300ms ease !important ;
}

@keyframes animationComments {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ReactModal__Content {
  opacity: 1;
  transition: all 500ms ease;
  animation: opacity 500ms ease;
}

@keyframes opacity {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.table-width {
  width: 400px;
}

select:focus {
  outline: none;
}

.wmodal {
  width: 500px;
  transition: 300s;
  animation: right-to-left 300ms ease;
}

@keyframes right-to-left {
  from {
    transform: translateX(200%);
  }
  to {
    transform: translateX(0%);
  }
}

.hcontent {
  height: fit-content;
}

table {
  border-collapse: separate !important;
}

.z-full {
  z-index: 99999;
}

.dropdown-years {
  z-index: 99999;
}
.transitionZ * {
  transition: all 300ms ease;
}
td * {
  transition: all 300ms ease;
}

/* .MuiTableHead-root .MuiTableRow-root .MuiTableCell-head {
  font-weight: bold;
  resize: horizontal;
  overflow-x: overlay;
  overflow-y: hidden;
  border-right: 1px solid;
}  */

.tableAnimation {
  transition: all 300ms ease-in-out;
}

.extra-small {
  font-size: 0.5rem;
}

label {
  display: block;
}

/* .MuiTableHead-root .MuiTableRow-root .MuiTableCell-head {
  resize: horizontal!important;
  overflow-x: overlay!important;
  overflow-y: hidden!important;
}
 */
td {
  /*   overflow: hidden!important;  */
}
.bottom-to-top {
  transition: all 300ms ease;
  animation: bottom-to-top 500ms ease;
}
@keyframes bottom-to-top {
  from {
    transform: translateY(200%);
  }
  to {
    transform: translateY(-0%);
  }
}
.top-to-bottom {
  transition: all 300ms ease;
  animation: top-to-bottom 500ms ease;
}
@keyframes top-to-bottom {
  from {
    transform: translateY(-0%);
  }
  to {
    transform: translateY(200%);
  }
}

.gmnoprint.gm-bundled-control.gm-bundled-control-on-bottom {
  background-color: red !important;
  bottom: 85px !important;
}

.pac-container {
  width: 19.8rem !important;
  margin-left: -3.4rem !important;
  margin-top: 0.5rem !important;
}

.spinner {
  @apply animate-spin border-roman-silver border-2;
  width: 24px;
  height: 24px;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
}


.spinner-small {
  @apply animate-spin border-roman-silver border-2;
  width: 16px;
  height: 16px;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
}


@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
