/* Styles applied to index.html for the loading screen, prior to the app being injected */
/* Dashy - Licensed under MIT, (C) Alicia Sykes 2024 */

@font-face {
  font-family: "AvantGardeGothicLTCondensedDemi";
  src: url("fonts/ITC Avant Garde Gothic LT Condensed Demi.ttf");
}

body { margin: 0; }
#app .loading-placeholder {
  position: absolute;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: progress;
  background-image: url(/bgs/twinpeaks_road.jpg);
  background-size: cover;
}
#app .loading-placeholder h1 {
  font-size: 20vh;
  margin: 1rem auto;
  font-family: AvantGardeGothicLTCondensedDemi, Tahoma, monospace;
  cursor: progress;
  color: #5f403a;
  text-shadow: 0.03em 0.03em 0 #69D86B,-0.03em -0.03em 0 #69D86B,0.03em -0.03em 0 #69D86B,-0.03em 0.03em 0 #69D86B,0 0.03em 0 #69D86B,0.03em 0 0 #69D86B,0 -0.03em 0 #69D86B,-0.03em 0 0 #169902,3px 3px 2px #000000;
}
#app .loading-placeholder p.loading {
  font-size: 5rem;
  opacity: 0.75;
  font-family: monospace;
  cursor: progress;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #5f403a;
  text-shadow: 0.03em 0.03em 0 #69D86B,-0.03em -0.03em 0 #69D86B,0.03em -0.03em 0 #69D86B,-0.03em 0.03em 0 #69D86B,0 0.03em 0 #69D86B,0.03em 0 0 #69D86B,0 -0.03em 0 #69D86B,-0.03em 0 0 #169902,3px 3px 2px #000000;
}
#app .loading-placeholder .catastrophic-error p {
  color: #e11a4bfc;
  margin: 0.5rem 0;
  font-weight: bold;
  font-size: 4vh;
  text-align: center;
  font-family: monospace;
  text-shadow: 1px 2px 1px #090909, 0 0 0 #000, 0 1px 1px #000000
}
#app .loading-placeholder .catastrophic-error p.err-l2 {
  opacity: 0.75;
  font-size: 2vh;
  font-weight: normal;
  padding: 0 1rem;
}
#app .loading-placeholder .catastrophic-error p.err-l2 a {
  color: #e11a4bfc;
}
#app .loading-placeholder.still-not-loaded { cursor: default; }
#app .loading-placeholder.still-not-loaded p.loading { display: none; }
#app .loading-placeholder.still-not-loaded .catastrophic-error { display: block !important; }
@media (max-width: 780px) {
  .loading-placeholder h1 { font-size: 12vh !important; }
  #app .loading-placeholder .catastrophic-error p { font-size: 2.5vh !important; }
  #app .loading-placeholder .catastrophic-error p.err-l2 { font-size: 1.2vh !important; }
}
::selection { color: #121212; }
