html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: white;
  font-family: 'Nunito Sans', sans-serif;
  overflow: hidden;
}

#app {
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* Textrutan till vänster */
#header {
  position: absolute;
  left: 3vw;
  top: 8vh;
  width: 21vw;
  height: 84vh;
  text-align: left;
  border: none;
  padding: 2vw 1.5vw;
  box-sizing: border-box;
  z-index: 5;
}

#titleText {
  font-size: 4vw;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.08;
  font-family: 'Nunito Sans', sans-serif;
}

#infoText {
  margin-top: 3vh;
  font-size: 2vw;
  line-height: 1.35;
  white-space: pre-line;
  font-weight: 400;
  font-family: 'Nunito Sans', sans-serif;
}

/* Kontrollpanelen */
#controls {
  position: absolute;
  top: 4vh;
  right: 4vw;
  width: 18vw;
  z-index: 10;
}

label {
  display: block;
  font-size: 1.35vw;
  font-weight: bold;
  margin-top: 1vh;
  letter-spacing: 0.04em;
}

input, textarea {
  width: 100%;
  box-sizing: border-box;
  background: #111;
  color: white;
  border: 1px solid white;
  padding: 0.6vw;
  font-size: 1.15vw;
  font-family: 'Nunito Sans', sans-serif;
}

textarea {
  height: 5vw;
  resize: none;
}

button {
  font-family: 'Nunito Sans', sans-serif;
  margin-top: 1.5vh;
  width: 70%;
  margin-left: 15%;
  padding: 0.8vw;
  border-radius: 1.5vw;
  border: 1px solid white;
  background: #555;
  color: white;
  font-size: 1.3vw;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #777;
}

#hint {
  margin-top: 1.7vh;
  font-size: 1.25vw;
  font-weight: bold;
  line-height: 1.25;
}

/* Bildrutan – mycket större */
#slideshowBox {
  position: absolute;
  left: 26vw;
  top: 4vh;
  width: 71vw;
  height: 92vh;
  background: black;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  background: black;
}

.slide.visible {
  opacity: 1;
}

#message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #222;
  font-size: 2vw;
  font-weight: bold;
}

/* När bildspelet körs */
body.running #controls {
  display: none;
}

body.running #slideshowBox {
  background: black;
}

body.running #message {
  display: none;
}

/* När något gått fel */
body.error #message {
  color: white;
  background: #550000;
  padding: 2vw;
  text-align: center;
}