html,body{
    margin:0;
    padding:0;
    overflow: hidden;
    background: black;
    position: relative;
    width: 1280px;
    height: 720px;
}


@font-face {
    font-family: "PixelifySans";
    src: url('/static/font/PixelifySans-VariableFont_wght.ttf');
    font-weight:400;
    font-weight:normal;
}



#qrcode{
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 510px;
    padding: 5px;
    background: white;
    box-shadow: 0 0 16px white;
}


.hidden{
    font-family: "PixelifySans";
    font-weight: 500;
}

#dramaticOverlay{
    position:absolute;
    width:100%;
    height:100%;
    z-index:3;
    display: flex;
    background: url("/static/img/messagegraphics/dots.png");
    animation-name: backgrounddrift;
    animation-duration: 6s;
     animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.dramatic-overlay {
    
    backdrop-filter: blur(6px) saturate(120%);
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1450ms cubic-bezier(.2,.9,.3,1), transform 450ms cubic-bezier(.2,.9,.3,1);
    justify-content:center;
    align-items: center;
    mask-image: linear-gradient(180deg,rgba(255, 0, 0, 0) 10%, rgba(245, 120, 45, 1) 30%, rgba(238, 204, 77, 1) 70%, rgba(237, 221, 83, 0) 90%);
}

.dramatic-overlay .card {
    position: relative;
    max-width: min(900px, 92vw);
    font-family: "PixelifySans";
    margin: 0;
    width: 100%;
    padding: 116px 184px;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    pointer-events: auto;            /* allow interaction with card */
    transform: translateY(20px) scale(.98);
    opacity: 0;
    transition: opacity 480ms cubic-bezier(.18,.9,.3,1), transform 480ms cubic-bezier(.18,.9,.3,1);
    box-shadow:
      0 10px 30px rgba(0,0,0,0.6),
      0 2px 8px rgba(255,40,80,0.06) inset;
    background:
    radial-gradient(circle,rgba(255, 0, 0, 1) 0%, rgba(237, 221, 83, 1) 100%);
        border: 8px solid white;
        outline: 2px solid black;
  }


  .dramatic-overlay .card h1 {
    margin: 0 0 10px;
    font-size: clamp(22px, 4vw, 44px);
    letter-spacing: -0.02em;
    line-height: 1.03;
    font-weight: 800;
    text-shadow: 0 6px 30px rgba(0,0,0,0.6);
  }

  .dramatic-overlay .card p {
    margin: 0 0 18px;
    font-size: 29px;
    color: rgba(255,255,255,0.92);
    opacity: 0.95;
  }

  /* Accent underline / animated light sweep */
  .dramatic-overlay .accent {
    height: 6px;
    width: 60%;
    margin: 16px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.18), rgba(255,255,255,0.06));
    position: relative;
    overflow: hidden;
  }
  .dramatic-overlay .accent::after{
    content: "";
    position: absolute;
    top: -40%;
    left: -40%;
    width: 40%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.0), rgba(255,255,255,0.45), rgba(255,255,255,0.0));
    transform: rotate(12deg) translateX(-120%);
    transition: transform 900ms cubic-bezier(.2,.9,.3,1);
  }


  /* Visible state */
  .dramatic-overlay.show { display: flex; pointer-events: auto; opacity: 1;}
  .dramatic-overlay.show .backdrop { opacity: 1; transform: scale(1); }
  .dramatic-overlay.show .card { opacity: 1; transform: translateY(0) scale(1); }
  .dramatic-overlay.show .accent::after { transform: rotate(12deg) translateX(240%); transition-duration: 1200ms; }


@keyframes backgrounddrift {
  from {background-position-x: 0%;}
  to {background-position-x: 100%;}
}