@tailwind base;
@tailwind components;
@import "../node_modules/nprogress/nprogress.css";

// This is because Tailwind adds a weird white box for Phoenix's LiveReload iframe.
[hidden] {
  display: none !important;
}

.phx-no-feedback.invalid-feedback,
.phx-no-feedback .invalid-feedback {
  display: none;
  color: red;
}

.phx-click-loading {
  opacity: 0.5;
  transition: opacity 1s ease-out;
}

.phx-disconnected {
  cursor: wait;
}
.phx-disconnected * {
  pointer-events: none;
}

.phx-modal {
  opacity: 1 !important;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  padding: 20px;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.phx-modal-content {
  @apply rounded bg-gray-100 max-w-4xl p-8 mx-auto my-8 shadow-md;
}

@screen lg {
  .phx-modal-content {
    @apply p-20;
  }
}

.phx-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.phx-modal-close:hover,
.phx-modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

@tailwind utilities;
