/* GLOBAL ------------------------------------------------------------------------------------------------------------- */
:root {
  box-sizing: border-box; /* Prevent overflow */
  scroll-behavior: smooth;

  /* LINES */
  --lineWidth: 5px;

  /* EDGES */
  --borderRadiusImages: 2.5em;
  --borderRadiusButton: 999em;

  /* GAPS */
  --xsGap: 1rem;
  --sGap: 2rem;
  --mGap: 3rem;
  --lGap: 4rem;
  --xlGap: 6rem;

  /* MARGINS */
  --sideMargin: 25vw;
  --contentMinWidth: 750px;

  /* FONTS */
  --h1FontSize: 5rem;
  --h1LineHeight: 5.2rem;
  --h2FontSize: 3.5rem;
  --h2LineHeight: 4rem;
  --h3FontSize: 2.25rem;
  --h3LineHeight: 2.5rem;

  --textFontSize: 1.25rem;
  --textLineHeight: 1.75rem;

  --menuFontSize: 1.5rem;
  --menuLineHeight: 1.5rem;
  --detailsFontSize: 0.75rem;
  --detailsLineHeight: 1rem;
}

/* COLORS */
.themeShop {
  --primary: #634d4c;
  --secondary: #f3f1ea;
  --tertiary: #7dc189;
}

.themeAssociation {
  --primary: #a15a3d;
  --secondary: #f3f1ea;
  --tertiary: #e4b34e;
}

html {
  height: 100%; /* Force footer to end of page */
}

@font-face {
  font-family: "Inter-Medium";
  src: url(/assets/fonts/Inter/ttf/Inter-Medium.ttf) format("truetype"),
    url(/assets/fonts/Inter/woff2/Inter-Medium.woff2) format("woff2"),
    url(/assets/fonts/Inter/woff/Inter-Medium.woff) format("woff");
}

@font-face {
  font-family: "Inter-Bold";
  src: url(/assets/fonts/Inter/ttf/Inter-Bold.ttf) format("truetype"),
    url(/assets/fonts/Inter/woff2/Inter-Bold.woff2) format("woff2"),
    url(/assets/fonts/Inter/woff/Inter-Bold.woff) format("woff");
}

@font-face {
  font-family: "Pally-Medium";
  src: url(/assets/fonts/Pally/ttf/Pally-Medium.ttf) format("truetype"),
    url(/assets/fonts/Pally/woff2/Pally-Medium.woff2) format("woff2"),
    url(/assets/fonts/Pally/woff/Pally-Medium.woff) format("woff");
}

* {
  margin: 0px;
  padding: 0px;
  font-family: "Inter-Medium", sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  text-decoration: none;
  color: var(--primary);
  scroll-behavior: smooth; /* Smooth scrolling */
}

body {
  display: flex;
  background-color: var(--secondary);
}

main {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: calc(100vw - (2 * var(--sideMargin)) - (2 * var(--sGap)));
  min-width: var(--contentMinWidth);
  padding: var(--xlGap) var(--sGap);
}

.pageLeft {
  display: flex;
  height: auto;
  flex: 1;
}

.pageRight {
  display: flex;
  height: auto;
  flex: 1;
}

.pageMiddle {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Force footer to end of page */
}

/* FONTS -------------------------------------------------------------------------------------------------------------- */
h1 {
  font-family: "Pally-Medium", sans-serif;
  font-size: var(--h1FontSize);
  line-height: var(--h1LineHeight);
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--primary);
}

h2 {
  font-family: "Pally-Medium", sans-serif;
  font-size: var(--h2FontSize);
  line-height: var(--h2LineHeight);
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--primary);
}

h3 {
  font-family: "Pally-Medium", sans-serif;
  font-size: var(--h3FontSize);
  line-height: var(--h3LineHeight);
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--primary);
}

p {
  font-family: "Inter-Medium", sans-serif;
  font-size: var(--textFontSize);
  line-height: var(--textLineHeight);
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--primary);
}

a {
  font-family: "Inter-Medium", sans-serif;
  font-size: var(--textFontSize);
  line-height: var(--textLineHeight);
  letter-spacing: 0rem;
  text-decoration: underline;
  color: var(--primary);
  cursor: pointer;
}

.menu {
  font-family: "Pally-Medium", sans-serif;
  font-size: var(--menuFontSize);
  line-height: var(--menuLineHeight);
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--primary);
}

.details {
  font-family: "Inter-Medium", sans-serif;
  font-size: var(--detailsFontSize);
  line-height: var(--detailsLineHeight);
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--primary);
}

/* KTI ---------------------------------------------------------------------------------------------------------------- */
strong {
  font-family: "Inter-Bold", sans-serif;
}

em {
  font-style: italic;
}

u {
  text-decoration: underline;
}

s {
  text-decoration: line-through;
}

.block-type-text ol,
.block-type-text ul {
  margin: var(--xsGap) 0;
}

.block-type-text ol li {
  list-style-type: decimal;
  margin-left: 10%;
}

.block-type-text ul li {
  list-style-type: disc;
  margin-left: 10%;
}

li::marker {
  font-family: "Inter-Bold", sans-serif;
  font-size: var(--textFontSize);
  line-height: var(--textLineHeight);
  color: var(--primary);
}

/* BUTTONS, ILLUSTRATIONS & BANNER ------------------------------------------------------------------------------------ */
/* Illustrations */
.pageLeft {
  justify-content: center;
  align-items: flex-end;
}

.pageLeft svg {
  display: flex;
  position: relative;
  bottom: 4vw;
  width: calc(var(--sideMargin) / 3);
  height: auto;
  fill: none;
}

.pageLeft svg path {
  stroke: var(--primary);
  stroke-width: var(--lineWidth);
  fill: none;
}

/* Buttons */
.pageRight {
  display: flex;
  justify-content: flex-end;
}

.pageRight button {
  display: flex;
  padding: 5px 15px;
  justify-content: center;
  align-items: center;
  color: var(--secondary);
  background-color: var(--tertiary);
  border: none;
  border-radius: var(--borderRadiusButton);
  cursor: pointer;
}

.pageRight a {
  text-decoration: none;
}

/* Opening Hours Button */
#openClosed {
  display: flex;
  position: fixed;
  top: 0;
  width: auto;
  height: 10vw;
  justify-content: flex-end;
  align-items: flex-end;
  padding: var(--sGap) var(--lGap);
}

.open {
  background-color: var(--tertiary) !important;
}

.closed {
  background-color: var(--primary) !important;
}

/* Donate Button */
#donate {
  display: flex;
  position: fixed;
  bottom: 0;
  height: 5vw;
  justify-content: flex-end;
  align-items: flex-start;
  padding: var(--sGap) var(--lGap);
}

#donate svg {
  width: var(--detailsFontSize);
  height: auto;
  fill: var(--secondary);
  padding-left: 5px;
}

/* Button animation */
.animatedButton {
  position: relative;
  transform-origin: center right;
  overflow: hidden;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.3, 1, 0.7, 1), opacity 0.5s;
}

/* Grow animation */
.animate-grow {
  transform: scaleX(1);
  opacity: 1;
}

/* Block animation after first page load */
.alreadyAnimated .animatedButton {
  transform: scaleX(1);
  opacity: 1;
  transition: none;
}

/* Banner */
#banner {
  display: flex;
  position: fixed;
  top: 0;
  width: 100%;
  height: auto;
  padding: var(--xsGap) 0;
  align-items: center;
  background-color: var(--tertiary);
  z-index: 10;
  overflow: hidden;
}

.bannerTrack {
  display: inline-flex;
  white-space: nowrap;
  animation: banner linear infinite;
}

.bannerTrack p {
  color: var(--secondary);
}

@keyframes banner {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* HEADER & FOOTER ---------------------------------------------------------------------------------------------------- */
.headerAndFooter {
  display: flex;
  flex-direction: row;
  padding: var(--sGap) var(--sGap);
  width: calc(100vw - (2 * var(--sideMargin)) - (2 * var(--sGap)));
  min-width: var(--contentMinWidth);
}

.headerAndFooterMenu {
  display: flex;
  flex: 1;
  justify-content: flex-end;
}

.headerAndFooterMenu ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.headerAndFooterMenu ul li {
  display: flex;
  margin-left: var(--xsGap);
}

/* Header */
header {
  display: flex;
  flex-direction: column;
}

header:after {
  content: "";
  display: block;
  width: 100%;
  height: var(--lineWidth);
  background: var(--primary);
  border-radius: var(--lineWidth);
}

#headerMenu {
  display: flex;
  height: 10vw;
  align-items: flex-end;
}

#logo {
  display: flex;
  position: relative;
  width: 200px;
}

#logo svg {
  width: 100%;
  height: auto;
  fill: var(--primary);
}

#logo svg g {
  fill: var(--primary);
}

/* Footer */
footer {
  display: flex;
  flex-direction: column;
}

footer:before {
  content: "";
  display: block;
  width: 100%;
  height: var(--lineWidth);
  background: var(--primary);
  border-radius: var(--lineWidth);
}

#footerMenu {
  display: flex;
  height: 5vw;
  align-items: flex-start;
}

.socials {
  display: flex;
  position: relative;
  flex: 1;
}

.socials a {
  display: flex;
  background: var(--primary);
  padding: 10px;
  border-radius: 50%;
  margin-right: var(--xsGap);
}

.socials svg {
  width: 20px;
  height: auto;
}

.socials svg path {
  fill: var(--secondary);
}

/* PAGES -------------------------------------------------------------------------------------------------------------- */
#pageTitle {
  margin-bottom: var(--sGap);
}

/* Blocks */
.block:not(:last-child):not(.block-type-heading) {
  margin-bottom: var(--mGap);
}

.block-type-heading {
  margin-bottom: var(--xsGap);
}

.block-type-image,
.block-type-gallery,
.block-type-video,
.insertYTVideo,
.insertYTVideo .placeholder {
  display: flex;
  position: relative;
  width: 100%;
  height: auto;
}

.block-type-image picture,
.block-type-gallery picture {
  display: flex;
  position: relative;
  width: 100%;
  height: auto;
}

.block-type-video picture,
.insertYTVideo iframe {
  display: flex;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--borderRadiusImages);
}

.block-type-image picture img,
.block-type-gallery picture img,
.block-type-video picture img {
  display: flex;
  position: relative;
  width: 100%;
  height: auto;
  object-fit: cover; /* Don't stretch Thumbnails images */
  border-radius: var(--borderRadiusImages);
}

/* Caption Box */
.imageCaption,
.cookiesText {
  display: flex;
  width: auto;
  height: auto;
  max-width: 35%;
  max-height: 20%;
  position: absolute;
  bottom: var(--sGap);
  left: var(--sGap);
  background: var(--secondary);
  padding: 5px 15px;
  border-radius: var(--borderRadiusButton);
}

/* Gallery */
.galleryNavigation {
  display: flex;
  position: absolute;
  width: calc(100% - (2 * var(--sGap)));
  height: auto;
  align-self: center;
  justify-content: space-between;
  padding: 0 var(--sGap);
}

.back,
.next {
  display: flex;
  background: var(--secondary);
  padding: 10px;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}

.back svg,
.next svg {
  width: 10px;
  height: auto;
  padding-left: 2px;
}

.back svg {
  transform: rotate(180deg);
}

/* Video */
.playButton {
  all: unset;
  position: absolute;
  width: 25%;
  height: 25%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  background: url("/assets/img/icons/Play-Button.svg") no-repeat center center;
  background-size: contain;
}

/* OPENING HOURS ------------------------------------------------------------------------------------------------------ */
.weekday {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: var(--sGap);
}

.openingHours {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
}

#additionalInformation {
  margin-top: var(--mGap);
}

/* MEDIA QUERIES ------------------------------------------------------------------------------------------------------ */
@media (max-width: 1200px) {
  /* GLOBAL ------------------------------------------------------------------------------------------------------------- */
  :root {
    /* LINES */
    --lineWidth: 5px;

    /* EDGES */
    --borderRadiusImages: 1.5em;
    --borderRadiusButton: 999em;

    /* GAPS */
    --xsGap: 0.5rem;
    --sGap: 1rem;
    --mGap: 1.5rem;
    --lGap: 2rem;
    --xlGap: 3rem;

    /* MARGINS */
    --sideMargin: 5vw;
    --contentMinWidth: 0px;
    --contentMaxWidth: 750px;

    /* FONTS */
    --h1FontSize: 2.5rem;
    --h1LineHeight: 2.75rem;
    --h2FontSize: 2rem;
    --h2LineHeight: 2.2rem;
    --h3FontSize: 1.5rem;
    --h3LineHeight: 1.8rem;

    --textFontSize: 1.1rem;
    --textLineHeight: 1.5rem;

    --menuFontSize: 1.25rem;
    --menuLineHeight: 1.5rem;
    --detailsFontSize: 0.7rem;
    --detailsLineHeight: 0.8rem;
  }

  body {
    width: 100%;
    justify-content: center;
  }

  main {
    display: flex;
    flex-direction: column;
    padding: var(--xlGap) var(--sGap);
    max-width: var(--contentMaxWidth);
  }

  .pageLeft,
  .pageLeft *,
  .pageRight,
  .pageRight * {
    display: none;
  }

  .pageMiddle {
    max-width: var(--contentMaxWidth);
    margin: 0 var(--sideMargin);
  }

  /* HEADER & FOOTER ---------------------------------------------------------------------------------------------------- */
  .headerAndFooter {
    width: auto;
  }

  .headerAndFooterMenu ul li {
    margin-left: 0;
  }

  /* Header */
  #headerMenu {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding-top: var(--xlGap);
  }

  #headerMenu .headerAndFooterMenu ul li a {
    display: flex;
    padding: 5px 15px;
    margin: 0 var(--xsGap) var(--xsGap) 0;
    justify-content: center;
    align-items: center;
    color: var(--secondary) !important;
    background-color: var(--primary);
    border: none;
    border-radius: var(--borderRadiusButton);
    cursor: pointer;
  }

  #logo {
    padding-bottom: var(--lGap);
  }

  /* Footer */
  #footerMenu {
    height: auto;
  }

  #footerMenu ul {
    flex-direction: column;
  }

  #footerMenu ul li {
    justify-content: flex-end;
    margin-bottom: var(--xsGap);
  }

  /* PAGES -------------------------------------------------------------------------------------------------------------- */
  /* Blocks */
  .imageCaption,
  .cookiesText {
    max-width: 80%;
    max-height: 25%;
    padding: 5px 10px;
  }

  .back,
  .next {
    padding: 8px;
  }

  .back svg,
  .next svg {
    width: 10px;
    padding-left: 1px;
  }

  /* OPENING HOURS ------------------------------------------------------------------------------------------------------ */
  .weekday {
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: var(--sGap);
  }

  .openingHours {
    justify-content: flex-start;
  }

  #additionalInformation {
    margin-top: var(--mGap);
  }
}
