/* Entry point for your PostCSS build */

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f8f9fa;
}

.bg-none {
  background: none;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-grab {
  cursor: grab;
}

/* Sortable drag and drop styles */
.sortable-ghost {
  opacity: 0.5;
  background-color: #f8f9fa;
  border: 2px dashed #0d6efd;
}

.sortable-chosen {
  background-color: #e3f2fd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sortable-drag {
  opacity: 0.8;
  transform: rotate(5deg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.playlist-cue {
  transition: all 0.2s ease;
}

.reorder-handle {
  cursor: grab;
  transition: all 0.2s ease;
}

.reorder-handle:hover {
  background-color: rgba(255, 255, 255, 0.8) !important;
  transform: scale(1.05);
}

.reorder-handle:active {
  cursor: grabbing;
}

#new_admin {
  max-width: 400px;
  margin: 0 auto;
  margin-top: 100px;
}

#devices {
  margin-top: 20px;
}

#animation_container {
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

#preview {
  //cursor: pointer;
  transition: all 0.3s ease;
  object-fit: contain;
}

#preview.dragover {
  background-color: #e9ecef;
  border: 2px dashed #0d6efd;
}

.dropzone-message {
  pointer-events: none;
}

#preview img,
#preview video {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

#animation_container {
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.duration-input input[type='number'] {
  width: 40px;
}

.aspect-ratio-16-9 {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9/16 = 0.5625) */
}

.resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #0d6efd;
  cursor: nwse-resize;
}

.resize-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px dotted transparent;
}

div:hover>.resize-border {
  border: 2px dotted #0d6efd;
}

.slide-text {
  width: 100%;
  height: 100%;
  display: block;
}

.slide-text:focus {
  outline: none;
  border: none;
}

#device-presentation.empty-screen {
  background-color: #19191b;
  background-image: url("/assets/Logo_white_long-12b2fc68.png");
  background-size: 30%;
  background-repeat: no-repeat;
  background-position: center;
}

#device-activation-left-side {
  background: #19191b;
  background: linear-gradient(180deg, rgba(25, 25, 27, 1) 0%, rgba(67, 67, 67, 1) 100%);
  font-family: 'Montserrat', sans-serif;
}

#device-activation-logo-header {
  height: 20%;
  margin: 0 auto;
  padding-left: 3vw;
  display: flex;
  align-items: center;
}

#device-activation-logo-header img {
  height: 50%;
}

#device-activation-instructions {
  font-size: 4vh;
  font-weight: 600;
  text-align: left;
  margin: 0 auto;
  max-width: 80%;
  height: 40%;
  display: flex;
  align-items: center;
}

#device-activation-key-container {
  height: 30%;
}

#device-activation-key {
  font-size: 18vh;
  font-weight: 700;
  text-align: center;
}

#right-side {
  width: 38%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 5%;
  padding-bottom: 5%;
}

#right-side>div {
  height: 33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#right-side>div>p {
  font-family: 'Montserrat', sans-serif;
  font-size: 4vh;
  font-weight: 600;
  text-align: center;
}

#right-side>div>img#screen {
  height: 90%;
}

#right-side>div>img#link {
  height: 35%;
}

#right-side>div:last-child {
}

#right-side>div#activation-key>p {
  font-size: 4.5vh;
  font-weight: 600;
  text-align: center;
}

.input-group-sm > .form-control.duration-input {
  font-size: 0.7rem;
}

#device-presentation {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}


#device-presentation .slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.timer {
  position: absolute;
  aspect-ratio: 1647 / 2000;
}

.timer .point {
  position: absolute;
  width: 0.43%; /* 3px / 700px ≈ 0.43% */
  transform-origin: center;
  opacity: 1;
  background-color: #ffffff;
  border-radius: 20%;
}



.timer .ray {
  position: absolute;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform-origin: bottom center;
  top: 0;
}

.timer .clock {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer .mercedes, #preview .timer .mercedes {
  width: 60%;
}

.timer .timer-text {
  text-align: center;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}

.timer .circle {
  width: 82.2%;
  height: 82.2%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  border: 15px solid #ffffff;
}

#device-name {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 3vw;
  font-weight: bold;
  color:rgb(113, 113, 113);
}

/* Weather widget — Tiffany Du–style layout, scoped + container-relative sizing */

.weather-widget {
  container-name: weatherpanel;
  container-type: size;
}

.weather-widget *,
.weather-widget *::before,
.weather-widget *::after {
  box-sizing: border-box;
}

.weather-widget-surface {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: auto;
  color: #fff;
  font-family: Montserrat, 'Alegreya Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-align: center;
  /* background: linear-gradient(165deg, #5a7d92 0%, #3d5566 45%, #2c3e50 100%); */
  font-size: clamp(0.55rem, 2vmin, 1.1rem);
}

@supports (font-size: 1cqmin) {
  .weather-widget-surface {
    font-size: clamp(0.5rem, min(3.9cqmin, 5cqh), 2rem);
  }
}

.weather-widget a {
  color: #6d8ca0;
  font-weight: 700;
  text-decoration: none;
}

.weather-widget-section {
  width: 100%;
  flex-shrink: 0;
}

.weather-widget-current {
  position: relative;
  padding: 6% 5% 7%;
}

.weather-widget .location {
  font-size: 1.35em;
  font-weight: 700;
  margin: 0;
}

.weather-widget .date {
  font-size: 0.85em;
  font-weight: 300;
  text-transform: uppercase;
  margin: 0.35em 0 0;
}

.weather-widget-current .weatherIcon {
  width: 4.25em;
  height: 4.25em;
  margin: 0.75em auto 0.45em;
}

.weather-widget .temp {
  font-size: 2.35em;
  line-height: 1.15;
  font-weight: 300;
  margin: 0;
}

.weather-widget .temp::after {
  content: '\00b0';
  margin-right: -0.25em;
}

.weather-widget-current .conditions {
  font-size: 0.95em;
  text-transform: uppercase;
  margin: 0.2em 0 0;
}

.weather-widget-future {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 4% 3%;
  display: flex;
  flex-direction: column;
}

.weather-widget-day {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  margin: 0;
  padding: 0.5em 0.35em;
  width: 100%;
}

.weather-widget-day:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.weather-widget .day {
  padding: 0;
  margin: 0 0 0.2em;
  text-align: left;
  text-transform: uppercase;
  font-size: 0.88em;
  font-weight: 700;
}

.weather-widget-day .weatherIcon {
  float: right;
  width: 2.25em;
  height: 2.25em;
  margin: -0.35em 0 0 0.45em;
  font-size: 0.5em;
}

.weather-widget-day p {
  text-align: left;
  margin: 0.2em 0 0;
  font-size: 0.84em;
}

.weather-widget-day .conditions {
  text-transform: none;
}

.weather-widget-day .tempRange {
  font-weight: 700;
  font-size: 0.88em;
}

.weather-widget .high::after,
.weather-widget .low::after {
  content: '\00b0';
  padding: 1px;
}

.weather-widget-day::after {
  content: '';
  display: table;
  clear: both;
}

@container weatherpanel (min-width: 300px) {
  .weather-widget-future {
    flex-direction: row;
    align-items: stretch;
    padding: 0 2% 2.5%;
  }

  .weather-widget-day {
    flex: 1;
    border-top: none;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.45em 0.3em;
  }

  .weather-widget-day:first-child {
    border-top: none;
  }

  .weather-widget-day:last-child {
    border-right: none;
  }

  .weather-widget-day .day,
  .weather-widget-day p {
    text-align: center;
  }

  .weather-widget-day .weatherIcon {
    float: none;
    margin: 0.35em auto 0.3em;
    width: 2.5em;
    height: 2.5em;
    font-size: 0.56em;
  }
}

.weather-widget-footer {
  flex-shrink: 0;
  padding: 0.35em 0.5em 0.55em;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.6em;
  letter-spacing: 0.07em;
}

.weather-widget .lastUpdated {
  color: #fff;
  margin: 0;
  padding: 0.2em 0;
}

.weather-widget .lastUpdated::before {
  content: '-- ';
}

.weather-widget .lastUpdated::after {
  content: ' --';
}

.weather-widget .weatherIcon {
  position: relative;
}

.weather-widget .weatherIcon svg {
  display: block;
  width: 100%;
  height: 100%;
}

#current-time {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 2vw;
}