/* Header, nav-toggle, and the <nav> menu now live in static/templates/base.django.html
as Tailwind utility classes instead of here — see that file for the equivalent rules. */

/* General */

* {
  border-width: 0;
}
a {
  color: darkgray;
}

h2 {
  margin: 0 0 1rem 0;
  font-weight: bold;
}

h4 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  padding: .5rem;
  color: #ffffff;
  background-color: #639A00;

}

/* .btn/.btn-primary/button:active/.btn[disabled] now live in the Tailwind component
(base.django.html). Form input/textarea/select styling now lives in that same file's
addBase block, since Django's auto-rendered {{ form }} widgets carry no class of their own. */

form label {
  font-weight: bold;
}

form .helptext {
  display: block;
  margin-bottom: 1rem;
  font-size: 80%;
}

section {
  border: thin solid gray;
}

.empty {
  text-align: center;
  color: #626468;
  display: block;
  padding: .5rem;
}


dl > div {
  display: flex;
  flex-direction: row;
  margin-bottom: .5rem;
}

dl > div:nth-of-type(2n+1) {
  background-color: #F5F5F5;
}

dl dt {
  font-weight: bold;
  width: 25%;
  text-align: right;
  box-sizing: border-box;
}

dl dd, dl dt {
  display: block;
  margin: 0;
  padding: .5rem;
}

/* .table-wrapper now lives in the Tailwind component (base.django.html); .chart-wrapper
is still a plain CSS class here since it's not part of the table unification. */
.chart-wrapper {
  max-width: 100%;
  overflow-x: scroll;
}

.tab-wrapper {

}

.tab-header {
  list-style-type: none;
  padding: 0;
  margin: 0;
  border-bottom: thin solid #639A00;
  display: flex;
  flex-direction: row;
}

.tab-header li {
  display: block;
  padding: .5rem;
  margin-right: .5rem;
  background-color: #C0C1C3;
  font-weight: bold;
}

.tab-header li.selected {
  background-color: #639A00;
  color: #ffffff;
}

.tab {
  border: thin solid #639A00;
  padding: 1rem;
}

.tab.hidden {
  display: none;
}


/* Page specifics */

.news, .drinks {
  display: flex;
  flex-direction: column;
}

.news > *, .drinks > * {
  flex: 1;
  display: block;
  box-sizing: border-box;
}

section > h3 {
  display: block;
  padding: .5rem 1rem;
  margin: 0 0 1rem 0;
  background-color: gray;
  color: #ffffff;
}

.news form, .drinks form {
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.drinks-form-fields {
  display: flex;
  flex-direction: row;
}

.drinks-form-fields label:first-child {
  flex: 1;
}

.drinks .chart-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.drinks .add-credit a {
  margin-left: 1rem;
}

/* .trip-table/.seminar-table/.mmi-table/.display-table are gone — every table now uses
the single unified .data-table component (base.django.html); any content-specific need
(e.g. long-text wrapping) is added as extra utility classes on that table's own cells. */

.seminar-forms {
  display: flex;
  flex-direction: row;
}

.seminar-forms > div {
  margin: .5rem;
  border: thin solid #639A00;
}

.seminar-forms form {
  padding: 0 1rem;
}

.news-entries {
  list-style-type: none;
  margin: 0;
  padding: 1rem;
}

.news-entries .tab-header li {
  min-width: 20%;
  text-align: center;
}

.news-entries > li {
  display: block;
  margin-bottom: 2rem;
}

.news-entries h4 {
  background-color: transparent;
  color: #639A00;
}

.past-trip {
  opacity: .5;
}

.countdown {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1rem;
  position: relative;
}

.countdown h2 {
  font-size: 1rem;
  font-weight: bold;
}

.countdown div {
  font-weight: bold;
  font-size: 2rem;
}


.this-is-fine {
  position: absolute;
  top: -2rem;
  bottom: -2rem;
  left: -2rem;
  right: -2rem;
}

.this-is-fine img {
  height: 8rem;
  position: absolute;
  bottom: -8rem;
  left: 10%;
  transition: bottom 10s ease-out;
  z-index: 1;
}

.this-is-fine .img-wrapper {
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  overflow: hidden;
}

.this-is-fine img.show {
  bottom: -2rem;
}


.this-is-fine .fire {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -25%);
  height: 4rem;
  width: 4rem;
}

.this-is-fine .flames {
  position: absolute;
  bottom: 40%;
  left: 50%;
  width: 60%;
  height: 60%;
  transform: translateX(-50%)rotate(45deg);
  transition: opacity 2s ease-in;
}

.this-is-fine .flames > div {
  position: absolute;
  right: 0%;
  bottom: 0%;
  width: 0%;
  height: 0%;
  background-color: #FFDC01;
  border-radius: 0.75rem;
}

.this-is-fine .flames > div:nth-child(2n + 1) {
  animation: flameodd 3s ease-in infinite;
}

.this-is-fine .flames > div:nth-child(2n) {
  animation: flameeven 3s ease-in infinite;
}

.this-is-fine .flames > div:nth-child(1) {
  animation-delay: 0s;
}

.this-is-fine .flames > div:nth-child(2) {
  animation-delay: 0.75s;
}

.this-is-fine .flames > div:nth-child(3) {
  animation-delay: 1.5s;
}

.this-is-fine .flames > div:nth-child(4) {
  animation-delay: 2.25s;
}

@keyframes flameodd {

  0%,
  100% {
     width: 0%;
     height: 0%;
  }

  25% {
     width: 100%;
     height: 100%;
  }

  0% {
     background-color: #FFDC01;
     z-index: 1000000;
  }

  40% {
     background-color: #FDAC01;
     z-index: 1000000;
  }

  100% {
     background-color: #F73B01;
     z-index: -10;
  }

  0% {
     right: 0%;
     bottom: 0%;
  }

  25% {
     right: 1%;
     bottom: 2%;
  }

  100% {
     right: 150%;
     bottom: 170%;
  }
}

@keyframes flameeven {

  0%,
  100% {
     width: 0%;
     height: 0%;
  }

  25% {
     width: 100%;
     height: 100%;
  }

  0% {
     background-color: #FFDC01;
     z-index: 1000000;
  }

  40% {
     background-color: #FDAC01;
     z-index: 1000000;
  }

  100% {
     background-color: #F73B01;
     z-index: -10;
  }

  0% {
     right: 0%;
     bottom: 0%;
  }

  25% {
     right: 2%;
     bottom: 1%;
  }

  100% {
     right: 170%;
     bottom: 150%;
  }
}


.christmas-map-wrapper {
  position: relative;
  font-size: 80%;
  width: 100%;
  overflow: hidden;
  background-color: #C0C1C3;
}

.christmas-map-wrapper .christmas-map {
  width: 100%;
  height: 100%;
  min-height: 20vh;
  overflow: hidden;
  transition: min-height 1s ease-in-out;
}

.christmas-map-wrapper:hover .christmas-map {
  min-height: 60vh;
}

.christmas-map-wrapper .map-overlay {
  position: absolute;
  right: 1rem;
  bottom: 2rem;
  background: #FF4343;
  padding: .5rem;
  color: #ffffff;
  border-radius: .5rem;
  z-index: 1024;
  user-select: none;
}

.christmas-map-wrapper .map-overlay a {
  display: block;
  margin-bottom: .25rem;
  background-color: #ffffff;
  color: #639A00;
  box-sizing: border-box;
}

.christmas-map-wrapper .leaflet-popup {
  user-select: none;
}

.christmas-map-wrapper .leaflet-popup h5 {
  font-size: 0.8rem;
  margin: 0 0 1rem 0;
}

.christmas-map-wrapper .leaflet-popup h6 {
  margin: 0;
  font-size: .6rem;
  font-weight: bold;
}

.christmas-map-wrapper .leaflet-popup p {
  margin: 0 0 .5rem 0;
}

.christmas-map-wrapper .popup-content {
  width: 240px;
}

.christmas-map-wrapper .popup-content img {
  display: block;
  max-width: 200px;
  margin-bottom: 0 auto;
}


/* .widget/.widgets (dashboard cards) and .badges now live inline as Tailwind utility
classes in apps/dashboards/templates/landing-dashboard.django.html instead of here. */

.vacation-day-form .form-fields {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.vacation-day-form .form-fields > div {
  flex: 1;
  padding: 0 1rem;
}

.vacation-day-form .form-fields input {
  width: 100%;
}

.vacation-day-form {
  display: flex;
  flex-direction: column;
}

.vacation-day-form button {
  align-self: flex-end;
}

