 Yleinen tyyli */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #111, #222);
  overflow: hidden; /* Estää skrollauspalkit */
  font-family: 'Montserrat', sans-serif; /* <-- LISÄTTY TÄHÄN */
  color: white;
}

/* Varmista, että kaikki elementit noudattavat border-box mallia */
* {
    box-sizing: border-box; 
    margin: 0;             
    padding: 0;            
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; 
}

/* Tausta-alue pallolle (sen liikealue) */
#taustaAlue {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100vw;       
  height: 100vh;      
  z-index: 0;
  overflow: hidden;   
}

/* Väriluokat – nämä asettavat vain taustavärin */
.kultainen {
  background-color: gold;
}
.punainen { 
  background-color: red;
}
.green {
  background-color: green;
}
#pallo {
  position: absolute;
  z-index: 1;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  /* POISTA NÄMÄ RIVIT: */
  /* background-color: gold; */
  /* box-shadow: 0 0 20px gold; */
  /* Jätä border, transition ja muut vastaavat */
  border: 2px solid black; 
  transition: all 0.3s ease; 
}

/* --- Väriluokat --- Nämä ovat nyt ne, jotka asettavat värin! */

.kultainen {
  background-color: gold;
  box-shadow: 0 0 20px gold;
}

.punainen {
  background-color: salmon; 
  box-shadow: 0 0 20px salmon;
}

.vihrea { 
  background-color: lightgreen; 
  box-shadow: 0 0 20px lightgreen;
}

.taivaansininen {
  background-color: skyblue;
  box-shadow: 0 0 20px skyblue;
}

.koralli {
  background-color: coral;
  box-shadow: 0 0 20px coral;
}

.persikka {
  background-color: peachpuff;
  box-shadow: 0 0 20px peachpuff;
}

.laventeli {
  background-color: lavender;
  box-shadow: 0 0 20px lavender;
}

.sitr_keltainen { 
  background-color: lemonchiffon;
  box-shadow: 0 0 20px lemonchiffon;
}

.harmaa {
  background-color: lightgray;
  box-shadow: 0 0 20px lightgray;
}
/* Ohjauspaneeli */
#ohjauspaneeli {
  position: fixed;
  z-index: 10;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
 color: white; /* Asettaa kaiken tekstin värin valkoiseksi ohjauspaneelissa */
padding: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 14px;
  backdrop-filter: blur(4px);
}

#ohjauspaneeli label,
#ohjauspaneeli select,
#ohjauspaneeli input {
  color: white;
}

#ohjauspaneeli input[type=range] {
  width: 100px;
}

#ohjauspaneeli input[type=number] {
  width: 50px;
}

#ohjauspaneeli select,
#ohjauspaneeli input[type=number],
#ohjauspaneeli input[type=range] {
  background-color: #222;
  color: white;
  border: 1px solid #555;
  padding: 4px;
  border-radius: 4px;
  appearance: none;
}

#ohjauspaneeli select:focus,
#ohjauspaneeli input:focus {
  outline: none;
  border-color: #fde506;
}

/* Ajastin */
#ajastin {
  font-weight: bold;
  font-color: white;
  font-size: 14px;
}

/* KalPa-tyyliset napit */
.MikaKalpaFaniNappi {
  background-color: black;
  color: yellow;
  border: 2px solid yellow;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.MikaKalpaFaniNappi:hover {
  background-color: #333;
  color: white;
  border-color: #eee;
}

/* Nykyinen .MikaMujunenLogo -tyyli */
.MikaMujunenLogo {
  display: inline-block;
  padding: 4px 8px;
  background-color: transparent;
  border: 1px solid yellow;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: lowercase;
  letter-spacing: 0.2px;
  text-decoration: none;
  box-shadow: 0 0 5px yellow, 0 0 10px rgba(255, 255, 0, 0.3);
  transition: all 0.3s ease;
}

/* Aseta linkin väri ja poista alleviivaus kaikissa tiloissa */
.MikaMujunenLogo a:link,
.MikaMujunenLogo a:visited,
.MikaMujunenLogo a:hover,
.MikaMujunenLogo a:active {
  color: rgb(229, 233, 7); /* Yleinen keltainen väri linkille */
  text-decoration: none; /* Varmista, ettei alleviivausta näy */
}

/* Voit säilyttää :hover tyylin jos haluat eri värin hiirellä */
.MikaMujunenLogo a:hover {
  color: #fae206; /* Hieman eri keltainen hiirellä */
}

.MikaMujunenLogo:hover {
  background-color: rgba(255, 255, 0, 0.1);
  color: #fae206;
  border-color: #FFFF00;
  box-shadow:
    0 0 15px #FFFF00,
    0 0 30px rgba(255, 255, 0, 0.9),
    0 0 60px rgba(255, 255, 0, 0.7),
    0 0 100px rgba(255, 255, 0, 0.5);
  transform: translateY(-1px);
}

#palloteksti {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(12, 12, 12); /* Vaihda valkoiseksi, jos pallo on tumma */
  font-weight: bold;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  pointer-events: none; /* Varmistaa ettei häiritse klikkauksia */
  z-index: 2; /* Varmistaa että näkyy pallon päällä */
}

