body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #FFFFFF;
    color: #0e3d7a;
    overflow-x: hidden;
    position: relative;
}

/* Minimal grid header like your screenshot */
.grid-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 2rem;
  padding: 12px 24px 0; /* space for the top rule */
  background: white; /* airy look */
  pointer-events: none;    /* so only links are clickable */
}

.grid-link {
  position: relative;
  display: block;
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: #0e3d7a;
  text-decoration: none;
  text-transform: lowercase;
  padding-top: 10px;       /* distance from the top rule */
  pointer-events: auto;    /* re-enable pointer events on the links */
}

/* the thin top rule */
.grid-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 92%;
  height: 2px;
  background: #0e3d7a;
  opacity: 0.7;
}

/* subtle hover */
.grid-link:hover {
  opacity: 0.75;
}

/* push content down so it doesn’t overlap header */
body {
  padding-top: 48px; /* adjust if needed */
}

/* tweak gallery offset */
.gallery-background {
  top: 3.5rem; /* was 2rem */
}

/* Responsive (mobile) */
@media (max-width: 768px) {
  .grid-header {
    grid-template-columns: repeat(3, 1fr);
    padding: 10px 16px 0;
    flex-wrap: wrap;
  }
  .grid-link {
    font-size: 11px;
    padding-top: 8px;
  }
  .grid-link::before {
    width: 88%;
    height: 1.5px;
  }
  body { padding-top: 44px; }
}


/* === Gallery (max 5 per row) === */
.gallery-background {
  position: relative;               /* not fixed */
  width: 100%;
  max-width: 1600px;                /* optional container width */
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* max 5 per row */
  gap: clamp(0.75rem, 2vw, 2rem);
  align-items: start;
  z-index: 0;
}

.gallery-image {
  width:100%;
  height: auto;
  object-fit: contain;
  border-radius: 0px;
  display: block;
}


/* Responsive gallery columns */
@media (max-width: 1400px) { .gallery-background { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .gallery-background { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .gallery-background { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .gallery-background { grid-template-columns: 1fr; } }

.animated-text {
    font-size: 10rem;
    font-weight: 700;
    color: #0e3d7a;
    white-space: nowrap;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: moveRightToLeft 1000s linear infinite;
    animation-delay: 0s;
    animation-play-state: running;
    z-index: 1;
    will-change: transform;
}

@keyframes moveRightToLeft {
    0% { transform: translateX(0) translate(-50%, -50%); }
    100% { transform: translateX(-200%) translate(-50%, -50%); }
}

body:hover .animated-text {
    animation-play-state: running;
}

@media (max-width: 768px) {
    .animated-text {
        font-size: 10rem;
        top: 50%;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    .gallery-background {
        padding-bottom: 100px;
    }
}

footer {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
    margin-top: auto;
    flex-shrink: 0;
}

.copyright {
    position: relative;
    font-size: 0.7rem;
    margin-left: 1rem;
}

.copyright-line {
    border: 0;
    height: 1px;
    background-color: #0e3d7a;
    width: 100%;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    footer {
        flex-direction: row;
        height: 50px;
        padding: 0.25rem 0;
    }
    .copyright {
        font-size: 0.6rem;
        margin-left: 0.5rem;
        white-space: nowrap;
        content: "© 2026 PadelHub";
    }
    .social-icons {
        margin-right: 0.5rem;
    }
}

.social-icons {
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.social-icons a {
    margin: 0 0.3rem;
}

.social-icons img {
    width: 24px;
    height: 24px;
}

.cookie-consent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0e3d7a;
    color: #FFFFFF;
    padding: 1rem;
    text-align: center;
    z-index: 4;
    font-family: 'Inter', Arial, sans-serif;
}

.cookie-consent button {
    background-color: #FFFFFF;
    color: #0e3d7a;
    border: none;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    cursor: pointer;
    font-family: 'Inter', Arial, sans-serif;
}

.cookie-consent button:hover {
    background-color: #E0E0E0;
}

/* === Events page calendar === */

.calendar-container {
  width: 100%;          /* full width */
  margin: 5rem auto;
  padding: 0 2rem;      /* small padding on sides */
  display: flex;
  justify-content: center;
}

.calendar-container iframe {
  border: 0;
  width: 100%;          /* full width of container */
  height: 900px;        /* tall calendar */
  max-width: 1400px;    /* allow it to stretch wider than before */
}

.bouncing-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto; /* adjust size */
  height: auto;
  transform: translate(-50%, -50%);
  animation: bounceAround 12s linear infinite alternate;
  z-index: 5;
}

@keyframes bounceAround {
  0%   { top: 0; left: 0; transform: translate(0, 0); }
  25%  { top: 0; left: 100%; transform: translate(-100%, 0); }
  50%  { top: 100%; left: 100%; transform: translate(-100%, -100%); }
  75%  { top: 100%; left: 0; transform: translate(0, -100%); }
  100% { top: 0; left: 0; transform: translate(0, 0); }
}
