@layer theme {
  :root,
  :host {
    --color-dark-blue: rgb(27, 44, 69);
  }
}

@layer utilities {
  .bg-dark-blue {
    background: var(--color-dark-blue);
  }

  .app-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .inner-grid {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    flex: 1;
    flex-wrap: wrap;
  }

  .img-fit {
    max-height: 200px;
  }

  .col1 {
    flex: 0.4;
    min-width: 320px;
  }

  .col2 {
    flex: 0.4;
    min-width: 320px;
  }

  .col3 {
    flex: 0.2;
  }

  @media (min-width: 736px) and (max-width: 1000px) {
    .col1 {
      flex: 0.5;
    }
    .col2 {
      flex: 0.5;
    }
    .col3 {
      flex: 1;
      min-width: 100%;
    }
  }

  @media (max-width: 735px) {
    .col1 {
      flex: 1;
      min-width: 100%;
    }
    .col2 {
      flex: 1;
      min-width: 100%;
    }
    .col3 {
      flex: 1;
      min-width: 100%;
    }
  }

  .column {
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  @media (min-width: 1000px) {
    .card .btn-webcam {
      font-size: 1.25rem;
    }
  }

  .card {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem;
    border-radius: 1rem;
    box-shadow: 0px 0px 0px 12px rgba(73, 109, 149, 0.3),
      0px 0px 0px 8px rgba(255, 255, 255, 0.2);
    width: 100%;
    height: 100%;
    min-height: 400px;
  }

  .card-adjust {
    height: fit-content !important;
    min-height: 400px !important;
  }

  .card-title {
    font-size: 1.25rem;
    color: black;
  }

  @media (min-width: 1001px) and (max-width: 1439px) {
    .card-title {
      font-size: 1.5rem;
    }
  }

  @media (min-width: 1440px) {
    .card-title {
      font-size: 1.75rem;
    }
  }

  .card .btn-webcam {
    padding: 0.5rem 1rem;
    background: rgb(27, 44, 69);
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 10px;
    font-weight: 100;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .card .btn-webcam:hover {
    background: #304e7a;
  }

  canvas {
    border-radius: 1rem;
  }

  .summary-height-adjust {
    max-height: 200px;
  }

  @keyframes popIn {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    60% {
      transform: scale(1.1);
      opacity: 1;
    }
    100% {
      transform: scale(1);
    }
  }

  .pop-animation {
    animation: popIn 0.4s ease-out;
  }

  @keyframes shake-animation {
    0%,
    100% {
      transform: translateX(0);
    }
    25% {
      transform: translateX(-5px);
    }
    50% {
      transform: translateX(5px);
    }
    75% {
      transform: translateX(-5px);
    }
  }

  .shake {
    animation: shake-animation 0.4s ease-in-out;
  }

  .tooltip {
    background: black;
    color: white;
    padding: 0.25rem 0.5rem;
    z-index: 1080;
    max-width: 200px;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-align: start;
    letter-spacing: normal;
    word-break: normal;
    white-space: normal;
    word-spacing: normal;
    line-break: auto;
    word-wrap: break-word;
  }

  .tooltip-arrow {
    position: absolute;
    left: 0px;
    bottom: calc(-1 * 0.4rem);
    width: 0.8rem;
    height: 0.4rem;
    background: black;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
  }

  .tooltip-inner {
    max-width: 200px;
    padding: 0.25rem 0.5rem;
    color: white;
    text-align: center;
  }

  /* #region - Footer */
  .footer {
    background: rgb(27, 44, 69);
    color: white;
    padding: 1rem;
    width: 100%;
    position: relative;
  }

  .footer-content {
    text-align: center;
    width: 100%;
  }

  .footer-text {
    font-size: 0.875rem;
    text-align: center;
    color: #ccc;
  }

  .footer-name {
    color: #bb86fc;
  }
  /* #endregion */
}
