/**
 * File: style_crash.css
 * Description: Styles for the "Jinxed" crash screen joke page.
 * This stylesheet mimics the appearance of a Windows Blue Screen of Death (BSOD).
 */

/* Sets the blue background and default font for the BSOD effect. */
body {
  margin: 0;
  padding: 0;
  background-color: #0079d6; /* A typical BSOD blue */
  color: #fff;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

/* Container for the main text content. */
.container {
  max-width: 40vw;
  text-align: left;
  margin-top: 8%;
  margin-left: 10%;
}

/* The large sad emoticon, e.g., ":(". */
.snif {
  font-size: 20vh;
  font-weight: 300;
  margin-bottom: 3vh;
}

h1 {
  font-size: 4vh;
  font-weight: bold;
  margin-bottom: 2vh;
}

p {
  font-size: 2vh;
  line-height: 1.5;
}

/* "Resolution progress" text. */
.resolution {
  margin-top: 1vh;
  font-size: 3vh;
  font-weight: 500;
}

/* Section containing the QR code and related info. */
.infos {
  display: flex;
  align-items: center;
  margin-top: 4vh;
}

.infos img {
  height: 10vh;
  margin-right: 2vh;
  border-radius: 1.2vh;
}

.infos p {
  font-size: 1.7vh;
}

.error {
  font-family: monospace;
}

/* The Jinx character sprite. */
.jinx-sprite {
  position: fixed;
  bottom: 0;
  right: 5%;
  height: 40vw;
  object-fit: contain;
  z-index: 10;
  pointer-events: none; /* Prevents the image from being clickable. */
  user-select: none; /* Prevents the image from being selectable. */
  filter: drop-shadow(0 0 3vh rgba(0, 0, 0, 0.6));
}

/* Responsive adjustments for smaller screens. */
@media (max-width: 768px) {
  /* On smaller screens, the Jinx sprite becomes part of the main content flow. */
  .jinx-sprite {
    position: relative;
    display: block;
    margin: 2vh auto 0;
    height: 40vh;
    right: auto;
    bottom: auto;
  }

  .container {
    max-width: 80vw;
  }
}