/**
 * Fonts
 */

/* Our "official" font */
@font-face {
  font-family: "GEST";
  src: local("Gabarito"), url("/static/fonts/Gabarito-VariableFont_wght.woff2") format("woff2");
}

/**
 * Global styles
 */

:root {
  font-family: "GEST";
  font-size: 20px;

  /* Our colors */
  --gest-black: #1D1717;
  --gest-white: #F5EEDE;
  --gest-gray: #D2BDB8;
  --gest-brown: #BE8677;
  --gest-dark-purple: #452959;
  --gest-light-purple: #854AA6;
  --gest-pink: #E28BB7;
  --gest-dark-green: #649670;
  --gest-light-green: #6CB57E;
  --gest-yellow: #F7DF00;
  --gest-red: #EB4010;
  --gest-blue: #56A6F8;
}

html {
  height: 100%;
  box-sizing: border-box;
  background-color: var(--gest-brown);

  font-family: "GEST";
  color: var(--gest-black);
}

body {
  height: 100%;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;

  font-family: "GEST";
  color: var(--gest-black);
}

footer {
  text-align: center;
  padding: 1em 1.5em 1em;
  background-color: var(--gest-brown);
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  /* Greatly helps readability */
  max-width: 800px;
  margin: auto;
}

/* fooooocking bulma */
.title {
  color: var(--gest-black);
}

.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 1;
  transition: background 0.3s;
}

.scroll-button:hover {
  background-color: rgba(255, 255, 255, 1);
}

.scroll-button.left {
  left: 0;
}

.scroll-button.right {
  right: 0;
}

/* Responsive iframe wrapper for calendar/map embeds */
.responsive-iframe {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.container img {
  width: 100%;
  /* allow it to scale down */
  max-width: 400px;
  /* but never grow beyond 400px */
  height: auto;
  /* keep aspect ratio */
}

nav {
  background-color: var(--gest-brown) !important;
  --bulma-navbar-background-color: var(--gest-brown) !important;
  --bulma-navbar-item-background: var(--gest-brown) !important;
}

.navbar {
  transition: transform 0.3s ease-in-out;
  will-change: transform;
}

/* Mobile fix for navbar brand name */
@media (max-width: 600px) {
  .brand-name {
    font-size: 0.875rem;
  }
}

.navbar {
  transition: transform 0.3s ease-in-out;
  will-change: transform;
}

.icons-language-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.icons {
  display: flex;
  gap: 0.75rem;
}

.select {
  margin-left: auto;
}

@media (max-width: 1023px) {
  .navbar-end {
    width: 100%;
  }

  .icons-language-container {
    width: 100%;
  }

  .icons {
    width: auto;
  }

  .select {
    margin-left: auto;
    min-width: 120px;
  }
}

.cr {
  /* funny */
  font-family: cursive;
  font-weight: bold;
}

.grayed {
  filter: grayscale(90%);
}

/* From W3Schools cus I can't be bothered */
/* Tooltip container */
.tt {
  position: relative;
  display: inline-block;
  /* Add dots under the hoverable text */
  border-bottom: 1px dotted black;
  cursor: help;
}

/* Tooltip text */
.tt-txt {
  visibility: hidden;
  width: 130px;
  background-color: var(--bulma-body-color);
  color: #ffffff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  /* Use half of the width (130/2 = 65), to center the tooltip */
  margin-left: -65px;
  /* Fade-in */
  opacity: 0;
  transition: opacity 0.2s;
}

.tt:hover .tt-txt {
  visibility: visible;
  opacity: 1;
}

.tt-txt::after {
  content: " ";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--bulma-body-color) transparent transparent transparent;
}

.fill {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden
}

.fill img {
  flex-shrink: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

/**
 * Landing page specific styles
 */

.image-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.image-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 1rem 2rem;
}

.image-carousel img {
  flex: 0 0 auto;
  max-height: 300px;
  /* ✅ set a max height */
  height: auto;
  width: auto;
  /* ✅ let width scale with height */
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Make carousel padding and image sizes friendlier on small screens */
@media (max-width: 640px) {
  .image-carousel {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .image-carousel img {
    max-height: 180px;
  }
}

/* Allow location container to wrap on narrow screens */
@media (max-width: 800px) {
  .location-container {
    flex-direction: column;
    align-items: stretch;
  }

  .location-map {
    width: 100%;
  }
}
