/* Perus */
* { box-sizing: border-box; margin:0; padding:0; }

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Merriweather', Georgia, "Palatino Linotype", "Book Antiqua", serif;
  background: linear-gradient(90deg, rgba(15,3,3,1) 0%, rgba(36,56,48,1) 50%, rgba(0,0,0,1) 100%);
  color: #EAEAEA; /* vaaleampi perusväri */
}

/* Page wrapper täyttää jäljellä olevan tilan */
.page-wrapper {
  flex: 1;  /* vie tilan footerin alapuolelta */
  display: flex;
  min-height: 0;
}

/* NAV */
nav {
  width: 180px;
  background: #33023B;
  padding: 10px;
  display: flex;
  flex-direction: column;
  row-gap: 15px;
}

nav ul { list-style:none; padding:0; }
nav li { margin-bottom: 10px; }

nav a {
  color: #FFDFA0;      /* vaalea keltainen */
  text-decoration: none;
}

nav a:hover {
  color: #FFFFFF;      /* valkoinen hoverissa */
}

nav a:visited {
  color: #FFEEAA;      /* hieman tummempi vaalea linkin jälkeen */
}

/* MAIN sisältö */
main {
  flex: 1; /* vie jäljelle jäävän tilan */
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  overflow: hidden;
  padding: 10px;
  color: #F0F0F0; /* vaalea teksti pääsisällölle */
}

/* Glow header */
.glow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 15px;
}
.glowing {
  font-size: 88px;
  color: #080808; /* musta päällisteksti */
  text-shadow: 4px 4px 2px #3F7FBF;
  mix-blend-mode: screen;
  animation: fadeIn 5.5s linear forwards;
  text-align: center;
}

.logo { max-width:100%; height:auto; }

#live-content {
  background: rgba(0,0,0,0.2);
  padding: 15px;
  margin: 10px auto;
  width: 95%;
  max-width: 1200px;
  min-height: 200px;
  overflow: auto;
  border-radius: 5px;
  color: #F5F5F5; /* vaaleampi sisältöteksti */
}

/* Footer */
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #171E3D;
  color: #E0E0E0; /* vaaleampi footer-teksti */
  text-align: center;
  padding: 10px 0;
}

/* Animointi */
@keyframes fadeIn {
  0% { opacity:0; }
  88% { opacity:1; }
}

/* Mobiili */
@media (max-width:768px){
  .page-wrapper { flex-direction: column; }
  nav {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
  }
  
  a:link{color:#FEF8DD}
a:active{color:#6F0300}
a:visited{color:#ACDDDE}
a:hover{color:inherit}
  
  #live-content img {
    max-width: 100%;     /* ei ylitä ikkunan leveyttä */
    max-height: 60vh;    /* korkeutta rajoitetaan 60% näkymän korkeudesta */
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;      /* keskitys */
  }

  .glowing { font-size:48px; }
  .iframe-wrapper iframe { width:95vw; height:60vh; }
}