@charset "utf-8";
/* CSS Document */


body {
  color: #eee;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  text-align: center;
  background: #111 url('/images/tumpeta.jpg') no-repeat center center fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;

}

h1 {
  font-size: 2.2em;
  margin-bottom: 0.5em;
  max-width: 90%;
}

.timer {
  font-size: 2.5em;
  font-weight: bold;
  margin: 0.3em 0;
}

.subtext {
  font-size: 1.1em;
  margin-bottom: 0.5em;
  color: #dfdfdf;
}

img.logo {
  max-width: 180px;
  margin-bottom: 1em;
  filter: drop-shadow(0 0 5px #444);
  position: absolute;
  top: 0;
  right: 0;
}

.fun-fact {
  margin-top: 1em;
  font-size: 1.1em;
  font-style: italic;

  color: #ccc;
}

.always-visible {
  margin-top: 0.5em;
  font-size: 1.2em;
  font-weight: bold;
  color: #ff9999;
}
.content-container {
  background-color: rgba(0, 0, 0, 0.9);
  padding: 2em;
  border-radius: 12px;
  max-width: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.fun-fact {
  margin-top: 1em;
  font-size: 1.1em;
  font-style: italic;
  color: #ccc;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
}

.fun-fact span {
  display: inline-block;
  transform: translateX(100%);
  animation: slide-in 0.8s ease forwards;
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-out {
  animation: slide-out 0.5s ease forwards;
}

@keyframes slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}


@media (max-width: 480px) {
html, body {
  overflow-x: hidden;
}


  body {
    height: 100%;
  }


  .content-container {
    padding: 1em;
    background-color: rgba(0, 0, 0, 0.51);
    box-sizing: border-box;
    margin-top: 40%;
  }

  h1 {
    font-size: 1.4em;
  }

  .timer {
    font-size: 1.8em;
  }

  .subtext, .fun-fact, .always-visible {
    font-size: 1em;
  }

  img.logo {
    max-width: 120px;
  }
  .fun-fact {
    overflow: unset;
    white-space: unset;
  }

}