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

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/
.p-1-rem {
  padding: 1rem;
}

.logo-image {
  height: 2rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.favorite-confetti-burst {
  position: fixed;
  z-index: 120;
  width: 0;
  height: 0;
  pointer-events: none;
}

.favorite-filled-button {
  color: #db2777 !important;
}

.favorite-confetti-piece {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 10px;
  border-radius: 2px;
  background: var(--confetti-color);
  opacity: 0;
  animation: favorite-confetti-burst 820ms cubic-bezier(0.16, 0.7, 0.32, 1) var(--confetti-delay) both;
}

@keyframes favorite-confetti-burst {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.35);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--confetti-x), var(--confetti-y)) rotate(var(--confetti-rotation)) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .favorite-confetti-piece {
    animation: none;
  }
}
/* // https://codepen.io/danishlaeeq/pen/OJvGmaY */

.range-slider {
  margin: 20px 0;
  width: 100%;
}
.range-slider .slider {
  height: 5px;
  position: relative;
  background: #ddd;
  border-radius: 5px;
}
.range-slider .slider .progress {
  height: 100%;
  left: 0%;
  right: 0%;
  position: absolute;
  border-radius: 5px;
  background: #1cb817;
}
.range-slider .range-input {
  position: relative;
}
.range-slider .range-input input {
  position: absolute;
  width: 100%;
  height: 5px;
  top: -5px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
  height: 17px;
  width: 17px;
  border-radius: 50%;
  background: #1cb817;
  pointer-events: auto;
  -webkit-appearance: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}
.range-slider input[type="range"]::-moz-range-thumb {
  height: 17px;
  width: 17px;
  border: none;
  border-radius: 50%;
  background: #1cb817;
  pointer-events: auto;
  -moz-appearance: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}
/* Distinct marker for the candidate venue on the admin review map. */
.candidate-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.videoWrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  padding-top: 25px;
  width: 100%;
}

.videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.vh-75 {
  height: 75vh;
}

.highlight-venue {
  background-color: yellow !important;
  border: 6px solid black !important;
}

.venue-link-block a {
  text-decoration: none;
}

.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 80%;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}



.backdrop {
  background-color: rgba(0,0,0,0.5);
}

.venue-map {
  width: 100% !important;
  height: 75vh;
}

.venue-show-map {
  height: 16rem;
}

.venue-show-map-wide {
  height: 22rem;
}

.venue-show-map-feature {
  height: 100%;
  min-height: 23rem;
}

@media (min-width: 1024px) {
  .venue-show-map-fill {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
}

.venue-show-favorite form {
  margin: 0;
}

.venue-show-favorite a,
.venue-show-favorite input[type="submit"] {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 1.25rem;
  line-height: 1;
}

.venue-show-description p {
  margin-bottom: 1rem;
  color: rgb(87 83 78);
  font-size: inherit;
}

.venue-show-description p:last-child {
  margin-bottom: 0;
}

.venue-show-description ul,
.venue-show-description ol {
  margin: 0 0 1rem 1.25rem;
}

.venue-show-description ul {
  list-style: disc;
}

.venue-show-description ol {
  list-style: decimal;
}

.venue-map-fullscreen-fallback {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100;
  width: 100vw !important;
  height: 100vh !important;
}

.venue-map-fullscreen-fallback .venue-show-map,
[data-geocode-address-target="mapContainer"]:fullscreen,
:fullscreen .venue-show-map {
  width: 100% !important;
  height: 100% !important;
}

.venue-modal-container {
  width: 90vw;
  max-width: 500px;
}

@media (min-aspect-ratio: 1/1) {
  .venue-modal-container {
    width: calc(45vh * 16 / 9);
    max-width: 90vw;
  }
}

.venue-modal-inner {
  max-height: 85vh;
  overflow-y: auto;
}

.venue-modal-video {
  width: 100%;
}

.venue-modal-video .videoWrapper {
  padding-bottom: 56.25%;
  padding-top: 0;
}

.venue-modal-map {
  height: 16rem;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
