/* --- Perustyyli --- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111; /* musta */
  color: #eee; /* vaalea teksti */
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

/* --- Site container kaikille sivuille --- */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.content-box {
  max-width: 1100px;       /* Rajoittaa tekstin leveyttä */
  margin: 0 auto 2rem;    /* Keskittää ja lisää tilaa alle */
  padding: 0rem;        /* Sisätilaa laatikon sisään */
  font-size: 1.2rem;      /* Teksti vähän oletusta isommaksi (~17–18px) */
  line-height: 1.1;       /* Riviväli helpommaksi lukea */

}

/* --- Header / Banner --- */
header.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0abdc6;
  padding: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Mobiili: näytöt alle 1000px */
@media (max-width: 1000px) {
  .banner-text h1 {
    font-size: 1.8rem; /* Pienempi koko mobiilissa */
  }
}

header img.logo {
  height: 270px;
  margin-right: 1rem;
  max-width: 100%;
  transition: transform 0.3s ease, filter 0.3s ease;
}

header img.banner {
  height: 160px;
  margin-left: 1rem;
  max-width: 100%;
  transition: transform 0.3s ease, filter 0.3s ease;
}

header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 3rem); /* skaalautuu ruudun mukaan */
  white-space: normal; /* rivittyy tarvittaessa */
  font-weight: bold;
  word-wrap: break-word; /* jos todella pitkä sana */
  color: #111;
  flex-grow: 1;
  text-align: center;
  line-height: 1.1;
  transition: color 0.3s ease, transform 0.3s ease;
}

header h1:hover {
  color: #0ff;
  transform: scale(1.05);
}

.banner-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.under-construction {
  font-size: 1.3rem;
  color: #0ff;
  font-style: italic;
  margin-top: 0.2rem;
}

/* --- Sub navigation --- */
.sub-nav {
  text-align: center;
  margin: 1rem 0;
  font-size: 1.2rem;
}

.sub-nav a {
  color: #0ff;
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
}

.sub-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

/* --- Main content --- */
main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
}

section {
  margin-bottom: 3rem;
}

h2 {
  border-bottom: 2px solid #0abdc6;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: #0abdc6;
}

ul {
  list-style-type: square;
  padding-left: 1.5rem;
}

/* Quote section */
.quote-container {
  display: flex;
  align-items: center;
  max-width: 800px;
  margin: 2rem auto;
  gap: 1rem;
}

.quote-image {
  width: 200px;
  height: auto;
  border-radius: 5px;
}

.quote-text {
  font-size: 1rem;
  color: #0ff;
  font-style: italic;
  line-height: 1.4;
}

/* --- Gallery / Kuvia --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 100%;
  margin: 0 auto;
  max-width: 1100px;  /* Maksimileveys koko riville */
  margin: 0 auto;    /* Keskittää rivin */
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 5px;
  box-shadow: 0 0 20px #000;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #0ff;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: #fff;
  font-weight: bold;
  font-size: 40px;
  user-select: none;
  transition: color 0.3s;
}

.prev:hover, .next:hover {
  color: #0ff;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* --- Footer --- */
footer {
  background: #222;
  color: #ddd;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-column {
  text-align: left;
  max-width: 300px;
}

.footer-column a {
  color: #0ff;
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
}

.footer-column a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.footer-logos img {
  height: 60px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logos img:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* --- Hover efektit headerille --- */
header img.logo:hover,
header img.banner:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* --- Link hover globaalisti --- */
a {
  color: #0ff;
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

/* --- Responsiivisuus --- */
@media (max-width: 768px) {
  header.banner {
    flex-direction: column;
    text-align: center;
  }

  header img.logo {
    height: 120px;
    margin: 0.5rem 0;
  }

  header img.banner {
    height: 100px;
    margin: 0.5rem 0;
  }

  .banner-text {
    align-items: center;
  }

  .quote-container {
    flex-direction: column;
    text-align: center;
  }

  .quote-image {
    width: 100%;
    max-width: 300px;
  }

  .footer-top {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-left {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-logos {
    margin-top: 1rem;
  }

  .gallery {
    grid-template-columns: 1fr; /* yksi kuva per rivi mobiilissa */
  }
}


/* Some-linkin logo */
.social-icon {
  height: 20px;          /* logon korkeus */
  width: auto;
  vertical-align: middle; /* keskittää tekstin kanssa */
  margin-right: 0.5rem;  /* pieni väli tekstin ja logon väliin */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-column a:hover .social-icon {
  transform: scale(1.1);
  filter: brightness(1.2);
}