/*
 * Saisonales Weihnachtsthema fuer Tablet und PC.
 * Die Dekoration ist rein visuell, belegt keinen Layoutplatz und reagiert nicht
 * auf Maus- oder Touch-Eingaben. Ohne die servergesteuerte Body-Klasse bleibt
 * der Chat unveraendert.
 */

.chat-theme-christmas-decor {
  display: none;
}

/* Die JavaScript-Erkennung setzt die Klasse nur auf Tablet und PC. Die kleine
 * Mindestbreite verhindert lediglich, dass ein extrem schmal gezogenes
 * Desktopfenster die Dekoration in die Handy-Anordnung quetscht. */
@media (min-width: 481px) {
  body.chat-theme-christmas .main {
    position: relative;
  }

  body.chat-theme-christmas .chat-theme-christmas-decor {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    pointer-events: none;
  }

  body.chat-theme-christmas .chat-theme-christmas-flake {
    position: absolute;
    color: rgba(238, 248, 255, 0.78);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    line-height: 1;
    text-shadow: 0 0 8px rgba(147, 197, 253, 0.44);
    user-select: none;
  }

  body.chat-theme-christmas .chat-theme-christmas-flake.flake-one {
    top: 18%;
    left: 2px;
    font-size: 11px;
  }

  body.chat-theme-christmas .chat-theme-christmas-flake.flake-two {
    top: 42%;
    left: 4px;
    opacity: 0.72;
  }

  body.chat-theme-christmas .chat-theme-christmas-flake.flake-three {
    top: 72%;
    left: 1px;
    font-size: 9px;
    opacity: 0.62;
  }

  body.chat-theme-christmas .chat-theme-christmas-flake.flake-four {
    top: 34%;
    right: 2px;
    font-size: 10px;
    opacity: 0.68;
  }

  body.chat-theme-christmas .chat-theme-christmas-flake.flake-five {
    top: 78%;
    right: 1px;
    font-size: 12px;
  }

  body.chat-theme-christmas .chat-radio-head {
    position: relative;
    isolation: isolate;
  }

  body.chat-theme-christmas .chat-radio-head::before {
    content: "";
    position: absolute;
    top: -13px;
    right: 0;
    left: 0;
    z-index: 2;
    height: 50px;
    background: url("images/themes/christmas/garland-lights.png") center top / 100% 100% no-repeat;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.38));
    opacity: 0.96;
    pointer-events: none;
  }

  body.chat-theme-christmas .chat-radio-head > * {
    position: relative;
  }

  body.chat-theme-christmas .chat-radio-head h1,
  body.chat-theme-christmas .chat-radio-head .notification-wrap,
  body.chat-theme-christmas .chat-radio-head .radio-ticker {
    position: relative;
    z-index: 3;
  }

  body.chat-theme-christmas .radio-track-display > * {
    position: relative;
    z-index: 3;
  }

  body.chat-theme-christmas .radio-player {
    position: relative;
    overflow: visible;
    border-color: rgba(245, 208, 112, 0.42);
    background:
      linear-gradient(135deg, rgba(17, 54, 47, 0.92), rgba(40, 31, 72, 0.94));
    box-shadow:
      0 8px 22px rgba(0, 0, 0, 0.24),
      0 0 16px rgba(245, 208, 112, 0.10);
  }

  body.chat-theme-christmas .radio-player > * {
    position: relative;
    z-index: 3;
  }

  body.chat-theme-christmas .messages-wrapper {
    position: relative;
  }

  body.chat-theme-christmas .messages-wrapper::before {
    content: "";
    position: absolute;
    top: -12px;
    right: 0;
    left: 0;
    z-index: 7;
    height: 36px;
    background: url("images/themes/christmas/snow-edge.png") center top / 100% 100% no-repeat;
    filter: drop-shadow(0 2px 3px rgba(185, 217, 239, 0.34));
    pointer-events: none;
  }

  body.chat-theme-christmas .messages {
    background:
      linear-gradient(180deg, rgba(229, 242, 252, 0.08) 0, transparent 28px),
      rgba(18, 25, 56, 0.95);
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.18),
      inset 0 1px rgba(241, 248, 255, 0.68),
      inset 0 8px 13px -12px rgba(255, 255, 255, 0.72);
  }
}

@media (min-width: 1101px) {
  body.chat-theme-christmas .rightbar {
    position: relative;
    isolation: isolate;
  }

  body.chat-theme-christmas .rightbar::before {
    content: "\2744";
    position: absolute;
    top: 45px;
    left: 14px;
    z-index: 0;
    color: rgba(226, 241, 255, 0.34);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1;
    text-shadow:
      30px 380px 0 rgba(226, 241, 255, 0.30),
      300px 470px 0 rgba(226, 241, 255, 0.38),
      120px 570px 0 rgba(226, 241, 255, 0.26),
      320px 690px 0 rgba(226, 241, 255, 0.34),
      65px 790px 0 rgba(226, 241, 255, 0.24);
    pointer-events: none;
    user-select: none;
  }

  body.chat-theme-christmas .rightbar-scroll,
  body.chat-theme-christmas .rightbar > .sidebar-copyright {
    position: relative;
    z-index: 1;
  }

  body.chat-theme-christmas .sidebar {
    position: relative;
  }

  body.chat-theme-christmas .sidebar::after {
    content: "\2744";
    position: absolute;
    top: 72px;
    left: 5px;
    z-index: 2;
    color: rgba(231, 244, 255, 0.48);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9px;
    line-height: 1;
    text-shadow:
      238px 44px 0 rgba(231, 244, 255, 0.42),
      7px 278px 0 rgba(231, 244, 255, 0.38),
      236px 430px 0 rgba(231, 244, 255, 0.44),
      12px 670px 0 rgba(231, 244, 255, 0.34);
    pointer-events: none;
    user-select: none;
  }

  body.chat-theme-christmas .sidebar .logo {
    position: relative;
    isolation: isolate;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.58);
  }

  body.chat-theme-christmas .sidebar .logo::before {
    content: "";
    position: absolute;
    top: -25px;
    left: 145px;
    z-index: -1;
    width: 90px;
    height: 80px;
    background-image: url("images/themes/christmas/santa-peek.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 118px auto;
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.38));
    transform: rotate(-3deg);
    pointer-events: none;
  }
}

@media (min-width: 1101px) and (max-width: 1350px) {
  body.chat-theme-christmas .sidebar .logo::before {
    top: -23px;
    left: 142px;
    width: 86px;
    height: 76px;
    background-size: 112px auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.chat-theme-christmas .chat-theme-christmas-decor,
  body.chat-theme-christmas .chat-theme-christmas-flake,
  body.chat-theme-christmas .chat-radio-head::before,
  body.chat-theme-christmas .messages-wrapper::before,
  body.chat-theme-christmas .sidebar .logo::before {
    animation: none !important;
    transition: none !important;
  }
}
