/* === GLOBAL STYLES === */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #e6f9e4;
  color: #222;
}

/* === HEADER SECTION === */
.header {
  text-align: center;
  padding: 20px 0;
  background: none;
}

.header h1 {
  font-size: 2.25rem;
  letter-spacing: 0.5px;
  color: rgba(218,165,32,0.9);
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  margin: 0;
}

.title-underline {
  height: 6px;
  background-color: black;
  width: fit-content;
  margin: 0.5rem auto 1.5rem auto;
}
/* === LANGUAGE SELECTOR (centered under banner) === */
.language-selector {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.language-selector a {
  color: rgba(218,165,32,0.9); /* Matches title gold */
  font-weight: bold;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 1rem;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.language-selector a:hover {
  text-decoration: underline;
}

/* === BANNER IMAGE === */
.banner-image {
  width: 100%;
  max-width: 60%;
  height: 260px;
  margin: 1rem auto 2rem auto;
  border: 1px solid black;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 4px;
  display: block;
}

@media (max-width: 500px) {
  .banner-image {
    max-width: 95%;
    height: 200px;
  }
}

/* === MAIN CONTENT === */
.content {
  max-width: 1000px;
  margin: 1.5rem auto;
  padding: 2rem;
}

/* === ARTICLE SECTION === */
.article {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  line-height: 1.8;
  font-size: 1.15rem;
  text-align: justify;
}

.article h2 {
  margin-top: 0.2rem;
  font-size: 1.4rem;
}

.article p {
  margin-bottom: 1.4rem;
}

.highlight {
  color: #004aad;
  font-weight: bold;
}

.quote {
  font-style: italic;
  color: #444;
  margin: 1.8rem 0;
  line-height: 1.9;
}

/* === ENTER BUTTON === */
.enter-button-container {
  text-align: center;
  margin-top: 2.5rem;
}

.enter-button {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.enter-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* === ANIMATED BANNER === */
.animated-banner {
  background-color: #1d3b5d;
  height: 300px;
  overflow: hidden;
  position: relative;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  max-width: 750px;
}

.animation-container {
  background: url('../images/cityroad.jpg') repeat-x;
  background-size: contain;
  background-position: bottom;
  height: 100%;
  width: 200%;
  animation: scrollCity 10s linear infinite;
  position: absolute;
}

@keyframes scrollCity {
  0% { background-position-x: 0; }
  100% { background-position-x: -100vw; }
}

.cyclists {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.breakaway {
  bottom: 30px;
  left: -10%;
  position: absolute;
}

.grupetto {
  bottom: 30px;
  left: -40%;
  position: absolute;
}

.cyclist {
  width: 80px;
  height: auto;
}
