/* Árnastofnun's style.css for the Christmas calendar (https://ginnungagap.arnastofnun.is/joladagatal/style.css,
   copied 2026-12-01), changed only in: no Lido STF font files (licensed; Galatia SIL instead, an open-licence font served with it), the header picture as
   WebP, and DINish instead of Google's Roboto. */
/* Ours: Galatia SIL (SIL International, Open Font License: fonts/OFL.txt) stands in for Lido STF, whose files are
   licensed and not copied (Kristinn's choice, 2026-12-01). Times New Roman after it supplies what it lacks (the figure dash). */
@font-face { font-family: 'Galatia SIL'; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/GalSILR.woff") format("woff"); }
@font-face { font-family: 'Galatia SIL'; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/GalSILB.woff") format("woff"); }
.font-lido {
  font-family: 'Lido STF', 'Galatia SIL', 'Times New Roman', Times, serif;
}
html,
body {
  width: 100%;
  padding: 0;
  margin: 0;
}
.calendar-wrapper {
  position: relative;
  max-width: 840px;
  padding: 40px;
  background-image: url('haus2026.webp');
  background-repeat: no-repeat;
  background-size: contain;
  margin: 0 auto;
  font-family: 'Lido STF', 'Galatia SIL', 'Times New Roman', Times, serif;
}
.calendar-wrapper .background-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  max-height: 699px;
}
.current-day {
  position: relative;
  left: 0;
  top: 0px;
  right: 0;
  bottom: 0;
  padding: 0;
  background: #fefbf7;
  border: 1px solid #c4c4c4;
  box-shadow: 0 2px 6px #00000040;
  z-index: 20;
  transition: all 200ms ease-in-out;
  max-height: 0;
}
@media only screen and (min-width: 600px) {
  .current-day {
    top: 0px;
  }
}
.initialized.current-day {
  opacity: 1;
  max-height: 5000px;
}
.current-day .caption {
  display: block;
  padding: 20px;
  background: #ffffff;
  border-bottom: 1px solid #893b3b;
}
.current-day .content-wrapper {
  max-height: 0;
  transition: max-height 800ms ease-in-out;
  transition-delay: 400ms;
  overflow: hidden;
}
.initialized.current-day .content-wrapper {
  max-height: 5000px;
}
.current-day .content {
  gap: 30px;
  font-size: 1.3rem;
  display: flex;
  z-index: 10;
}
@media only screen and (max-width: 600px) {
  .current-day .content {
    flex-direction: column;
  }
}
.current-day .content a {
  color: #006841;
}
.current-day .content a.button {
  display: inline-block;
  padding: 8px 10px;
  margin: 20px 0 10px 0;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  background: #006841;
  border-radius: 4px;
  border: 2px solid #006841;
}
.current-day .day {
  padding: 25px 35px 0 35px;
  background-color: #893b3b;
  color: #fff;
  font-weight: bold;
  font-family: 'Lido STF', 'Galatia SIL', 'Times New Roman', Times, serif;
  font-size: 96px;
  text-align: center;
  transform: translateX(-110px);
  transition: all 600ms ease-in-out;
  transition-delay: 600ms;
}
.initialized.current-day .day {
  transform: translateX(0);
}
.current-day .background-wrapper {
  position: relative;
  min-height: 200px;
  opacity: 0;
  transition: all 300ms ease-in-out;
}
.current-day .background-wrapper.video {
  min-height: 516px;
}
.initialized.current-day .background-wrapper {
  opacity: 1;
}
.current-day .background-wrapper iframe {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.current-day .background-wrapper.playing iframe {
  display: block;
}
.current-day .background-wrapper.playing .play-button {
  display: none;
}
.current-day .background-wrapper .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -25px 0 0 -25px;
  background-image: url('play-button.png');
  background-size: contain;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 300ms ease-in-out;
}
.current-day .background-wrapper .play-button:hover {
  transform: scale(1.3);
}
.current-day .background-wrapper .background {
  display: block;
  width: 100%;
  max-width: 100%;
}
.current-day .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background-image: url(close-button.png);
  background-color: #ffffffd7;
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 100%;
  border: none;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  z-index: 5;
}
.current-day .close-button:hover {
  transform: scale(1.3);
}
.current-day-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
  font-family: 'Roboto', DINish, sans-serif;
}
.current-day-wrapper .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 15;
}
.current-day-wrapper.visible {
  opacity: 1;
  pointer-events: all;
}
.current-day-wrapper .text {
  padding-right: 30px;
}
@media only screen and (max-width: 600px) {
  .current-day-wrapper .text {
    padding-left: 30px;
  }
}
.current-day-wrapper .text h2 {
  font-family: 'Lido STF', 'Galatia SIL', 'Times New Roman', Times, serif;
  color: #893b3b;
}
.current-day-wrapper .text img {
  float: right;
  max-width: 350px;
  margin: 0 0 20px 20px;
}
@media only screen and (max-width: 600px) {
  .current-day-wrapper .text img {
    max-width: 150px;
  }
}
.calendar {
  display: flex;
  padding: 15px;
  border: 1px dashed #893b3b2e;
  border-radius: 4px;
  flex-wrap: wrap;
  flex-direction: column;
  background: #f6f6f68a;
}
@media only screen and (min-width: 600px) {
  .calendar {
    max-height: 699px;
  }
}
@media only screen and (max-width: 600px) {
  .calendar {
    flex-direction: row;
  }
}
.calendar .week.names {
  background: transparent;
}
.calendar .day {
  position: relative;
  height: 100px;
  margin: 4px;
  flex: 1 1 100px;
  color: #333;
  text-decoration: none;
  background-position: center;
  background-size: cover;
  background-color: #505050;
  perspective: 400px;
  box-sizing: border-box;
}
.calendar .day .header {
  height: 40px;
}
.calendar .day .lid {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 -1px -1px 0;
  border: 1px solid #2d1717;
  transform-origin: 0;
  transition: all 300ms ease-in-out;
  box-shadow: 0 0 0 #0000004d;
}
.calendar .day.current .lid {
  background-color: #fff;
  background-image: url(snowflake-red.png);
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: center 63px;
}
.calendar .day.current .date {
  top: 25%;
  color: #893b3b;
}
.calendar .day.openable .lid {
  cursor: pointer;
}
.calendar .day.open,
.calendar .day.openable:hover {
  z-index: 10;
}
.calendar .day.openable:hover .lid {
  transform: rotateY(-65deg);
  box-shadow: 6px 0px 6px #0000004d;
}
.calendar .day.christmas .lid {
  /*background: #ac3f3f !important;
			color: #fff;*/
  font-weight: 600;
}
.calendar .day.open .lid {
  transform: rotateY(-65deg);
}
.calendar .day .date {
  position: relative;
  top: 40%;
  text-align: center;
  font-family: 'Lido STF', 'Galatia SIL', 'Times New Roman', Times, serif;
  font-size: 22px;
  color: #fff;
  flex-grow: 1;
}
.calendar .day .label {
  position: absolute;
  bottom: 7px;
  left: 10px;
  right: 10px;
  font-size: 12px;
  text-align: center;
  color: #fff;
}
.title {
  margin-bottom: 50px;
  text-align: center;
  color: #fff;
}
.title h1 {
  font-family: 'Lido STF', 'Galatia SIL', 'Times New Roman', Times, serif;
  color: #006841;
}
.title h1 img {
  display: inline-block;
  position: relative;
  width: 470px;
  margin: 0 30px;
}
.title .subtitle {
  font-size: 26px;
  text-shadow: 0px 0px 10px #dfd8c7, 0px 0px 10px #dfd8c7, 0px 0px 10px #dfd8c7, 0px 0px 10px #dfd8c7;
  font-weight: bold;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
}
.title .subtitle .sp1 {
  color: #006841;
}
.title .subtitle .sp2 {
  color: #c2002d;
}
@media only screen and (max-width: 600px) {
  .title h1 {
    font-size: 40px;
  }
}
@media only screen and (max-width: 600px) {
  .title h1 img {
    width: 90%;
    margin: 0 15px;
  }
}
.footer {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  align-items: center;
  justify-content: space-around;
}
.footer img {
  max-width: 260px;
}
.day-1 .lid {
  background-color: #005434;
}
.day-2 .lid {
  background-color: #9a1e20;
}
.day-3 .lid {
  background-color: #008251;
}
.day-4 .lid {
  background-color: #8d1b1d;
}
.day-5 .lid {
  background-color: #008c57;
}
.day-6 .lid {
  background-color: #006841;
}
.day-7 .lid {
  background-color: #9e1e21;
}
.day-8 .lid {
  background-color: #005e3b;
}
.day-9 .lid {
  background-color: #ab2123;
}
.day-10 .lid {
  background-color: #006d44;
}
.day-11 .lid {
  background-color: #841a1b;
}
.day-12 .lid {
  background-color: #007c4e;
}
.day-13 .lid {
  background-color: #af2224;
}
.day-14 .lid {
  background-color: #00633e;
}
.day-15 .lid {
  background-color: #007247;
}
.day-16 .lid {
  background-color: #80191a;
}
.day-17 .lid {
  background-color: #008251;
}
.day-18 .lid {
  background-color: #911c1e;
}
.day-19 .lid {
  background-color: #008754;
}
.day-20 .lid {
  background-color: #881a1c;
}
.day-21 .lid {
  background-color: #00774b;
}
.day-22 .lid {
  background-color: #005937;
}
.day-23 .lid {
  background-color: #951d1f;
}
.day-24 .lid {
  background-color: #a21f22;
}

/* Ours: the original relies on the browser's defaults, which LBS Foundation changes. These put them back
   inside the calendar only, so it measures and spaces as on Árnastofnun's page. */
.calendar-wrapper { box-sizing: content-box; }                     /* the theme sizes every box border-box */
.calendar-wrapper .background-overlay { left: 0; top: 0; }        /* else it starts at the padding and sticks out */
.current-day-wrapper .text h2 { margin: 0.83em 0; font-size: 1.5em; line-height: normal; }
.current-day-wrapper .text p { margin: 1em 0; }
.calendar-wrapper { font-size: 16px; line-height: 1.17; }          /* the browser's 16px and Roboto's normal line height; the theme's are 18px and 28/18 */
@media (max-width: 575.98px) {
	/* phones: the page's own side margin plus this = the original's 40px from the screen's edge */
	.calendar-wrapper { padding-inline: calc(40px - var(--lbs-gutter-compact, 16px)); }
}
/* Quotes in a day's story as on arnastofnun.is, whose site stylesheet (not the calendar's) gives them this. */
.current-day-wrapper .text blockquote { background: #f4ede2; margin: 0; padding: 1.66666em; font-size: 1em; }
.current-day-wrapper .text blockquote p { margin: 0; }
/* Ours: 10px of page below an opened day, so the reader can see they have reached its end (Kristinn, 2026-12-01). */
/* (The box lies over the page, so a margin would not lengthen the page; an empty block hung below it does.) */
.current-day-wrapper .current-day::after { content: ""; position: absolute; top: calc(100% + 1px); left: 0; width: 1px; height: 10px; } /* + 1px: past its border */
