html {
  scroll-behavior: smooth;
}
body {
  background: linear-gradient(180deg, #fffbe7 0%, #ffe066 40%, #ffb347 80%, #ff7e5f 100%);
  color: #331902;
  font-family: 'Roboto', sans-serif;
  transition: background 0.5s;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
}
img {
  max-width: 100%;
}
hr {
  border: none;
  height: 2px;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 2px;
  margin: 1.2rem 0 1.2rem 0;
  opacity: 0.95;
  display: block;
}
a:link,
a:visited {
  color: #774415;
}
.anchor {
  padding-top: 150px;
  margin-top: -150px;
}
.table {
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(255,94,98,0.10);
  overflow: hidden;
  margin-bottom: 2rem;
}
.table tr,
.table td,
.table th {
  border: none;
  padding: 1.1rem 1.4rem;
  font-size: 1.13rem;
  text-align: center;
  font-family: 'Roboto Slab', Arial, sans-serif;
  background: none;
}
.table thead th {
  background: #fff;
  color: #222;
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-bottom: none;
  text-transform: uppercase;
}
.table tbody tr:nth-child(even) td {
  background: #fff7ed;
}
.table tbody tr:nth-child(odd) td {
  background: #fff;
}
.table tbody tr {
  transition: background 0.2s, box-shadow 0.2s;
}
.table tbody tr:hover td {
  background: #ffe0d2;
  box-shadow: 0 2px 12px rgba(255,94,98,0.08);
}
.table tbody td {
  border-bottom: none;
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.section {
  padding-top: 3rem;
  padding-bottom: 4rem;
}
.dark {
  background-color: #ffb347;
  background-blend-mode: overlay;
  color: #fffbe7;
  background-image: url("img/background-1.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.dark hr {
  border-top: 3px solid #fffbe7;
}
/* .sbg käyttää nyt footerin taustakuvaa (2021lava.jpg) ja kirkkaampaa overlayta */
.sbg {
  background-image: url("img/2021lava.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: rgba(255, 224, 102, 0.65); /* overlay nyt maltillisempi */
  background-blend-mode: overlay;
  color: #774415;
  filter: none;
  position: relative;
}
.sbg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background: inherit;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  background-attachment: inherit;
  background-color: inherit;
  background-blend-mode: inherit;
  filter: brightness(0.96) blur(1.5px);
  pointer-events: none;
  border-radius: inherit;
}
.sbg > * {
  position: relative;
  z-index: 1;
}
.sbg p, .sbg h1, .sbg h2, .sbg h3, .sbg h4, .sbg h5, .sbg h6 {
  color: #111 !important;
}
.sbg hr {
  border-top: 3px solid #ffb347;
}
.black {
  background: black;
  color: #c2a174;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
}
#frontpage-social {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.5rem;
}
#frontpage-social a {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  padding: 0 !important;
  margin: 0 1.2rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: none !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s;
  vertical-align: middle;
  border: none !important;
}
#frontpage-social a svg {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  display: block !important;
}
#frontpage-social a svg * {
  vector-effect: non-scaling-stroke;
}
#frontpage-social a.facebook svg circle {
  fill: #1877f2;
  transition: fill 0.2s;
}
#frontpage-social a.facebook svg path {
  fill: #fff;
  transition: fill 0.2s;
}
#frontpage-social a.instagram svg circle {
  fill: #e1306c;
  transition: fill 0.2s;
}
#frontpage-social a.instagram svg rect,
#frontpage-social a.instagram svg circle:not(:first-child) {
  stroke: #fff;
  fill: #fff;
  transition: fill 0.2s, stroke 0.2s;
}
#frontpage-social a.instagram svg rect {
  fill: none;
}
#frontpage-social a:hover {
  transform: scale(1.12) rotate(-6deg);
}
#frontpage-social a.facebook:hover svg circle {
  fill: #1451a3;
}
#frontpage-social a.instagram:hover svg circle {
  fill: #c13584;
}
#frontpage-social a:focus {
  outline: 2px solid #ffe066;
}
#frontpage-social i {
  vertical-align: middle;
}
.social-button {
  background-color: #c2a174;
  color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  height: 50px;
  width: 50px;
  color: white;
  font-size: 1.5rem;
  transition: all 0.2s ease-in-out;
}
.facebook {
  background-color: #3a5794;
}
.twitter {
  background-color: #1c9cea;
}
.youtube {
  background-color: #f70000;
}
.instagram {
  background: #f09433;
  background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f09433', endColorstr='#bc1888', GradientType=1);
}
.social-button:hover {
  text-decoration: none;
  color: white;
}
/* Korjaa some-ikonien hover-efektit ja keskitys Bootstrap 5:n kanssa */
.social-button i {
  color: white !important;
  font-size: 1.7rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-button:hover, .social-button:focus {
  filter: brightness(1.1);
  text-decoration: none !important;
  color: white !important;
  box-shadow: none;
}
.social-button:active {
  filter: brightness(0.95);
}
/* Estä Bootstrapin linkkityylit some-napeissa */
.social-button, .social-button:visited {
  text-decoration: none !important;
  color: white !important;
}
h1,
h2,
h3,
h4,
h5,
p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
#sponsors {
  /* Poistetaan grid-asettelu ja leveysrajoitukset sponsorilogoriviltä */
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  justify-items: unset !important;
  align-items: unset !important;
  margin-bottom: 0;
  padding: 0;
}
.sponsor-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1.2vw;
  justify-items: center;
  align-items: end;
  justify-content: center;
  margin-top: 0.2em;
  margin-bottom: 2.2em;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.sponsor-row a {
  display: flex;
  align-items: end;
  justify-content: center;
  max-width: 220px;
  width: 100%;
}
.sponsor-row img {
  width: 100%;
  height: auto;
  max-height: 80px;
  max-width: 220px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 0.5em 1.2em;
  box-shadow: 0 2px 12px #b85c1e22;
}
.sponsor-banner-white img {
  background: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 12px #b85c1e22 !important;
  padding: 0.5em 1.2em !important;
}
.sponsor-banner-white {
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 12px #b85c1e22 !important;
  padding: 0.5em 1.2em !important;
}
@media (max-width: 1800px) {
  .sponsor-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .sponsor-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .sponsor-row { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sponsor-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 4vw 6vw;
    max-width: 400px;
  }
  .sponsor-row a {
    max-width: 180px;
  }
  .sponsor-row img {
    max-height: 60px;
    max-width: 140px;
    padding: 0.3em 0.7em;
  }
}
@media (max-width: 600px) {
  .sponsor-row {
    gap: 6vw 4vw;
    max-width: 300px;
  }
}
@media (max-width: 400px) {
  .sponsor-row {
    max-width: 220px;
    gap: 4vw 2vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .sponsor-row a {
    max-width: 100px;
  }
  .sponsor-row img {
    max-width: 90px;
    max-height: 38px;
    padding: 0.15em 0.3em;
  }
}
#footer {
  padding-top: 2rem;
  padding-bottom: 3rem;
  background-color: #0d0603;
  color: #ffe7cb;
}
#footer img {
  max-width: 180px;
  margin: 10px 20px;
  background: rgba(0,0,0,0.78) !important;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.45), 0 1.5px 8px 0 #ffe066;
  transition: box-shadow 0.25s, background 0.25s, transform 0.18s;
}
#footer img:hover {
  background: rgba(0,0,0,0.95) !important;
  box-shadow: 0 8px 40px 0 rgba(0,0,0,0.7), 0 2px 16px 0 #ffe066;
  transform: scale(1.06) rotate(-2deg);
  cursor: pointer;
}
.artists {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.artists .artist-card .artist-card-image {
  position: relative;
  transition: all 0.4s ease-in-out;
  z-index: 1;
}
.artists .artist-card .artist-card-image:hover {
  transform: scale(1.05);
  z-index: 2;
}
.artists .artist-card .artist-card-image:hover .artist-card-content {
  max-height: 400px;
  padding: 0.5rem;
}
.artists .artist-card .artist-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  max-height: 0;
  padding: 0;
  transition: all 0.4s ease-in-out;
  background-color: rgba(30, 20, 10, 0.92); /* tummempi tausta */
  color: #fff; /* valkoinen teksti */
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}
.artists .artist-card .artist-card-content h2 {
  color: #fff !important;
  text-shadow: 0 2px 8px #000;
}
.artists .artist-card .artist-card-content p {
  color: #fff !important;
  background: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
}
.artists .artist-card .artist-card-content .btn {
  color: #fff;
  border-color: #fff;
  background: rgba(120, 80, 40, 0.7);
}
.artists .artist-card .artist-card-content .btn:hover {
  background: #fff;
  color: #774415;
  border-color: #fff;
}
.artists .button {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: 2px solid #c2a174;
  font-weight: bold;
  color: #c2a174;
  background: none;
}
.artists .button:hover {
  text-decoration: none;
}
.modal-content, .modal-body, .modal-title, .modal-header, .modal-footer {
  color: #fff !important;
  text-shadow: none !important;
}
.modal-content {
  background: #000 !important;
  border-radius: 0 0 18px 18px;
}
.modal-body img, .modal-body picture img {
  border-radius: 0 0 10px 10px !important;
}
.modal-dialog {
  max-width: 600px;
}
@media (max-width: 600px) {
  .modal-dialog {
    max-width: 98vw;
    margin: 0.5em auto;
  }
  .modal-content {
    min-height: 320px;
    border-radius: 10px;
  }
  .modal-body img, .modal-body picture img {
    max-height: 65vh !important;
    height: auto !important;
    object-fit: contain !important;
    width: 100% !important;
    display: block;
    margin: 0 auto;
  }
  .modal-header {
    padding-bottom: 1.2rem !important;
  }
  #cookie-consent {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
    overscroll-behavior: contain !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 2.1rem 0.7rem 2.2rem 0.7rem !important;
  }
}
.modal-text, .modal-text p, .modal-text h1, .modal-text h2, .modal-text h3, .modal-text h4, .modal-text h5, .modal-text h6 {
  color: #fff !important;
  /* Kirkas valkoinen teksti, varmistetaan ettei mikään muu sääntö yliaja */
}
.modal-text {
  background: rgba(20, 20, 20, 0.98);
  border-radius: 0 0 1rem 1rem !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.modal-header {
  background: #000 !important; /* Musta tausta otsikolle */
  color: #ffe066 !important; /* Kirkas keltainen otsikkoteksti */
  border-top-left-radius: 1rem !important;
  border-top-right-radius: 1rem !important;
  border-bottom: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.7);
  letter-spacing: 1px;
  font-family: 'Bebas Neue', 'Roboto Slab', Arial, sans-serif;
  font-size: 2rem;
}
.modal-header .modal-title {
  color: #ffe066 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.modal-text a, .modal-text a:visited {
  color: #ffe066 !important;
  text-decoration: underline;
}
.modal-text a:hover, .modal-text a:focus {
  color: #fff !important;
}
.modal-text .btn, .modal-text .btn-secondary {
  color: #fff !important;
  background-color: #444 !important;
  border: none;
}
.modal-text .btn-secondary:hover, .modal-text .btn:hover {
  background-color: #222 !important;
  color: #ffe066 !important;
}
.modal-text h1, .modal-text h2, .modal-text h3, .modal-text h4, .modal-text h5, .modal-text h6 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
#frontpage-header {
  background-image: url("img/background-1.webp");
  /* Fallback for legacy browsers: */
  /* background-image: url("img/background-1.jpg"); */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #774415;
  background-blend-mode: overlay;
  filter: brightness(1) blur(0px);
  transition: filter 0.3s cubic-bezier(0.4,0,0.2,1);
}
#frontpage-header #frontpage-header-container {
  text-align: center;
}
#frontpage-header #frontpage-header-container h1,
#frontpage-header #frontpage-header-container h2 {
  color: white;
  letter-spacing: 3px;
}
@keyframes zoombg {
  0% {
    background-position: left;
  }
  50% {
    background-position: right;
  }
  100% {
    background-position: left;
  }
}
#navigation {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background-color: none;
  font-family: 'Roboto Slab', serif;
  font-weight: bold;
  color: #ffe7cb;
  letter-spacing: 2px;
  transition: background-color 0.2s ease-in-out;
}
#navigation a:link,
#navigation a:visited {
  text-align: center;
  color: inherit;
  transition: color 0.4s ease-in-out;
}
#navigation a:hover {
  color: #c2a174;
}
#navigation .nav-link {
  padding: 0.5rem 1rem ;
}
#navigation .navbar-toggler {
  color: #ffe7cb;
  background: none;
  border: none;
}
#navigation .navbar-nav {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.darkbg {
  background-color: #0d0603;
}
/* Poistetaan artistikorttien sarakkeiden välinen border-right ja pienennetään väliä */
.artists .col-lg-6, .artists .col-md-6 {
    margin-bottom: 24px;
    padding-right: 16px;
    border-right: none;
}

.artists .col-lg-6:not(:last-child), .artists .col-md-6:not(:last-child) {
    border-right: none;
    padding-right: 16px;
}

@media (max-width: 991px) {
    .artists .col-lg-6, .artists .col-md-6 {
        padding-right: 0;
        margin-bottom: 18px;
    }
}

.artist-card {
    margin-bottom: 18px;
}

/* --- Esiintyjäkorttien tasaukset ja padding --- */
@media (min-width: 992px) {
  .artists .col-lg-6 {
    padding-left: 24px;
    padding-right: 24px;
  }
  .artist-card-image picture img {
    width: 100%;
    display: block;
  }
  /* Magellanin kortin alareuna samalle tasalle Rainerin kanssa */
  .artists .col-lg-6 > .artist-card:last-child {
    margin-bottom: 32px;
  }
}

/* Varmistetaan että artistikorttien kuvat ovat samalla linjalla retropopin kanssa */
.artist-card-image picture img {
  box-sizing: border-box;
}

/* Overlay for background fade effect */
#background-fade-overlay {
    z-index: 1;
    pointer-events: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    /* muut overlay-tyylit... */
}
#background-fade-overlay.active {
  opacity: 1;
}
/* Varmistetaan että overlay jää taustalle mutta näkyy päällimmäisen taustakuvan päällä */
body, html {
  position: relative;
  z-index: 1;
}
#main-content, .main-content, .container, .section {
  position: relative;
  z-index: 2;
}
.modal-backdrop {
  z-index: 1050 !important;
}
.modal {
  z-index: 1060 !important;
}
#footer.dark {
  background: url('img/2021lava.webp') center center/cover no-repeat fixed !important;
  /* Fallback: background: url('img/2021lava.jpg') center center/cover no-repeat fixed !important; */
  min-height: 500px;
  width: 100%;
  color: #fff;
  position: relative;
  z-index: 1;
  box-shadow: 0 -8px 40px 0 rgba(0,0,0,0.7);
}
#footer .container {
  position: relative;
  z-index: 2;
}
#footer:before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1;
  border-radius: 0;
}
#footer .container, #footer .container * {
  position: relative;
  z-index: 2;
}
#footer img {
  max-width: 180px;
  margin: 10px 20px;
  background: rgba(0,0,0,0.78) !important;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.45), 0 1.5px 8px 0 #ffe066;
  transition: box-shadow 0.25s, background 0.25s, transform 0.18s;
}
#footer img:hover {
  background: rgba(0,0,0,0.95) !important;
  box-shadow: 0 8px 40px 0 rgba(0,0,0,0.7), 0 2px 16px 0 #ffe066;
  transform: scale(1.06) rotate(-2deg);
  cursor: pointer;
}
#footer h3 {
  color: #ffe066;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
#footer-bottom {
  margin-top: 2rem;
}
/* Eväste-popupin tyyli */
#cookie-consent {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  z-index: 99999 !important;
  overscroll-behavior: contain !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 2.1rem 0.7rem 2.2rem 0.7rem !important;
  background: rgba(20, 12, 2, 0.98) !important;
  color: #ffe7cb !important;
  display: none;
}
#cookie-consent.show {
  display: flex !important;
}
#cookie-consent .cookie-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}
#cookie-consent button {
  margin-left: 1.5rem;
  background: #ffe066;
  color: #331902;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  padding: 0.5rem 1.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 90px;
}
#cookie-consent button:hover {
  background: #ffd700;
}
#cookie-consent a {
  color: #ffe066;
  text-decoration: underline;
}
@media (max-width: 600px) {
  #cookie-consent {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 2.1rem 0.7rem 2.2rem 0.7rem !important;
  }
  #cookie-consent .cookie-content {
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  #cookie-consent button {
    width: auto !important;
    min-width: 120px;
    align-self: flex-end;
    margin-left: 0;
    margin-right: 0;
    display: block;
  }
}

/* Lippu.fi-banner oikeaan alakulmaan */
#lippufi-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}
#lippufi-banner:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
@media (max-width: 600px) {
  #lippufi-banner {
    right: 10px;
    bottom: 10px;
    width: 100px;
  }
  #lippufi-banner img {
    width: 100px !important;
  }
}

/* Estetään vaakasuuntainen scrollaus ja korjataan taustakuvan käyttäytyminen mobiilissa */
html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
}

/* Korjataan .sbg ja .dark taustakuvat mobiilissa: background-attachment: fixed ei toimi iOS/Android, käytä scroll */
@media (max-width: 900px) {
  .sbg, .dark, #frontpage-header {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center !important;
  }
  .sbg::before {
    background-attachment: scroll !important;
  }
}

/* Korjataan eväste-popupin väri mobiilissa (ei keltainen, vaan tumma) */
#cookie-consent {
  background: rgba(20, 12, 2, 0.98) !important;
  color: #ffe7cb !important;
}

@media (max-width: 600px) {
  #cookie-consent {
    background: rgba(20, 12, 2, 0.98) !important;
    color: #ffe7cb !important;
  }
}

/* Parannetaan esiintyjät-osion (dark) fontin kontrastia */
.dark, .dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6, .dark p, .dark li, .dark ul, .dark ol, .dark span, .dark a {
  color: #3a2a0a !important;
  text-shadow: 0 1px 6px #fffbe7cc;
}
.dark hr {
  border-top: 3px solid #3a2a0a;
}
@media (max-width: 600px) {
  #frontpage-social {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  #frontpage-social a {
    margin: 0.5rem 0 !important;
  }
}

/* Lisätään yläpaddingia some-iframeille (Facebook ja Instagram) kaikilla näytöillä */
.fb-page,
iframe[src*="instagram.com"] {
  margin-top: 24px !important;
  padding-top: 12px !important;
  display: block;
}
@media (max-width: 600px) {
  .fb-page,
  iframe[src*="instagram.com"] {
    margin-top: 18px !important;
    padding-top: 10px !important;
  }
}

/* Modernisoidaan fontit yhteystietoihin ja aikataulu/lippuosiin */
/* Otsikoille (h2, h3) moderni, selkeä fontti */
.section .container h2, .section .container h3 {
  font-family: 'Bebas Neue', 'Roboto Slab', Arial, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
/* Yhteystiedot, aikataulut, liput: moderni, selkeä runkofontti */
.section .container, .section .container p, .section .container li, .section .container table, .section .container td, .section .container th {
  font-family: 'Roboto', 'Arial', sans-serif !important;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.1px;
}
/* Yhteystietojen sähköposti ja puhelin korostus */
#yhteystiedot strong {
  font-family: 'Bebas Neue', 'Roboto Slab', Arial, sans-serif !important;
  font-size: 1.15em;
  letter-spacing: 1px;
}

/* Preloader-tyylit */
#preloader {
  position: fixed;
  z-index: 99999;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(180deg, #ffe066 0%, #ffb347 80%, #ff7e5f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(.77,0,.18,1);
}
#preloader.hide {
  opacity: 0;
  pointer-events: none;
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.preloader-text {
  margin-top: 1.2em;
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: #774415;
  text-shadow: 0 2px 8px #fff8;
}
body.loaded #content, body.loaded #frontpage-header, body.loaded #footer {
  animation: fadeInUp 1.1s cubic-bezier(.77,0,.18,1) 0.1s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
body:not(.loaded) #content, body:not(.loaded) #frontpage-header, body:not(.loaded) #footer {
  opacity: 0;
}
@media (max-width: 600px) {
  .preloader-text { font-size: 1.1rem; }
  #preloader img { width: 48px; height: 48px; }
}

/* RompeRock 2025 -kaapparitekstin tyyli: erittäin erottuva, bold, uusi fontti */
#romperock.anchor, h1#romperock {
  font-family: 'Bebas Neue', Impact, 'Arial Black', Arial, sans-serif !important;
  font-size: 3.2rem !important;
  font-weight: 900 !important;
  letter-spacing: 2.5px;
  color: #fff !important;
  text-shadow: 0 6px 32px #000b, 0 1px 0 #fff, 0 0 12px #ffb347;
  background: linear-gradient(90deg, #fff 70%, #ffe066 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  #romperock.anchor, h1#romperock {
    font-size: 2.1rem !important;
    letter-spacing: 1.2px;
  }
}

/* RompeRock 2025 -osio: kappalekohtainen muotoilu */
.romperock-desc p {
  background: rgba(255,255,255,0.72);
  border-radius: 1.1em;
  box-shadow: 0 2px 16px 0 rgba(80,60,20,0.08);
  padding: 1.1em 1.5em;
  margin-bottom: 1.3em;
  font-family: 'Roboto Slab', Arial, sans-serif;
  font-size: 1.13rem;
  color: #3a2a13;
  line-height: 1.7;
  transition: background 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(2.5px);
}
.romperock-desc p:hover {
  background: rgba(255, 240, 200, 0.92);
  box-shadow: 0 4px 24px 0 rgba(120,80,20,0.13);
}
.romperock-desc p:first-of-type {
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #6d3c00;
  background: linear-gradient(90deg, #fffbe6 80%, #ffe066 100%);
  box-shadow: 0 4px 24px 0 rgba(180,140,40,0.10);
}
@media (max-width: 600px) {
  .romperock-desc p {
    font-size: 1.01rem;
    padding: 0.85em 0.7em;
  }
  .romperock-desc p:first-of-type {
    font-size: 1.13rem;
  }
}
/* --- CRITICAL OVERFLOW FIXES FOR COOKIE POPUP --- */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}
#cookie-consent {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  z-index: 99999 !important;
  overscroll-behavior: contain !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 2.1rem 0.7rem 2.2rem 0.7rem !important;
  background: rgba(20, 12, 2, 0.98) !important;
  color: #ffe7cb !important;
  display: none;
}
#cookie-consent.show {
  display: flex !important;
}
#cookie-consent .cookie-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}
#cookie-consent button {
  margin-left: 1.5rem;
  background: #ffe066;
  color: #331902;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  padding: 0.5rem 1.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 90px;
}
#cookie-consent button:hover {
  background: #ffd700;
}
#cookie-consent a {
  color: #ffe066;
  text-decoration: underline;
}
@media (max-width: 600px) {
  #cookie-consent {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 2.1rem 0.7rem 2.2rem 0.7rem !important;
  }
  #cookie-consent .cookie-content {
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  #cookie-consent button {
    width: auto !important;
    min-width: 120px;
    align-self: flex-end;
    margin-left: 0;
    margin-right: 0;
    display: block;
  }
}

/* Esiintyjät-osion kontrastin parannus */
.dark h1, .dark h2, .dark h3 {
  color: #2d1a05 !important;
  text-shadow: 0 1px 6px #fffbe7cc;
}
.dark h4 {
  color: #5a3c13 !important;
  text-shadow: 0 1px 6px #fffbe7cc;
}

/* Sosiaalisen median kehysten ja linkkien yhtenäinen tyyli */
.fb-page,
.ig-embed-frame {
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(120,60,20,0.08);
}
.somelink {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: #774415;
  text-decoration: none;
  transition: color 0.18s;
}
.somelink:hover {
  color: #b85c1e;
  text-decoration: underline;
}
.radio-header-img {
  width:100%;
  max-width:100%;
  height:auto;
  display:block;
  filter: blur(0.2px) drop-shadow(0 8px 32px #b85c1e44);
}
.poster-date-on-radio {
  position:absolute;
  left:0; right:0;
  top:54%;
  width:100%;
  text-align:center;
  font-family:'Bebas Neue','Roboto Slab',Arial,sans-serif;
  font-size:clamp(2.1rem,5vw,4.2rem);
  color:#774415;
  letter-spacing:0.06em;
  text-shadow:0 2px 12px #fff, 0 1px 4px #b85c1e44;
  font-weight:900;
  text-transform:uppercase;
  pointer-events:none;
}
.poster-header {
  width:100%;
  position:relative;
  text-align:center;
  background: linear-gradient(180deg,#ffe066 0%,#ffb347 100%);
  overflow:hidden;
}

/* Musta tausta vain modaalin tekstille, ei slide-popupille */
.modal.show .modal-text, .modal.fade.show .modal-text {
  background: #000 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* --- MODAALI POPUPIN SÄÄDÖT --- */
@media (min-width: 900px) {
  .modal-dialog {
    max-width: 900px;
    width: 80vw;
  }
}
@media (min-width: 1200px) {
  .modal-dialog {
    max-width: 1100px;
    width: 70vw;
  }
}
/* Pyöristetyt ylänurkat vain popupin modalille, ei slide-infolaatikkoon */
.modal.show .modal-content {
  border-top-left-radius: 2rem !important;
  border-top-right-radius: 2rem !important;
}

/* Slide-infolaatikko EI saa pyöristettyjä ylänurkkia */
.slide-info .modal-content {
  border-radius: 0 0 18px 18px !important;
}

/* Mobiilissa popup skaalautuu nätisti */
@media (max-width: 600px) {
  .modal-dialog {
    max-width: 98vw;
    width: 98vw;
    margin: 0.5em auto;
  }
  .modal-content {
    border-radius: 10px !important;
  }
}

/* Popupin minimi korkeus isommilla näytöillä */
@media (min-width: 600px) {
  .modal-content {
    min-height: 520px;
  }
  .modal-body img, .modal-body picture img {
    max-height: 60vh !important;
    height: auto !important;
    width: 100% !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
  }
}

/* Varmistetaan että modal-body ei leikkaa sisältöä */
.modal-body {
  overflow-y: auto;
  max-height: 75vh;
}
