h1,
h2,
h3,
h4 {
  font-family: 'P22Mackinac', sans-serif;
  letter-spacing: -0.48px;
  -webkit-font-smoothing: auto !important;
}

textarea:focus,
input:focus,
button:focus {
  outline: none;
}

.buttonHover:hover {
  border-right-width: 8px;
  border-bottom-width: 8px;
}

.ord-shadow {
  filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.1));
}

.highlight {
  background-color: #ffef797d;
}

/* Grow */
.hvr-grow {
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.2s;
  transition-duration: 0.2s;
  -webkit-transition-property: transform;
  transition-property: transform;
}
.hvr-grow:hover,
.hvr-grow:focus,
.hvr-grow:active {
  -webkit-transform: scale(1.02);
  transform: scale(1.02);
}

/* Rotate */
.hvr-rotate {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: transform;
  transition-property: transform;
}
.hvr-rotate:hover,
.hvr-rotate:focus,
.hvr-rotate:active {
  -webkit-transform: rotate(-32deg);
  transform: rotate(-32deg);
}

/* CSS TOAST */
#simpleToast {
  visibility: hidden;
  min-width: 300px;
  color: #202020;
  text-align: center;
  padding: 20px 26px;
  position: fixed;
  z-index: 99;
  right: 30px;
  bottom: 30px;
  line-height: 12px;
  border-radius: 12px;
  font-size: 1.2rem;
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
#simpleToast span {
  margin-left: 12px;
  margin-top: 2px;
}

#simpleToast.show {
  visibility: visible;
  -webkit-animation:
    fadein 0.5s,
    fadeout 0.5s 2.5s;
  animation:
    fadein 0.5s,
    fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

.shimmer {
  color: grey;
  -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) right/300% 100%;
  background-repeat: no-repeat;
  animation: shimmer 2.5s infinite;
  font-size: 50px;
}

@keyframes shimmer {
  100% {
    -webkit-mask-position: left;
  }
}

/* Insertion suggestions (inline and block) */
[data-suggestion-type='insert'] {
  color: #2b6cb0;
  background: rgba(59, 130, 246, 0.04);
  border-bottom: 2px solid rgba(59, 130, 246, 0.15);
  padding-bottom: 1px;
  padding-inline: 2px;
  text-decoration: none;
}

.dark [data-suggestion-type='insert'] {
  color: #5b9dd9;
  background: rgba(59, 130, 246, 0.07);
  border-bottom-color: rgba(59, 130, 246, 0.2);
}

/* Specific styling for block insertions (tables, lists) */
:is(.tableWrapper, table, ul, ol)[data-suggestion-type='insert'] {
  border-bottom: none; /* Reset inline style */
  outline: 2px solid rgba(59, 130, 246, 0.15);
  background-color: rgba(59, 130, 246, 0.04);
}

.dark :is(.tableWrapper, table, ul, ol)[data-suggestion-type='insert'] {
  outline-color: rgba(59, 130, 246, 0.2);
  background-color: rgba(59, 130, 246, 0.07);
}

/* Deletion suggestions */
del {
  background-color: rgba(239, 68, 68, 0.2); /* red-500 with opacity */
  text-decoration: line-through;
  text-decoration-color: rgb(239, 68, 68); /* red-500 */
  text-decoration-thickness: 2px;
  border-radius: 0.125rem;
}
