/* TYPOGRAPHY */
@font-face {
  font-family: "Spectral";
  src: url("../fonts/Spectral-EL.woff2") format("woff2");
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  src: url("../fonts/Spectral.woff2") format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  src: url("../fonts/Spectral-I.woff2") format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  src: url("../fonts/Spectral-SB.woff2") format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spectral/v13/rnCs-xNNww_2s0amA9vmtm3PafaPWnIIMrY.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  src: url("../fonts/Spectral-SBI.woff2") format('woff2');
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  src: url("../fonts/WorkSans.woff2") format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
  
  :root {
      --green: #058530;
      --pink: #FDC4EA;
      --blue: #1639E9;
      --white: #FEFBFD;
      --black: #080206;
  }
  
  ::selection {
      color: var(--pink);
      text-shadow: 0 0 5px var(--pink);
  }
  body {
    margin:0;
    padding:0;
    height:100%;
    width:100%;
    background-color:var(--white);
    font-style: normal;
    font-family:'Spectral', Times, serif;
    text-rendering: optimizeLegibility;
    font-size: 16px;
    color:var(--black);
    overscroll-behavior: none;
  }
  a {
      color: var(--blue);
      opacity: 0.8;
      text-decoration: none;
  }
  a:hover {
      background-color: var(--blue);
      color: var(--white);
  }
  p{
    font-size:0.9em;
  }
  
  ol{
    /* list-style-position:inside; */
    padding-left:1.23em;
    font-size:0.9em
  }
  
  /* LAYOUT */
  #page{
    height:100vh;
    display:flex;
      display: -ms-flexbox;
      display: -webkit-box;
      display: -webkit-flex;
      display: -moz-box;
    flex-direction: row;
    /* overscroll-behavior:none; */
  }
  img{
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }
  /* .box::after{
    display:flex;
    justify-content: center;
    padding:1em;
    content:"⊹ "counter(boxes);
    font-size: .9em;
    color: var(--green);
  } */
  .noscroll{
    overflow-x:hidden;
    overflow-y:hidden;
  }
  .info {
    padding: 1em 1.5em 2.5em 1.5em;
    width:21.5em;
    min-width:21.5em;
    background-color: rgb(252, 243, 249);
    flex: 0 1 auto;
  }
  #stuff {
    position:relative;
    padding: 1em 1.5em 2.5em 1.5em;
    flex: 1 1 auto;
    background-color: var(--blue);
    overflow: hidden;
  }
  footer {
    position: fixed;
    bottom: 0.4em;
    left: 1.45em;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    flex-flow: row wrap;
      -webkit-flex-direction: row;
      flex-direction: row;
    gap: 2em; 
    z-index: 9999999999999;
  }
  footer * {
    display: inline-block;
    background: rgb(252, 243, 249);
    padding: .25em ;
  }  
  
  .center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* padding: 10px; */
  }
  
  /* TOGGLE TRICK */
  input[type="checkbox"] {
    position: absolute;
    opacity: 0;
  }
  
  .textt label{
    background: var(--white);
    /* padding: 0.1rem 0.2rem; */
    /* border-radius: 0.1rem; */
    cursor: pointer;
    position: relative;
  }
  p[toggle]{
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    font-size: 1em;
    transition: max-height 0.4s ease;
  }
  input[type="checkbox"]:checked ~ p {
    max-height: 80px;
  }
  
  /* CANVAS */
  #settings {
    display:inline-flex;
    flex-direction: row;
    align-items: center;
    gap:0.5em;
    margin: auto;
  }
  
  input[type="range"]{
    width: 7em;
    cursor:pointer;
  }
  button{
    border:none;
    font-family:inherit;
    font-size: inherit;
    background-color:  rgb(252, 243, 249);
    cursor: pointer;
  }
  button:hover{
    color:var(--pink);
  }
  
  #drawCloud {
    border-radius: 20px;
    /* background-color: var(--pink); */
    /* border: 0.5px solid var(--pink); */
    /* filter:blur(30px); */
  } 

  /* form cloud button */
  #form{
    background-color: var(--white);
    border-radius:1px;
    border:0.25px solid var(--pink);
    position:fixed;
    left:17.5em;
  }
  #form:hover{
    text-shadow: 0 0 5px var(--pink);
    border:1px solid var(--white);;
    background-color:rgb(252, 243, 249);
  }
  
  /* ON/OFF IMAGES AND TEXT ... in future, rewrite w more elegant code */
  #deadImg{
    border-radius: 20px;
    position: absolute;
    top: 0;
    left:0;
    cursor: pointer;
  }
  
  .hoverText{ /* white stroke on black text */
    position: absolute;
    display: none;
    transition: all 0.5s;
    text-shadow:
      -1px -1px 0 #fff,
       0   -1px 0 #fff,
       1px -1px 0 #fff,
       1px  0   0 #fff,
       1px  1px 0 #fff,
       0    1px 0 #fff,
      -1px  1px 0 #fff,
      -1px  0   0 #fff;
    font-size: 14px;
    text-align: center;
  }
  #deadImg:hover + .hoverText{
    display: block;
  } 

  #psaLink {opacity: 0;}

  #psaLink:hover {
    opacity:1;
  }

/* TYPEWRITING EFFECT  */
 .typew{
    margin: 0 auto;
    border-right: .15em solid rgba(255,255,255,.75);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    width: auto;

    animation: typewriter 4s steps(44) 1s 1 normal both,
             blinkTextCursor 500ms steps(44) infinite normal;
}
@keyframes typewriter{
    from{max-width: 0;}
    to{max-width: 100%;}
}
@keyframes blinkTextCursor{
  from, to { border-color: transparent }
  50% { border-color: orange; }
  }

/* not sure what this was for tbh */
/* .hide {
    -moz-animation: cssAnimation 0s ease-in 5s forwards;
    -webkit-animation: cssAnimation 0s ease-in 5s forwards;
    -o-animation: cssAnimation 0s ease-in 5s forwards;
    animation: cssAnimation 0s ease-in 5s forwards;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}
@keyframes cssAnimation {
    to {
        width:0;
        height:0;
        overflow:hidden;
    }
}
@-webkit-keyframes cssAnimation {
    to {
        width:0;
        height:0;
        visibility:hidden;
    }
} */

/* POP UP GIF */

.popup {
  position: fixed;
  top: 0;
  left: 0;
  height: 50%;
  border-radius: 15px;
  z-index:99999999999999;

  opacity: 0;
  pointer-events: none;

  transition: opacity ease-in-out 0.3s;
}
.popup.visible {
  opacity: 1;
}