@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&display=swap');

/* =========================================
01. GLOBAL / BASE STYLES
========================================= */

:root {
--bg: #333;
--char: #150d09;
--paper: #fdfdf9;
--ink: #f6e9da;
--muted: #dbb145;
--gold: #e0c551;
--hand: "Kalam", sans-serif;
--ui: "Bricolage Grotesque", sans-serif;
--pad-left: clamp(50px, 13vw, 96px);

/* Layer order, lowest to highest. Screens are stacked by these values,
    not by their order in the HTML or in the script. */
--z-result: 1;   /* behind the page so it is revealed as the page burns */
--z-page: 2;     /* notebook */
--z-fire: 3;     /* fire canvas */
--z-message: 10; /* intro message */
--z-splash: 12   /* splash */
}

.kalam-light {
font-family: "Kalam", cursive;
font-weight: 300;
font-style: normal;
}

.kalam-regular {
font-family: "Kalam", cursive;
font-weight: 400;
font-style: normal;
}

.kalam-bold {
font-family: "Kalam", cursive;
font-weight: 700;
font-style: normal;
}


*,
*::before,
*::after {
box-sizing: border-box
}

html,
body {
margin: 0;
min-height: 100%
}

body {
background: var(--char);
color: var(--ink);
font-family: var(--ui);
overflow-x: hidden
}

button {
width: 100%;
border: 0;
border-radius: 8px;
padding: 16px 32px;
background: #f94b2b;
/* background: linear-gradient(0deg, #f94b2b, #f0a119); */
color: #fff;
font-family: var(--ui);
font-weight: 600;
font-size: 1rem;
cursor: pointer;
touch-action: manipulation
}

@media all and (min-width: 480px){
button,
#result p{
    font-size: 1.25rem
}
}

@media all and (min-width: 768px){
button,
#result p {
    font-size: 1.5rem;
}
}

@media all and (min-width: 992px) and (orientation: landscape){
button,
#result p {
    font-size: 1.25rem;
}
}

button:disabled {
cursor: not-allowed;
background: #54493a;
color: #2f2d27;
}

button:focus-visible,
textarea:focus-visible {
outline: 3px solid var(--gold);
outline-offset: 3px
}

[hidden] {
display: none !important
}

.city-bg{
background-image: url(/media/zoxla4wk/bg7-mobile.jpg);
background-repeat: no-repeat!important;
background-size: cover!important;
background-position: center!important;
}

.holo-bg{
background-image: url(/media/ggbl0uxh/holo.jpg);
background-repeat: no-repeat!important;
background-size: cover!important;
background-position: center!important;
}

@media all and (min-width: 992px){
    .city-bg{
    background-image: url(/media/2nhdszof/bg7.jpg);
    }
}

/* =========================================
02. SPLASH SCREEN
========================================= */

/* Optional timed GIF splash. Shown/hidden with the shared .show class. */
#splashScreen {
z-index: var(--z-splash);
background: #012ee2
}

#splashScreen .splash-gif {
display: block;
width: 100%;
object-fit: contain;
margin: auto
}

#splashScreen .splash-inner {
width: 100%;
margin: auto;
text-align: center
}

/* =========================================
03. INTRO MESSAGE
========================================= */

#message {
position: fixed;
inset: 0;
z-index: var(--z-message);
display: flex;
align-items: center;
justify-content: center;
padding: 3rem;
text-align: center;
/* background: radial-gradient(ellipse at center, #332018, var(--char) 75%); */
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity .8s, visibility .8s
}

#message.show {
opacity: 1;
visibility: visible
}

#messageText {
max-width: 740px;
font-family: var(--hand);
font-weight: 700;
line-height: 1.2;
font-size: 2rem; 
}

@media all and (min-width: 400px){
#messageText {
    font-size: 2.25rem;
}
}

@media all and (min-width: 480px){
#messageText {
    font-size: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
}
}

@media all and (min-width: 576px){
#messageText {
    font-size: 3.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
}

@media all and (min-width: 768px){
#messageText {
    font-size: 4rem;
    padding-left: 5rem;
    padding-right: 5rem;
}
}

/* =========================================
04. MAIN NOTEBOOK PAGE
========================================= */

#page {
position: fixed;
top: 0;
left: 0;
right: 0;
height: var(--vvh, 100dvh);
z-index: var(--z-page);
display: flex;
justify-content: center;
overflow-y: auto;
clip-path: inset(0);
-webkit-clip-path: inset(0)
}

.page-inner {
width: 100%;
max-width: 600px;
display: flex;
flex-direction: column;
padding: 1.5rem;
}

@media all and (min-width: 400px){
.page-inner {
    padding: 2rem;
}
}

@media all and (min-width: 576px){
.page-inner {
    padding: 3rem 4.5rem;
}
}

@media all and (min-width: 768px){
.page-inner {
    padding: 4rem 3rem;
}
}

@media all and (min-width: 992px) and (orientation: portrait){
.page-inner {
    padding: 8rem 3rem;
}
}

@media all and (min-width: 992px) and (orientation: landscape){
.page-inner {
    padding: 4rem 3rem;
}
}

.brand {
text-align: center;
}

/* Logo collapses while the keyboard is open so the paper and button stay visible */
.kb .brand {
display: none
}

.brand img {
display: block;
max-width: 100%;
width: auto;
max-height: 17dvh;
margin: auto
}

@media all and (min-width: 576px){
.brand img {
    max-height: 22.5dvh;
}
}

.subtitle {
color: #bdbdbd;
font-size: clamp(.95rem, 3.8vw, 1.05rem);
line-height: 1.5
}

.brand .logo-fallback {
font-size: 2rem;
font-weight: 800;
min-height: 110px;
display: flex;
align-items: center;
justify-content: center
}

.entry-label {
display: block;
font: 500 1.25rem var(--hand);
line-height: 1.1;
margin: 1rem 1rem .5rem 1rem;
text-align: center;
}

@media all and (min-width: 400px){
.entry-label {
    margin: 1rem 2rem .5rem 2rem;
}
}

@media all and (min-width: 480px){
.entry-label {
    font-size: 1.5rem;
}
}

@media all and (min-width: 576px){
.entry-label {
    font-size: 1.75rem;
}
}

@media all and (min-width: 768px){
.entry-label {
    font-size: 2rem;
}
}

@media all and (min-width: 992px) and (orientation: landscape){
.entry-label {
    margin: 2rem 2rem .75rem 2rem;
}
}  

.paper-wrap {
position: relative;
display: flex;
flex: 1 1 auto;
min-height: 150px;
margin: 22px 0 8px
}

.paper-tag {
position: absolute;
top: -10px;
left: 18px;
z-index: 1;
padding: 4px 12px;
border-radius: 4px;
background: var(--gold);
color: #1a0f09;
font: 700 .8rem var(--ui);
pointer-events: none
}

@media all and (min-width: 480px){
.paper-tag {
    top: -12px;
    font-size: 1rem;
}
}

.paper {
display: block;
width: 100%;
height: 100%;
resize: none;
overflow: auto;
border: 0;
border-radius: 8px;
color: #222;
font-family: var(--hand);
font-size: 1.125rem;
font-weight: 500;
line-height: 40px;
padding: 20px 20px 34px var(--pad-left);
margin: 0;
background-color: var(--paper);
background-image: linear-gradient(to bottom, transparent 39px, rgba(105, 145, 205, .5) 39px), linear-gradient(90deg, transparent calc(var(--pad-left) - 18px), #e06c6c calc(var(--pad-left) - 18px) calc(var(--pad-left) - 17px), transparent calc(var(--pad-left) - 17px) calc(var(--pad-left) - 11px), #e06c6c calc(var(--pad-left) - 11px) calc(var(--pad-left) - 10px), transparent calc(var(--pad-left) - 10px));
background-size: 100% 40px, 100% 100%;
background-position: 0 60px, 0 0;
background-repeat: repeat, no-repeat;
background-attachment: local, scroll;
box-shadow: 0 14px 34px #0008
}

@media all and (min-width: 480px){
.paper{
    font-size: 1.5rem;
    background-position: 0 60px, -20px 0;
    padding-left: 50px;
}
}

@media all and (min-width: 576px){
.paper{
    background-position: 0 70px, -30px 0;
    padding-top: 30px;
}
}

@media all and (min-width: 768px){
.paper{
    background-position: 0 70px, -40px 0;
    padding-left: 60px;
}
}

@media all and (min-width: 992px){
.paper{
    font-size: 1.5rem;
    background-position: 0 70px, -50px 0;
}
}

.paper::placeholder {
color: #756a5f;
opacity: 1
}

/* Invite a tap while empty; steady gold ring once focused */
.paper:placeholder-shown:not(:focus) {
animation: paperGlow 2.6s ease-in-out infinite
}

@keyframes paperGlow {

0%,
100% {
    box-shadow: 0 14px 34px #0008, 0 0 0 2px rgba(224, 197, 81, .35)
}

50% {
    box-shadow: 0 14px 34px #0008, 0 0 18px 3px rgba(224, 197, 81, .75)
}
}

.paper:focus-visible,
.paper:focus {
outline: 3px solid var(--gold);
outline-offset: 0;
box-shadow: 0 0 0 7px rgba(224, 197, 81, .25), 0 14px 34px #0008
}

.entry-meta,
.entry-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap
}

.entry-meta {
color: #d2c8bd;
font-size: .9rem
}

@media all and (min-width: 480px){
.entry-meta {
    font-size: 1rem;
}
}

.entry-meta .invalid {
color: #ffb5a9
}

.entry-meta .warn {
color: var(--gold)
}

/* Burn button stays pinned to the bottom, above the keyboard */
.entry-actions {
position: sticky;
bottom: 0;
z-index: 5;
margin: 1rem 0 0 0;
}

@media all and (min-width: 576px){
.entry-actions {
    margin: 1.5rem 0 0 0;
}
}

@media all and (min-width: 768px){
.entry-actions {
    margin: 2rem 0 0 0;
}
}

@media all and (min-width: 992px) and (orientation: portrait){
.entry-actions {
    margin: 3rem 0 0 0;
}
}

@media all and (min-width: 992px) and (orientation: landscape){
.entry-actions {
    margin: 2rem 0 0 0;
}
}

#burnButton:disabled {
background: var(--gold);
color: #7a591c
}

#burnButton:not(:disabled) {
background: var(--gold);
background: #f94b2b;
/* background: linear-gradient(45deg, #f94b2b, #f0a119, #f94b2b); */
color: #1a0f09;
/* box-shadow: 0 0 24px rgba(224, 197, 81, .35) */
}

/* =========================================
05. FIRE CANVAS
========================================= */

#fire {
position: fixed;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none
}

#fire {
z-index: var(--z-fire);
visibility: hidden
}

#fire.on {
visibility: visible
}

/* =========================================
06. RESULT SCREEN
========================================= */

.screen {
position: fixed;
inset: 0;
z-index: var(--z-result);
display: flex;
align-items: center;
justify-content: center;
overflow-y: auto;
text-align: center;
background: var(--char);
visibility: hidden;
opacity: 0;
pointer-events: none;
transition: opacity .8s, visibility .8s
}

.screen.show {
visibility: visible;
opacity: 1;
pointer-events: auto
}

.screen-content {
width: 100%;
margin: auto;
padding: 1.5rem;
}

@media all and (min-width: 400px){
.screen-content {
    padding: 2rem;
}
}

@media all and (min-width: 576px){
.screen-content {
    padding: 3rem 4.5rem;
}
}

@media all and (min-width: 768px){
.screen-content {
    max-width: 600px;
    padding: 4rem 3rem;
}
}

@media all and (min-width: 992px){
.screen-content{
    padding: 8rem 3rem;
}
}

.screen h2 {
/* font: 700 clamp(4rem, 22vw, 9rem)/.9 var(--hand); */
font-family: var(--hand);
font-weight: 700;
line-height: .9;
font-size: 5rem;
margin: 0 0 12px
}

.screen p {
color: var(--muted);
color: #f6e8da;
margin: 0 auto;
max-width: 34ch;
line-height: 1.5
}

@media all and (min-width: 480px){
.screen h2{
    font-size: 6.25rem;
}
}

@media all and (min-width: 576px){
.screen h2{
    font-size: 7rem;
}
}

@media all and (min-width: 768px){
.screen h2{
    font-size: 8rem;
}
}

/* Result video sits behind the notebook throughout the burn. */
#result {
background: #000;
overflow: hidden;
transition: none;
}

#resultVideo {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 50%;
display: block;
}

/* 08. RESPONSIVE / ACCESSIBILITY */
@media(max-width:480px) {
.entry-actions {
    justify-content: center
}
}

@media(max-height:560px) {
#page {
    align-items: flex-start
}

.brand img {
    width: 130px
}

.paper-wrap {
    min-height: 120px
}
}

@media(prefers-reduced-motion:reduce) {

.screen,
#message {
    transition-duration: .01s
}

.paper:placeholder-shown:not(:focus) {
    animation: none
}
}


.animated-border {
  --border-width: 2px;
  --border-radius: 0.35rem;
  --background-spread: 200px;
  
  font-family: Helvetica;
  font-weight: bold;
  font-size: 1.3rem;
  letter-spacing: -0.02rem;
  position: relative;
  color: #fff;
  border: 0;
  border-radius: var(--border-radius);
  background-color: transparent;
  overflow: hidden;
  padding: var(--border-width);
}

.animated-border::after {
  content: '';
  position: absolute;
  background: conic-gradient(from 180deg at 50% 50%, rgba(245, 175, 25, 0) 0deg, rgba(245, 175, 25, .1) 153.75deg, #f12711 345deg, rgba(245, 175, 25, 0));
  top: calc(var(--background-spread) * -1);
  right: calc(var(--background-spread) * -1);
  bottom: calc(var(--background-spread) * -1);
  left: calc(var(--background-spread) * -1);
  z-index: -1;
  animation: 3s rotate linear infinite;
}

.animated-border-content{
  background-color: #000;
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
}

.animated-border-content p{
  margin: 0!important;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


#svg{
  position: absolute;
  display: block;
}

.btn{
  position: relative;
  border: none;
  outline: none;
  color: #0c1016;
  filter: url('#gooey');
  background-color: #e0c551;
  cursor: pointer;
}

.btn-title{
  position: relative;
  z-index: 2;
}

.bubbles{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.bubble{
  width: 35px;
  height: 35px;
  position: absolute;
  top: 0;
  left:0;
  display: none;
  background-color: #e0c551;
  border-radius: 100%;
}
.btn:not(:disabled) .bubble{
  display: block;
}

.btn:not(:disabled) .bubble{
  background-color: #f94b2b;
}

.bubble:nth-child(1){
  left: 80%;
  animation: move1 3s infinite;
  animation-delay: 0.2s;
}
.bubble:nth-child(2){
  left: 35%;
  animation: move2 3.04s infinite;
  animation-delay: 0.4s;
}
.bubble:nth-child(3){
  left: 45%;
  animation: move3 3.06s infinite;
  animation-delay: 0.6s;
}
.bubble:nth-child(4){
  left: 20%;
  animation: move4 3.08s infinite;
  animation-delay: 0.8s;
}
.bubble:nth-child(5){
  left: 15%;
  animation: move5 3.1s infinite;
  animation-delay: 1s;
}
.bubble:nth-child(6){
  left: 25%;
  animation: move6 3.12s infinite;
  animation-delay: 1.2s;
}
.bubble:nth-child(7){
  left: 70%;
  animation: move7 3.14s infinite;
  animation-delay: 1.4s;
}
.bubble:nth-child(8){
  left: 60%;
  animation: move8 3.16s infinite;
  animation-delay: 1.6s;
}
.bubble:nth-child(9){
  left: 5%;
  animation: move9 3.8s infinite;
  animation-delay: 1.8s;
}
.bubble:nth-child(10){
  left: 55%;
  animation: move10 3.2s infinite;
  animation-delay: 2s;
}
@keyframes move1 {
  0%{
    transform: translate(0, 0);
  }
  99%{
    transform: translate(0, -155px);
  }
  100%{
    transform: translate(0, 0);
    opacity: 0;
  }
}
@keyframes move2 {
  0%{
    transform: translate(0, 0);
  }
  99%{
    transform: translate(0, -145px);
  }
  100%{
    transform: translate(0, 0);
    opacity: 0;
  }
}
@keyframes move3 {
  0%{
    transform: translate(0, 0);
  }
  99%{
    transform: translate(0, -110px);
  }
  100%{
    transform: translate(0, 0);
    opacity: 0;
  }
}
@keyframes move4 {
  0%{
    transform: translate(0, 0);
  }
  99%{
    transform: translate(0, -110px);
  }
  100%{
    transform: translate(0, 0);
    opacity: 0;
  }
}
@keyframes move5 {
  0%{
    transform: translate(0, 0);
  }
  99%{
    transform: translate(0, -145px);
  }
  100%{
    transform: translate(0, 0);
    opacity: 0;
  }
}
@keyframes move6 {
  0%{
    transform: translate(0, 0);
  }
  99%{
    transform: translate(0, -115px);
  }
  100%{
    transform: translate(0, 0);
    opacity: 0;
  }
}
@keyframes move7 {
  0%{
    transform: translate(0, 0);
  }
  99%{
    transform: translate(0, -160px);
  }
  100%{
    transform: translate(0, 0);
    opacity: 0;
  }
}
@keyframes move8 {
  0%{
    transform: translate(0, 0);
  }
  99%{
    transform: translate(0, -135px);
  }
  100%{
    transform: translate(0, 0);
    opacity: 0;
  }
}
@keyframes move9 {
  0%{
    transform: translate(0, 0);
  }
  99%{
    transform: translate(0, -130px);
  }
  100%{
    transform: translate(0, 0);
    opacity: 0;
  }
}
@keyframes move10 {
  0%{
    transform: translate(0, 0);
  }
  99%{
    transform: translate(0, -175px);
  }
  100%{
    transform: translate(0, 0);
    opacity: 0;
  }
}