/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

* {
  box-sizing: border-box;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

:root {
  font-size: 0.1vw;
}

body {
  font-size: 100%;
  background-color: var(--black);
  color: var(--white);
  font-size: 18rem;
  display: flex;
  width: 100vw;
  height: 100vh;
}

#app {
  margin: auto;
  max-width:1002rem;
  overflow:hidden;
}

#app_ {
  width: calc(calc(16 / 10) * 100vh);
}

@media (min-aspect-ratio: 3/2) {
  :root {
    font-size: calc(calc(5 / 3) * 0.1vh);
  }
  #app_ {
    width: calc(calc(5 / 3) * 100vh);
  }
}

:root {
  --green: #00AE3C;
  --orange: #FF7420;
  --red: #FF2A36;
  --pink: #F84BF7;
  --purple: #9F44FB;
  --blue: #0F6DEB;
  --white: #FFFFFF;
  --black: #000000;
  --lightgrey: #54556C;
  --mediumgrey: #2F3043;
  --darkgrey: #222338;
  --black50: rgba(0, 0, 0, 0.5);
}

.green {
  background: var(--green);
  color: var(--white);
}
.orange {
  background: var(--orange);
  color: var(--white);
}
.red {
  background: var(--red);
  color: var(--white);
}
.pink {
  background: var(--pink);
  color: var(--white);
}
.purple {
  background: var(--purple);
  color: var(--white);
}
.blue {
  background: var(--blue);
  color: var(--white);
}
.white {
  background: var(--white);
  color: var(--darkgrey);
}
.black {
  background: var(--black);
  color: var(--white);
}
.lightgrey {
  background: var(--lightgrey);
  color: var(--white);
}
.mediumgrey {
  background: var(--mediumgrey);
  color: var(--white);
}
.darkgrey {
  background: var(--darkgrey);
  color: var(--white);
}
.black50 {
  background: var(--black50);
  color: var(--white);
}

div[class^=grid-] {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}

.grid-12 div[class^=column-] {
  padding: 0 var(--gutter-12);
}
.grid-12 .column-1 {
  width: calc(100% / 12);
}
.grid-12 .column-2 {
  width: calc(100% / 6);
}
.grid-12 .column-3 {
  width: calc(100% / 4);
}
.grid-12 .column-4 {
  width: calc(100% / 3);
}
.grid-12 .column-5 {
  width: calc(100% / calc(12 / 5));
}
.grid-12 .column-6 {
  width: calc(100% / 2);
}
.grid-12 .column-7 {
  width: calc(100% / calc(12 / 7));
}
.grid-12 .column-8 {
  width: calc(100% / calc(12 / 8));
}
.grid-12 .column-9 {
  width: calc(100% / calc(12 / 9));
}
.grid-12 .column-10 {
  width: calc(100% / calc(12 / 10));
}
.grid-12 .column-11 {
  width: calc(100% / calc(12 / 11));
}
.grid-12 .column-12 {
  width: 100%;
}

.grid-8 div[class^=column-] {
  padding: 0 var(--gutter-8);
}
.grid-8 .column-1 {
  width: calc(100% / 8);
}
.grid-8 .column-2 {
  width: calc(100% / 4);
}
.grid-8 .column-3 {
  width: calc(100% / calc(8 / 3));
}
.grid-8 .column-4 {
  width: calc(100% / 2);
}
.grid-8 .column-5 {
  width: calc(100% / calc(8 / 5));
}
.grid-8 .column-6 {
  width: calc(100% / calc(8 / 6));
}
.grid-8 .column-7 {
  width: calc(100% / calc(8 / 7));
}
.grid-8 .column-8 {
  width: 100%;
}

:root {
  --size-0: 2rem;
  --size-1: 4rem;
  --size-2: 8rem;
  --size-3: 12rem;
  --size-4: 16rem;
  --size-5: 20rem;
  --size-6: 24rem;
  --size-7: 28rem;
  --size-8: 32rem;
  --size-9: 36rem;
  --size-10: 40rem;
  --size-11: 44rem;
  --size-12: 48rem;
  --size-13: 52rem;
  --size-14: 56rem;
  --size-15: 60rem;

  --gutter-12: 15rem;
  --gutter-8: 13.5rem;
}

@font-face {
  font-family: 'Liberator';
  font-style: normal;
  font-weight: 900;
  src: local('Liberator'), url('/Liberator-Heavy.c2cc51f5.woff2') format('woff2');
}

@font-face {
  font-family: 'Liberator';
  font-style: normal;
  font-weight: 500;
  src: local('Liberator'), url('/Liberator-Medium.0151fbc6.woff2') format('woff2');
}

@font-face {
  font-family: 'Liberator';
  font-style: normal;
  font-weight: 300;
  src: local('Liberator'), url('/Liberator-Light.94958bba.woff2') format('woff2');
}

:root {
  --type-0: 14rem;
  --type-1: 18rem;
  --type-2: 20rem;
  --type-3: 28rem;
  --type-4: 32rem;
}

body {
  font-family: 'Liberator', monospace;
  font-size: var(--type-1);
}

h1, .huge-letters {
  font-size: var(--type-4);
}
h2, .large-letters {
  font-size: var(--type-3);
}
h3, .big-letters {
  font-size: var(--type-2);
}
p, .medium-letters {
  font-size: var(--type-1);
}
label, .small-letters {
  font-size: var(--type-0);
}

  button {
    font-family: "Liberator", monospace;
    font-size: var(--type-2);
    line-height: 0.8em;
    border: none;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    image-rendering: pixelated;
  }

  button.tooltip {
    overflow: visible;
  }

  button.tooltip:hover .tooltiptext {
    overflow: visible;
    display: block;
  }

  button.tooltip .tooltiptext {
    top: 40rem;
    display: none;
    background-color: inherit;
    padding: var(--size-1);
    position: absolute;
    max-width: 250%;
    width: max-content;
    text-align: center;
    z-index: 9999;
    font-size: var(--type-0);
    line-height: calc(var(--type-0) * 0.8);
    border-radius: calc(calc(var(--type-0) + calc(var(--size-4) * 2)) / 8);
  }

  button.pickable:hover {
    transform: scale(1.1) rotate(2deg);
    z-index: 9999;
  }
  button.pickable {
    transition: transform 0.2s ease-in-out;
    cursor: grab;
  }

  button.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
  }

  button > span.icon {
    display: block;
    width: 1.2em;
    height: 1.2em;
  }

  button.display.big {
    font-size: var(--type-3);
    line-height: calc(var(--type-3) * 0.8);
    border-radius: calc(calc(var(--type-3) + calc(var(--size-3) * 2)) / 8);
    padding: var(--size-3) var(--size-3);
  }

  button.display.big.small-text {
    font-size: var(--type-2);
    line-height: calc(var(--type-2) * 0.8);
  }

  button.display.big > span.text {
    position: relative;
    left: 14rem;
    top: 5rem;
  }

  button > span.text {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 0.2em rgba(255, 255, 255, 0.75));
  }

  button.huge {
    font-size: var(--type-4);
    line-height: calc(var(--type-4) * 0.8);
    border-radius: calc(calc(var(--type-4) + calc(var(--size-4) * 2)) / 8);
  }
  button.large {
    font-size: var(--type-3);
    line-height: calc(var(--type-3) * 0.8);
    border-radius: calc(calc(var(--type-3) + calc(var(--size-4) * 2)) / 8);
  }

  button.display {
    height: var(--size-14);
  }

  button.big {
    font-size: var(--type-2);
    line-height: calc(var(--type-2) * 0.8);
    border-radius: calc(calc(var(--type-2) + calc(var(--size-4) * 2)) / 8);
  }
  button.medium {
    font-size: var(--type-1);
    line-height: calc(var(--type-1) * 0.8);
    border-radius: calc(calc(var(--type-1) + calc(var(--size-4) * 2)) / 8);
  }

  button.small {
    font-size: var(--type-0);
    line-height: calc(var(--type-0) * 0.8);
    border-radius: calc(calc(var(--type-0) + calc(var(--size-4) * 2)) / 8);
  }

  button.tight {
    padding: var(--size-3) var(--size-4);
  }
  button.fullwidth {
    width: 100%;
    padding: var(--size-4) var(--size-3);
  }
  button.icon-aligned {
    width: 70%;
    height: var(--size-9);
    padding: var(--size-2) var(--size-3);
    margin-right: var(--size-4);
  }
  button.square {
    padding: var(--size-2) var(--size-2);
  }
  button.circle,
  button.square {
    padding: 0;
  }

  button.halfwidth {
    width: 50%;
  }

  button.tutorial-button {
    width: 100%;
    position: relative;
    bottom: 0;
    right: 0;
    margin: var(--size-1);
  }

  button.tight > span.icon,
  button.fullwidth > span.icon {
    background-color: var(--black50);
    border-radius: calc(calc(1.5em + calc(var(--size-1) * 2)) / 8);
    padding: var(--size-1);
  }

  button.tight > span.icon.no-background,
  button.fullwidth > span.icon.no-background {
    background-color: transparent;
  }

  button.circle > span.icon {
    margin: 0;
    width: 50%;
    height: 50%;
  }
  button.square > span.icon {
    margin: 0;
    width: 60%;
    height: 60%;
  }

  button.circle.huge,
  button.square.huge {
    width: var(--size-15);
    height: var(--size-15);
  }
  button.circle.large,
  button.square.large {
    width: var(--size-14);
    height: var(--size-14);
  }
  button.circle.big,
  button.square.big {
    width: var(--size-12);
    height: var(--size-12);
  }
  button.circle.medium,
  button.square.medium {
    width: var(--size-9);
    height: var(--size-9);
  }
  button.circle.small,
  button.square.small {
    width: var(--size-5);
    height: var(--size-5);
  }

  button.circle {
    border-radius: 100%;
  }
  button.square {
    border-radius: calc(calc(1.5em + calc(var(--size-1) * 2)) / 4);
  }

  button.has-icon {
    padding-left: calc(1.2em + calc(var(--size-2) * 2));
  }

  button.has-icon > span.icon {
    position: absolute;
    left: var(--size-2);
    top: 47.5%;
    transform: translateY(-50%);
  }

  button.has-icon > span.icon.large {
    position: absolute;
    left: var(--size-2);
    top: 47.5%;
    background-color: var(--purple);
    height: var(--size-10);
    width: var(--size-10);
    transform: translateY(-50%);
  }
  button.has-icon > span.icon.large.right {
    position: absolute;
    right: var(--size-2);
    top: 47.5%;
    background-color: var(--purple);
    height: var(--size-10);
    width: var(--size-10);
    transform: translateY(-50%);
    left: auto;
  }
  button.has-icon span.text.right {
    right: 29.5%;
  }
  button.margin {
    margin-right: var(--size-2);
  }
  /* button:hover {
    box-shadow: 0 0 0 0.25em var(--white);
  } */
  button.selected {
    box-shadow: 0 0 0 0.25em var(--white);
  }

  .help-icon button.selected {
    background-color: white;
    box-shadow: 0, 0, 0, 0, 0, var(--white);
  }

  .help-icon button.selected span.icon {
    filter: invert(1);
  }
  button.hidden {
    visibility: hidden;
  }

  @keyframes pulseGlow {
    0% {
      transform: scale(1);
      opacity: 1;
      box-shadow: 0 0 0 0 var(--red);
    }
    50% {
      transform: scale(1);
      opacity: 1;
      box-shadow: 0 0 0 18px var(--red);
    }
    100% {
      transform: scale(1);
      opacity: 1;
      box-shadow: 0 0 0 0 var(--red);
    }
  }

  button.highlighted {
    position: relative;
    animation: pulseGlow 2s ease-in-out infinite;
  }

  button.highlighted::before,
  button.highlighted::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    animation: pulseGlow 2s ease-in-out infinite;
    z-index: -1;
  }

  button.highlighted::after {
    animation-delay: 0.5s;
  }

.carousel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.carousel .info {
  flex-grow: 1;
}

.carousel .info > * { margin: var(--size-2) 0; }
.carousel .info > :first-child { margin-top: 0; }
.carousel .info > :last-child { margin-bottom: 0; }

.carousel .info img {
  width: 95%;
  margin-left: 2.5%;
  border-radius: var(--size-2);
  object-fit: cover;
  image-rendering: pixelated;

}

.carousel .info p {
  height: 72rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: var(--type-1);
}

.carousel .info.active {
  display: flex;
  flex-direction: column;
}

.carousel .navigation {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: var(--size-4);
}

.carousel .navigation .navigation-item {
  width: var(--size-3);
  height: var(--size-3);
  border: 2px solid var(--white); /* White border for the circles */
  border-radius: 50%; /* Makes the shape a circle */
  margin: 0 var(--size-1);
  cursor: pointer;
  background: transparent; /* No fill initially */
}

.carousel .navigation .navigation-item.active {
  background: var(--white); /* White background for the active state */
  border: 2px solid var(--white); /* Optional: Keeps the border the same but can be adjusted if desired */
}

.chip {
  height: var(--size-14);
/* width: 168rem;*/
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: var(--lightgrey);
  border-radius: 10rem;
  padding: 0 var(--size-5);
}

.chip.stretch {
  width:100%;
}
.chip .screw {
  width: 10rem;
  height: 10rem;
  position: absolute;
  background-color: var(--darkgrey);
  mask: url('/plus.cb920332.svg');
  mask-size: cover;
}

.chip .screw.top-left {
  top: 10%;
  left: 3%;
}
.chip .screw.top-right {
  top: 10%;
  right: 3%;
}
.chip .screw.bottom-left {
  bottom: 10%;
  left: 3%;
}
.chip .screw.bottom-right {
  bottom: 10%;
  right: 3%;
}


.chip.green {
  background-color: var(--green);
  color: var(--white);
}
.chip.orange {
  background-color: var(--orange);
  color: var(--white);
}
.chip.red {
  background-color: var(--red);
  color: var(--white);
}
.chip.pink {
  background-color: var(--pink);
  color: var(--white);
}
.chip.purple {
  background-color: var(--purple);
  color: var(--white);
}
.chip.blue {
  background-color: var(--blue);
  color: var(--white);
}
.chip.white {
  background-color: var(--white);
  color: var(--darkgrey);
}
.chip.black {
  background-color: var(--black);
  color: var(--white);
}
.chip.lightgrey {
  background-color: var(--lightgrey);
  color: var(--white);
}
.chip.mediumgrey {
  background-color: var(--mediumgrey);
  color: var(--white);
}
.chip.darkgrey {
  background-color: var(--darkgrey);
  color: var(--white);
}
.chip.black50 {
  background-color: var(--black50);
  color: var(--white);
}

.gamescreen {
  position: relative;
  border: solid var(--lightgrey) var(--size-4);
  border-radius: var(--size-3);
  width: 100%;
  overflow: hidden;
}

.gamescreen.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.gamescreen > .game {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  transform: scale(1.01);
  cursor: pointer;
}

.gamescreen.paused canvas{
  filter: blur(0.6px) brightness(1) saturate(0.7);
  transition: filter 0.3s ease;
  animation: pausePulse 2s infinite;
}

@keyframes pausePulse {
  0% {
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.2);
  }
  
  50% {
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.3);
  }
  
  100% {
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.2);
  }
}

.gamescreen.sharing-mode {
  animation: sharingModePulse 2s infinite;
}

.gamescreen.sharing-mode canvas {
  filter: blur(0.6px) brightness(1) saturate(0.7);
  transition: filter 0.3s ease;
  animation: sharingModePulse 2s infinite;
}

@keyframes sharingModePulse {
  0% {
    box-shadow: inset 0 0 50px var(--pink);
  }
  
  50% {
    box-shadow: inset 0 0 90px var(--pink);
  }
  
  100% {
    box-shadow: inset 0 0 50px var(--pink);
  }
}

.highlight-sprite {
  position: absolute;
  pointer-events:none;
  background: rgba(159, 68, 251, 0.35);
  width: 100%;
  height: 100%;
  mix-blend-mode: lighten;
}

.select-sprite {
  cursor: grab;
  position: absolute;
}

.select-sprite.no-grab {
  cursor: pointer;
}

.select-sprite .glitches {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 0%);
  padding: var(--size-2) 0;
  width: calc(var(--size-8) * 3);
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.select-sprite .glitches > * { margin: var(--size-1) }
.select-sprite .glitches > *:first-child { margin-left: 0 }
.select-sprite .glitches > *:last-child { margin-right: 0 }

.select-sprite .move-handle {
  background: rgba(159, 68, 251, 0.35);
  width: 100%;
  height: 100%;
}

.select-sprite .rotation-handle,
.select-sprite .upper-handle,
.select-sprite .upper-right-handle,
.select-sprite .right-handle,
.select-sprite .bottom-right-handle,
.select-sprite .bottom-handle,
.select-sprite .bottom-left-handle,
.select-sprite .left-handle,
.select-sprite .upper-left-handle {
  position: absolute;
  border-radius: calc(var(--size-1) / 2);
  height: var(--size-1);
  width: var(--size-3);
  background: var(--purple);
}

.select-sprite .upper-handle {
  top: calc(var(--size-1) / -2);
  left: 50%;
  transform: translate(calc(var(--size-3) / -2), 0);
  cursor: row-resize;
}
.select-sprite .bottom-handle {
  top: calc(100% - calc(var(--size-1) / 2));
  left: 50%;
  transform: translate(-50%, 0);
  cursor: row-resize;
}
.select-sprite .right-handle {
  top: 50%;
  left: 100%;
  transform: translate(-50%, 0) rotate(90deg);
  cursor: col-resize;
}
.select-sprite .left-handle {
  top: 50%;
  left: 0%;
  transform: translate(-50%, 0) rotate(90deg);
  cursor: col-resize;
}

.select-sprite .upper-right-handle {
  top: calc(var(--size-1) / -2);
  right: calc(var(--size-1) / -2);
  width: var(--size-2);
  height: var(--size-2);
  background: 0;
  border-top: solid var(--size-1) var(--purple);
  border-right: solid var(--size-1) var(--purple);
  cursor: nesw-resize;
}
.select-sprite .upper-left-handle {
  top: calc(var(--size-1) / -2);
  left: calc(var(--size-1) / -2);
  width: var(--size-2);
  height: var(--size-2);
  background: 0;
  border-top: solid var(--size-1) var(--purple);
  border-left: solid var(--size-1) var(--purple);
  cursor: nwse-resize;
}
.select-sprite .bottom-right-handle {
  top: calc(calc(100% + calc(var(--size-1) / 2)) - var(--size-2));
  right: calc(var(--size-1) / -2);
  width: var(--size-2);
  height: var(--size-2);
  background: 0;
  border-bottom: solid var(--size-1) var(--purple);
  border-right: solid var(--size-1) var(--purple);
  cursor: nwse-resize;
}
.select-sprite .bottom-left-handle {
  top: calc(calc(100% + calc(var(--size-1) / 2)) - var(--size-2));
  left: calc(var(--size-1) / -2);
  width: var(--size-2);
  height: var(--size-2);
  background: 0;
  border-bottom: solid var(--size-1) var(--purple);
  border-left: solid var(--size-1) var(--purple);
  cursor: nesw-resize;
}

.select-sprite .rotation-handle {
  top: 50%;
  left: 100%;
  transform: translate(0, 0);
}

.select-sprite .rotation-handle::after {
  content: '';
  width: var(--size-2);
  height: var(--size-2);
  border-radius: var(--size-2);
  position: absolute;
  top: -50%;
  right: -25%;
  background: var(--purple);
}

.select-sprite.rotating .move-handle {
  border-radius: 100%;
  border: solid var(--size-1) var(--purple);
}

.select-sprite.resizing .move-handle {
  border: solid var(--size-1) var(--purple);
}

.select-sprite.rotating .rotation-handle {
  left: 100%;
}

.select-sprite.highlight {
  pointer-events:none;
}

.select-sprite.disabled {
  pointer-events:none;
}

.select-sprite.disbled > * {
  pointer-events: none;
}

i.icon {
  display: block;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}
i.icon-forward {
  background-image: url('/forward.360cb21f.svg');
}
i.icon-follow {
  background-image: url('/follow.eaef2576.svg');
}

i.icon-mute {
  background-image: url('/mute.eb3029ba.svg');
}

i.icon-unmute {
  background-image: url('/unmute.a7b1f408.svg');
}

i.icon-finish-line {
  background-image: url('/finish-line.327210a4.svg');
}

i.icon-throw {
  background-image: url('/throw.d41d56a6.svg');
}

i.icon-timewarp {
  background-image: url('/timewarp.2b6906a6.svg');
}

i.icon-blackhole {
  background-image: url('/blackhole.42536672.svg');
}

i.icon-repel {
  background-image: url('/repel.9ff42c85.svg');
}

i.icon-musicify {
  background-image: url('/musicify.3f327e2e.svg');
}

i.icon-sticky {
  background-image: url('/sticky.8d93c828.svg');
}

i.icon-blackhole {
  background-image: url('/blackhole.42536672.svg');
}

i.icon-toss {
  background-image: url('/toss.d6650c70.svg');
}

i.icon-toss {
  background-image: url('/toss.d6650c70.svg');
}

i.icon-strobe {
  background-image: url('/strobe.a2d5101b.svg');
}

i.icon-horizontalarrows {
  background-image: url('/horizontalarrows.f07611c7.svg');
}

i.icon-pencil {
  background-image: url('/pencil.d801759d.svg');
}

i.icon-play-level {
  background-image: url('/play-level.bcd54082.svg');
}

i.icon-drawer-out {
  background-image: url('/drawer-out.8c2ad194.svg');
}

i.icon-drawer-in {
  background-image: url('/drawer-in.b338394a.svg');
}

i.icon-shield {
  background-image: url('/shield.5fcaa6e4.svg');
}

i.icon-rocket {
  background-image: url('/rocket.66e5f6ae.svg');
}

i.icon-ladder {
  background-image: url('/ladder.c6153a4f.svg');
}

i.icon-trampoline {
  background-image: url('/trampoline.cc5683cc.svg');
}

i.icon-wander {
  background-image: url('/wander.186b9a98.svg');
}

i.icon-paint {
  background-image: url('/paint.f7293a8c.svg');
}

i.icon-golf {
  background-image: url('/golf.b15f081f.svg');
}

i.icon-division {
  background-image: url('/division.0ae201db.svg');
}

i.icon-cross {
  background-image: url('/cross.5280afe9.svg');
}

i.icon-bouncify {
  background-image: url('/bouncify.921ff30b.svg');
}

i.icon-tombstone {
  background-image: url('/tombstone.89749730.svg');
}

i.icon-paperplane {
  background-image: url('/paperplane.6e8c6b29.svg');
}

i.icon-flame {
  background-image: url('/flame.9e95b129.svg');
}


i.icon-trophy {
  background-image: url('/trophy.52bd6f74.svg');
}

i.icon-pushpin {
  background-image: url('/pushpin.fec1ab5d.svg');
}

i.icon-refresh {
  background-image: url('/refresh.d9e61db1.svg');
}

i.icon-compass {
  background-image: url('/compass.434749bc.svg');
}

i.icon-teleport {
  background-image: url('/teleport.3c8114a8.svg');
}

i.icon-traffic-light {
  background-image: url('/traffic_light.8e9d95bd.svg');
}

i.icon-jump {
  background-image: url('/jump.8c0e037a.svg');
}

i.icon-glow {
  background-image: url('/glow.9514946b.svg');
}

i.icon-slippery {
  background-image: url('/slippery.66ec0415.svg');
}

i.icon-screenwrap {
  background-image: url('/screenwrap.fc84bc50.svg');
}

i.icon-pulse {
  background-image: url('/pulse.8791b680.svg');
}

i.icon-helicopter {
  background-image: url('/helicopter.5afc9368.svg');
}

i.icon-dotgrid {
  background-image: url('/dot_grid.2484b83e.svg');
}

i.icon-headstand {
  background-image: url('/headstand.a2b2b351.svg');
}

i.icon-moonwalk {
  background-image: url('/moonwalk.3b9ae43c.svg');
}

i.icon-patrol {
  background-image: url('/patrol.49633729.svg');
}

i.icon-frontflip {
  background-image: url('/frontflip.d1e9d65d.svg');
}

i.icon-flippify {
  background-image: url('/flippify.5b4b303b.svg');
}

i.icon-hourglass {
  background-image: url('/hour-glass.467b4c2e.svg');
}

i.icon-fireworks {
  background-image: url('/fireworks.be75a48d.svg');
}

i.icon-verticalarrows {
  background-image: url('/vertical-arrows.457dd21e.svg');
}

i.icon-confetti {
  background-image: url('/confetti.fece7f7e.svg');
}

i.icon-dizzy {
  background-image: url('/dizzy.0093dc05.svg');
}

i.icon-balloon {
  background-image: url('/balloon.2a3ad955.svg');
}

i.icon-chase {
  background-image: url('/chase.6013b6ba.svg');
}

i.icon-digify {
  background-image: url('/digify.ec9d4268.svg');
}

i.icon-cartwheel {
  background-image: url('/cartwheel.88431f8e.svg');
}

i.icon-appledown {
  background-image: url('/appledown.1e0b89b0.svg');
}

i.icon-applesonardown {
  background-image: url('/applesonardown.5a90dab7.svg');
}

i.icon-arrowdown {
  background-image: url('/arrowdown.9bd801b5.svg');
}

i.icon-arrowup {
  background-image: url('/arrowup.f8f191bf.svg');
}

i.icon-ball {
  background-image: url('/ball.00ea733e.svg');
}

i.icon-bomb {
  background-image: url('/bomb.93c435e4.svg');
}

i.icon-boulder {
  background-image: url('/boulder.563ad809.svg');
}

i.icon-button {
  background-image: url('/button.c8af0603.svg');
}

i.icon-circlegrid {
  background-image: url('/circlegrid.03d9cb7d.svg');
}

i.icon-clone {
  background-image: url('/clone.17fde594.svg');
}

i.icon-dots {
  background-image: url('/dots.ab15d947.svg');
}

i.icon-doublespiral {
  background-image: url('/doublespiral.b3f9275d.svg');
}

i.icon-droplet {
  background-image: url('/droplet.ba68a16f.svg');
}

i.icon-duplicate {
  background-image: url('/duplicate.6ea792f7.svg');
}

i.icon-elephant {
  background-image: url('/elephant.0f49484e.svg');
}

i.icon-expand {
  background-image: url('/expand.066db2f3.svg');
}

i.icon-eye {
  background-image: url('/eye.0d9833e4.svg');
}

i.icon-fastforward {
  background-image: url('/fastforward.c369d61c.svg');
}

i.icon-fireball {
  background-image: url('/fireball.c7cf9e76.svg');
}

i.icon-gamepad {
  background-image: url('/gamepad.18ea054f.svg');
}

i.icon-ghost {
  background-image: url('/ghost.df2ee4fc.svg');
}

i.icon-hamburger {
  background-image: url('/hamburger.fdb6a83f.svg');
}

i.icon-hand {
  background-image: url('/hand.c7175d58.svg');
}

i.icon-hurricane {
  background-image: url('/hurricane.2ebb3c09.svg');
}

i.icon-icecube {
  background-image: url('/icecube.dd76638d.svg');
}

i.icon-invisible {
  background-image: url('/invisible.b0ae8cbc.svg');
}

i.icon-isometric {
  background-image: url('/isometric.e1764c2e.svg');
}

i.icon-jetpack {
  background-image: url('/jetpack.5f7da2c1.svg');
}

i.icon-lightning {
  background-image: url('/lightning.e3250af6.svg');
}

i.icon-loop {
  background-image: url('/loop.f866694b.svg');
}

i.icon-magnet {
  background-image: url('/magnet.cc20799d.svg');
}

i.icon-mouse {
  background-image: url('/mouse.85f2112a.svg');
}

i.icon-notes {
  background-image: url('/notes.6c8f94e2.svg');
}

i.icon-pacman {
  background-image: url('/pacman.9aa7c0b1.svg');
}

i.icon-pause {
  background-image: url('/pause.ad88b54b.svg');
}

i.icon-pen {
  background-image: url('/pen.c6665226.svg');
}

i.icon-photocamera {
  background-image: url('/photocamera.1950b156.svg');
}

i.icon-piano {
  background-image: url('/piano.419163bf.svg');
}

i.icon-play {
  background-image: url('/play.47e90e71.svg');
}

i.icon-plus {
  background-image: url('/plus.cb920332.svg');
}

i.icon-portal {
  background-image: url('/portal.a6776e29.svg');
}

i.icon-question {
  background-image: url('/question.aa50f159.svg');
}

i.icon-resize {
  background-image: url('/resize.322e8af7.svg');
}

i.icon-rewind {
  background-image: url('/rewind.95b05501.svg');
}

i.icon-undo {
  background-image: url('/undo2.0c4c6a93.svg');
}

i.icon-redo {
  background-image: url('/redo2.e2ae41cd.svg');
}

i.icon-shuffle {
  background-image: url('/shuffle.ad937f06.svg');
}

i.icon-snail {
  background-image: url('/snail.1f4245e3.svg');
}

i.icon-snowflake {
  background-image: url('/snowflake.0d67bee9.svg');
}

i.icon-speaker {
  background-image: url('/speaker.01c47d5c.svg');
}

i.icon-spiral {
  background-image: url('/spiral.92387a3d.svg');
}

i.icon-stack {
  background-image: url('/stack.553646f1.svg');
}

i.icon-star {
  background-image: url('/star.205b6c38.svg');
}

i.icon-sun {
  background-image: url('/sun.19af1c87.svg');
}

i.icon-swapcharacter {
  background-image: url('/swapcharacter.c133a464.svg');
}

i.icon-swapkeys {
  background-image: url('/swapkeys.764ad18e.svg');
}

i.icon-swim {
  background-image: url('/swim.9db22436.svg');
}

i.icon-target {
  background-image: url('/target.ca12d57f.svg');
}

i.icon-tennisball {
  background-image: url('/tennisball.b259d998.svg');
}

i.icon-trash {
  background-image: url('/trash.fc0396c5.svg');
}

i.icon-unicorn {
  background-image: url('/unicorn.7ce849c7.svg');
}

i.icon-videocamera {
  background-image: url('/videocamera.96adef2c.svg');
}

i.icon-vulcan {
  background-image: url('/vulcan.0814998d.svg');
}

i.icon-wand {
  background-image: url('/wand.ac0cdf2e.svg');
}

i.icon-wink {
  background-image: url('/wink.74d82c3e.svg');
}

i.icon-zombie {
  background-image: url('/zombie.de18bfdf.svg');
}

i.icon-wall {
  background-image: url('/wall.ff2eaca5.svg');

}

i.icon-stack-star {
  background-image: url('/stack-star.c972e4c3.svg');
}

i.icon-push {
  background-image: url('/push.a58c89e7.svg');

}

.icon-ice-skate {
  background-image: url('/ice-skate.4c919a51.svg');
}

.tutorial-text i.icon {
  display: inline-block;
  width: .9em;
  height: .9em;
  background-clip: padding-box;
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10%;
}

.next-level-message i.icon {
  display: inline-block;
  width: .9em;
  height: .9em;
  background-clip: padding-box;
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10%;
}

.info i.icon {
  display: inline-block;
  width: .9em;
  height: .9em;
  background-clip: padding-box;
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10%;
  vertical-align: middle;
  padding: 0%;
  margin: 0%;
}
@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(5deg);
  }
  20% {
    transform: rotate(-5deg);
  }
  30% {
    transform: rotate(0deg);
  }
}

.input.wiggle {
  animation: wiggle 2.5s infinite;
}

.input.wiggle:hover {
  animation: none;
}

.input {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.input.greyedOut {
  opacity: 0.2;
}
.input.disabled {
  pointer-events: none;
  opacity: 0.2;
}
.input label,
.input .input-area {
  width: 100%;
  font-family: "Liberator", monospace;
  color: var(--white);
}
.input label {
  margin-bottom: var(--size-3);
  font-size: var(--type-0);
  line-height: var(--type-0);
  padding: var(--size-0) 0;
}
.input .input-area {
  font-size: var(--type-0);
  line-height: var(--type-0);
  height: var(--size-8);
  padding: 0 var(--size-2);
  background: var(--black50);
  outline: none;
  border: none;
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.input-area.selected,
.input-area:focus {
  box-shadow: 0 0 0 var(--size-0) var(--white);
}

.input-option .input-area {
  padding: 0;
}
.input-option .input-area .option-control {
  cursor: pointer;
  display: block;
  padding: var(--size-2);
}

.input-sprite .input-area {
  justify-content: center;
  cursor: pointer;
}

.input-slider .input-area {
  justify-content: flex-end;
}

.input-slider input[type="range"] {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

.input-slider .foreground {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.panel-orange .input-slider .foreground {
  background: var(--orange);
}
.panel-green .input-slider .foreground {
  background: var(--green);
}
.panel-red .input-slider .foreground {
  background: var(--red);
}
.panel-pink .input-slider .foreground {
  background: var(--pink);
}
.panel-purple .input-slider .foreground {
  background: var(--purple);
}
.panel-blue .input-slider .foreground {
  background: var(--blue);
}
.panel-lightgrey .input-slider .foreground {
  background: var(--lightgrey);
}
.panel-mediumgrey .input-slider .foreground {
  background: var(--mediumgrey);
}
.panel-darkgrey .input-slider .foreground {
  background: var(--darkgrey);
}

.input-slider .value {
  font-family: "Liberator", monospace;
  color: var(--white);
  background-color: transparent;
  outline: none;
  box-shadow: none;
  border: 0;
  font-size: var(--type-0);
  line-height: var(--type-0);
  text-align: right;
}

.input-slider .value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-slider input[type="range"]:focus {
  outline: none;
}

.input-slider input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  cursor: pointer;
  border: none;
}
.input-slider input[type="range"]::-moz-range-track {
  cursor: pointer;
  border-radius: 0px;
  border: none;
}
.input-slider input[type="range"]::-ms-track {
  cursor: pointer;
  border-radius: 0px;
  border: none;
}

.input-slider input[type="range"]::-webkit-slider-thumb {
  height: 1px;
  width: 1px;
}
.input-slider input[type="range"]::-moz-range-thumb {
  height: 1px;
  width: 1px;
}
.input-slider input[type="range"]::-ms-thumb {
  height: 1px;
  width: 1px;
}

.input .tooltip {
  visibility: hidden;
  position: absolute;
  left: 0%; /* Adjust based on your design needs */
  top: 100%;
  width: 100%; /* Adjust based on your content */
  padding: 5px;
  background-color: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  color: black;
  font-size: var(--type-0);
  z-index: -1;
  opacity: 0; /* Start with tooltip fully transparent */

  transition: opacity 0.5s ease 1s, visibility 0s 0.1s; /* Delays for 1 second */
}

.input:hover .tooltip {
  visibility: visible; /* Make tooltip visible */
  opacity: 0.8; /* Fade to fully opaque */
  z-index: 1000; /* Ensures it's on top of other elements */
 
  transition: opacity 0.5s ease 0s, visibility 0s 0.5s; /* Apply transitions immediately on hover */
}

.panel {
  border-radius: var(--size-3);
  border: solid var(--size-1);
  padding: var(--size-4);
  background: var(--darkgrey);
  overflow: hidden;
}

.panel.no-padding {
  padding: 0;
}
.panel.hidden {
  visibility: hidden;
}
.panel-green {
  border-color: var(--green);
}
.panel-orange {
  border-color: var(--orange);
}
.panel-red {
  border-color: var(--red);
}
.panel-pink {
  border-color: var(--pink);
}
.panel-purple {
  border-color: var(--purple);
}
.panel-blue {
  border-color: var(--blue);
}
.panel-lightgrey {
  border-color: var(--lightgrey);
}
.panel-mediumgrey {
  border-color: var(--mediumgrey);
}
.panel-darkgrey {
  border-color: var(--darkgrey);
}
.panel-white {
  border-color: var(--white);
}

.panel .list {
  display: flex;
  flex-direction: column;
}

.panel .list > * { margin: var(--size-2) 0; }
.panel .list > :first-child { margin-top: 0; }
.panel .list > :last-child { margin-bottom: 0; }

.toolbar {
  border-radius: 10rem;
  display: flex;
  flex-direction: column;
  padding: var(--size-3) var(--size-2);
  justify-content: center;
  align-items: center;
  background: var(--lightgrey);
  width:54rem;
}
.toolbar.hidden {
  visibility: hidden;
}
.toolbar > * { margin: calc(var(--size-3) / 2) 0; }
.toolbar > :first-child { margin-top: 0; }
.toolbar > :last-child { margin-bottom: 0; }

.toolbar hr {
  border: solid 1rem var(--darkgrey);
  width: 100%;
}

#wrapper {
  width: 100%;
  margin: auto;
}
#game-title {
  width: 100%;
  font-size: var(--type-1);
  line-height: var(--type-1);
  font-weight: 500;
  margin: 0;
  padding: 0;
  text-align: center;
  margin-bottom: var(--size-4);
}

#hint {
  font-size: var(--type-0);
  line-height: var(--type-0);
  font-weight: 300;
  margin: 0;
  padding: 0;
  text-align: center;
  margin-top: var(--size-4);
  color: var(--lightgrey);
}

#glitch-editor-iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 99999;
}

#project-display-wrapper {
  height: 90vh;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  align-content: flex-start;
  flex-direction: column;
}

#project-display-wrapper > button {
  margin: var(--size-2);
}

.top-row {
  padding: var(--size-4) 0 var(--size-5) 0;
  text-align: center;
  justify-content: center;
}

.top-row .hamburger,

/* TODO: MOVE THIS TO CHIP COMPONENT SOON */
.chip {
  display: flex;
  flex-direction: row;
}
.chip > * {
  margin: 0 var(--size-1);
}

.grid-12.main-row {
  align-items: stretch;
}

.main-row .menu {
  align-self: center;
}

.main-row .context-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.context-menu .panel-large {
  height: 294rem;
  width: 221rem;
}
.context-title {
  height: 64rem;
}

.context-menu .panel-small {
  height: 176rem;
  width: 221rem;
  display: flex;
  flex-direction: column;
}

.context-menu .panel-small .glitch-drop-areas-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-content: space-between;
  justify-content: space-between;
}
.context-menu .panel-tiny {
  height: auto;
}
.gamescreen {
  height: 485rem;
  width: 646.66667rem;
  display: flex;
  align-items: center;
}

.gamescreen.fullscreen {
  height: 552rem;
}

.gamescreen .mainmenu .foreground {
  background-color: var(--purple);
}

.gamescreen .mainmenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: 100%;
  width: 100%;
}

.tutorial-text {
  width: 100%;
}
.tutorial-panel {
  border-radius: var(--size-2);
  border: solid var(--lightgrey) var(--size-1);
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 100%;
  width: 100%;
  background-color: rgba(34, 35, 56, 0.8);
  padding: var(--size-4);
}
.gamescreen .mainmenu > * {
  width: 50%;
  margin-left: 580rem;
  margin-right: 580rem;
}
.top-row .game-controls {
  display: flex;
  justify-content: space-between;
}

.top-row .game-controls.tutorial {
  display: flex;
  justify-content: center;
}
.fullscreen .gamescreen {
  border: solid var(--lightgrey) var(--size-2);
  border-radius: var(--size-2);
  overflow: hidden;
}

.inventory {
  height: 485rem;
  width: 646.66667rem;
  position: relative;
  border: solid var(--lightgrey) var(--size-4);
  border-radius: var(--size-5);
  background-color: var(--darkgrey);
  display: flex;
  flex-direction: column;
}

.inventory .inventory-header {
  height: calc(var(--size-8) + var(--size-10));
}

.inventory .inventory-header .categories,
.inventory .inventory-header .search {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-self: center;
}

.inventory .inventory-header .categories > * {
  width: calc(50% - var(--gutter-8));
  margin-right: var(--gutter-8);
}

.inventory .inventory-header .search .input-area {
  font-size: var(--type-1);
  line-height: var(--type-1);
  height: var(--size-10);
}
.inventory .inventory-header .search label {
  padding: 0;
  margin: 0;
}

.code-editor-panel {
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--mediumgrey) transparent;
}
.code-editor-panel::-webkit-scrollbar {
  width: var(--size-2);
  background-color: transparent;
}

.code-editor-panel::-webkit-scrollbar-thumb {
  background: var(--mediumgrey);
}

.code-editor-panel .input {
  display: block;
}

.input {
  display: block;
}

.inventory .inventory-items {
  overflow-y: scroll;
  height: 80%;
  scrollbar-width: thin;
  scrollbar-color: var(--mediumgrey) transparent;
}
.inventory-items::-webkit-scrollbar {
  width: var(--size-2);
  background-color: transparent;
}

.inventory-items::-webkit-scrollbar-thumb {
  background: var(--mediumgrey);
}

.inventory .inventory-items .items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.inventory .inventory-items .categories > * {
  width: 90%;
  padding: var(--size-2) var(--size-4);
  margin-bottom: var(--size-3);
}
.inventory .inventory-items .categories {
  margin-top: var(--size-3);
}
.inventory .inventory-items .items > * {
  margin: calc(var(--gutter-8) - calc(var(--size-2) / 8));
}

.inventory .inventory-items .items > *:nth-child(6n) {
  margin-right: 0;
}
.inventory .inventory-items .items > *:nth-child(6n + 1) {
  margin-left: 0;
}

.inventory .inventory-items .category {
  margin-top: calc(var(--gutter-8) - calc(var(--size-2) / 8));
}

.pack {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: var(--size-2);
}

.pack .header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: var(--size-3) 0;
}

.pack .header .text {
  filter: drop-shadow(0 0 0.2em rgba(255, 255, 255, 0.75));
}

.pack .thumbnail {
  width: calc(30% + var(--gutter-8));
  padding-right: var(--gutter-8);
}
.pack .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pack .glitches {
  width: calc(70% - var(--gutter-8));
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-left: var(--gutter-8);
}
.pack .glitches > * {
  margin-top: var(--size-2);
  margin-bottom: var(--size-2);
  margin-left: calc(var(--gutter-8) - calc(var(--size-2) / 4));
  margin-right: calc(var(--gutter-8) - calc(var(--size-2) / 4));
}
.pack .glitches > *:nth-child(4n) {
  margin-right: 0;
}
.pack .glitches > *:nth-child(4n + 1) {
  margin-left: 0;
}

#dragging-element {
  display: none;
  opacity: 1;
  position: absolute;
  z-index: 99;
  transition: all linear 0.03s;
  pointer-events: none;
}

#dragging-element.dragging {
  display: block;
}

.code-stickers {
  position: absolute;
  max-width: calc(5 * var(--size-5));
  transform: translateX(-50%) translateY(var(--size-1));
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: none;
}

.code-stickers .sticker {
  padding: var(--size-0);
  pointer-events: auto;
}

.logo {
  display: flex;
  align-items: flex-end;
  height: 184rem;
}
.logo .logo-img {
  left: 25%;
  transition: all 0.2s;
  transform: rotate(0deg) scale(1);
  width: 70%;
}
.logo .logo-img:hover {
  transform: rotate(-5deg) scale(1.2);
}

.next-level-message {
  /*
    display:flex;
    flex-direction: column;
    justify-content: center;
    margin-top:2.4%;
    margin-left:2.3%;
    border-radius: .5%;
    width:92.2%;
    height:93.5%;
    background-color: rgba(30, 30, 30, 0.8);
    position:absolute;
    align-items: center;
    flex-wrap: wrap;
    z-index: 999999;
    */

  /*Playing around with a different next level message popup-style.
    The old one is above.
    -Liam 2024-06-18*/

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 66;
  height: 66;
  background-color: rgba(30, 30, 30, 0.8);
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999999;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border-style: solid;
  border-width: 5px;
  border-color: rgba(30, 30, 30, 1);
  z-index: 999999;
}

.tutorial-portrait {
  float: right;
  width: 80rem;
  image-rendering: pixelated;
}

.next-level-message > * {
  margin: var(--size-4);
}

.minimized-next-level-message {
  width: 100%;
  height: 3%;
  overflow: hidden;
  position: absolute;
  z-index: 999999;
  padding-left: 63%;
  top: 97%;
  animation: 1s slide-down;
  transition: top ease 0.5s, opacity ease 0.5s, height ease 0.5s;
  opacity: 0;
}

.minimized-next-level-message:hover {
  top: 88%;
  height: 12%;
  opacity: 1;
}

.connection-wire {
  position: absolute;
  width: 40rem;
  height: var(--size-1);
  left: 100%;
  top: 18%;
}

@keyframes slide-down {
  from {
    top: 77%;
    height: 12%;
    opacity: 1;
  }
  to {
    top: 99%;
    height: 1%;
    opacity: 0;
  }
}

#tutorial-message {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(219, 238, 12, 0.8);
  z-index: 999999;
  transition: all 0.2s;
}

.level-select-chip {
  position: absolute;
  right: var(--size-2);
}
.help-icon-wrapper {
  position: absolute;
  right: var(--size-2);
  bottom: var(--size-2);
}

.scanlines {
  overflow: hidden;
  position: relative;
}
.scanlines:before,
.scanlines:after {
  display: block;
  pointer-events: none;
  content: "";
  position: absolute;
}
.scanlines:before {
  width: 100%;
  height: 2px;
  z-index: 2147483649;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0.75;
  animation: scanline 6s linear infinite;
}
.scanlines:after {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483648;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.3) 51%
  );
  background-size: 100% 4px;
  animation: scanlines 1s steps(60) infinite;
}

/* ANIMATE UNIQUE SCANLINE */
@keyframes scanline {
  0% {
    transform: translate3d(0, 200000%, 0);
  }
}
@keyframes scanlines {
  0% {
    background-position: 0 50%;
  }
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 var(--red);
  }
  50% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 18px var(--red);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 var(--red);
  }
}

.highlighted {
  position: relative;
  animation: pulseGlow 2s ease-in-out infinite;
}

.highlighted::before,
.highlighted::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  animation: pulseGlow 2s ease-in-out infinite;
  z-index: -1;
}

.highlighted::after {
  animation-delay: 0.5s;
}

:root {
  --light-variation: 10%; /* Keep it if needed for scaling purposes */
  --default-bg: #1a1a1a;
  --title-bg: #00d6cb;

  /* Color shades */
  --black: #000;
  --black-darker: #111;
  --black-lighter: #333;

  --blue: #007bff;
  --blue-darker: #0056b3;
  --blue-lighter: #66b3ff;

  --purple: #6f42c1;
  --purple-darker: #5a32a3;
  --purple-lighter: #9d75d8;

  --green: #28a745;
  --green-darker: #1e7e34;
  --green-lighter: #71c78a;

  --orange: #fd7e14;
  --orange-darker: #e07b00;
  --orange-lighter: #ffb366;

  --pink: #e83e8c;
  --pink-darker: #d6336c;
  --pink-lighter: #ff77a6;

  --red: #dc3545;
  --red-darker: #c82333;
  --red-lighter: #ff6677;

  --cyan: #17a2b8;
  --cyan-darker: #117a8b;
  --cyan-lighter: #66d6e3;

  --lime: #01ff70;
  --lime-darker: #00cc5c;
  --lime-lighter: #66ff99;
}

.sd-card {
  position: relative;
  /* LIAM: I'm moving sdcard sizing out of this file
  width: 100%;
  flex: 1 1 calc(15%); /* 6 cards per row 
  max-width: calc(15%); 
  */ 
  box-sizing: border-box;
  padding: .5em;
  overflow: hidden; /* Prevent any overflow */
  cursor: pointer;
  background-color: var(--default-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s;
}

.sd-card.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.sd-card svg {
  width: 100%;
  height: 100%;
}

.sd-card svg .shade1 {
  fill: var(--black-darker);
}

.sd-card svg .shade2 {
  fill: var(--black);
}

.sd-card svg .shade3 {
  fill: var(--black-lighter);
}

.sd-card svg .shade4 {
  fill: var(--title-bg);
}

.sd-card svg .shade5 {
  fill: var(--black-darker);
}

/* Color-specific SVG classes */
.sd-card.blue svg .shade1 {
  fill: var(--blue-darker);
}

.sd-card.blue svg .shade2 {
  fill: var(--blue);
}

.sd-card.blue svg .shade3 {
  fill: var(--blue-lighter);
}

.sd-card.blue svg .shade5 {
  fill: var(--blue-darker);
}

.sd-card.purple svg .shade1 {
  fill: var(--purple-darker);
}

.sd-card.purple svg .shade2 {
  fill: var(--purple);
}

.sd-card.purple svg .shade3 {
  fill: var(--purple-lighter);
}

.sd-card.purple svg .shade5 {
  fill: var(--purple-darker);
}

.sd-card.green svg .shade1 {
  fill: var(--green-darker);
}

.sd-card.green svg .shade2 {
  fill: var(--green);
}

.sd-card.green svg .shade3 {
  fill: var(--green-lighter);
}

.sd-card.green svg .shade5 {
  fill: var(--green-darker);
}

/* Add similar rules for orange, pink, red, cyan, lime */

.sd-card:hover {
  transform: scale(1.05);
}

.sd-card-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  fill: transparent;
  pointer-events: none;
}

.sd-card-highlight:hover,
.sd-card-highlight:focus,
.sd-card-highlight:active {
  stroke: #fff;
  stroke-dasharray: 0, 13.72;
  stroke-linecap: round;
  stroke-width: 6px;
  stroke-dashoffset: 0;
  animation: dash-dance 2s linear infinite;
}

@keyframes dash-dance {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 13.72;
  }
}

.title-text{
  font-size: 1em;
  font-weight: bold;
  color: var(--black-lighter);
  text-align: center;
  margin: 0;
  padding: 0;
}
#project-browser {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1em;
  background-image: url('/forest.2d61a8b3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-title {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.hero-description {
  font-size: 1.2em;
  line-height: 1.5;
  padding-bottom: 1em;
}

.hero-section {
  display: flex;
  flex-direction: row;
  align-items: space-evenly;
  gap: 2em; 
  margin-bottom: 2em;
}


.hero-content {
  text-align: center;
  color: white;
  padding: 2em;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.hero-fun-container {
  display: flex;
  flex-direction: row;
  align-items: space-evenly;
}

.hero-video {
  width: 20em;
  border-radius: 5px;
  border: 4px solid #2F3043;
  background: #222;
  z-index: 1;
  object-fit: cover;
}

.hero-jumble {
  width: 20em;   /* Adjust as needed */
  height: 4em;  /* Adjust as needed */
  margin: 0 auto;
  z-index: 3;
  pointer-events: none; /* so it doesn't block text selection */
}

.jumble-img {
  image-rendering: pixelated;
  position: absolute;
  transition: transform 0.2s, filter 0.2s;
  pointer-events: auto; /* allow hover/focus */
  /* Optionally: image-rendering: pixelated; */
}

/* Example unique positions, sizes, rotations, and z-indices: */
.jumble-img.box           { left: 85%; top: 200%; width: 10em;  z-index: 5; transform: rotate(0deg); transform: scaleX(-1);}
.jumble-img.coconut       { left: -50%; top: 20%; width: 12em;  z-index: 2; transform: rotate(-12deg);}
.jumble-img.crystal       { left: 70%; top: 200%; width: 6em;  z-index: 3; transform: rotate(-18deg);}
.jumble-img.door          { left: 40%; top: 200%; width: 8em; z-index: 4; transform: rotate(5deg);}
.jumble-img.pin           { left: 16%; top: 20%; width: 8em;  z-index: 2; transform: rotate(-22deg);}
.jumble-img.walk          { left: 60%; top: 20%; width: 6em;  z-index: 2; transform: rotate(8deg);}
.jumble-img.gravity       { left: 90%; top: 100%; width: 5em;  z-index: 1; transform: rotate(-12deg);}
.jumble-img.apron         { left: 04%; top: 170%; width: 10em;  z-index: 1; transform: rotate(-12deg);}
.jumble-img.flashlight    { left: -20%; top: 150%; width: 10em;  z-index: 1; transform: rotate(-100deg);}

.category-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 2em;
  border-radius: 8px;
  position: relative;
  margin-bottom: 2em;
  gap: 2em;
}

/* Add background colors for each category */
.category-section.tutorials {
  background-color: rgba(66, 135, 245, 0.3); /* Light blue */
}

.category-section.examples {
  background-color: rgba(76, 175, 80, 0.3); /* Light green */
}

.category-section.sandbox {
  background-color: rgba(156, 39, 176, 0.3); /* Light purple */
}

.category-section.comic {
  background-color: rgba(156, 39, 176, 0.3); /* Light purple */
}

.category-info {
  min-width: 25%;
  max-width: 25%;
}

.category-section.right-info {
  flex-direction: row-reverse;
}

.category-section.right-info .category-info {
  text-align: right;
}

.category-header {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.category-description {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: white;
}

.category-items {
  display: flex;
  flex-wrap: nowrap;
  gap: 1em;
  justify-content: space-evenly;
  flex-grow: 1;
}

.category-row {
  display: flex;
  gap: 2em;
}

.category-row .category-section {
  flex: 2;
  min-width: 0;
  max-width: 50%;
  box-sizing: border-box;
  /* Optionally, reduce padding for these half-width sections: */
  padding: 1.5em;
}

.project-actions {
  display: flex;
  flex-direction: column;
  gap: var(--size-2);
  padding: var(--size-2);
}

.project-actions button {
  width: 100%;
}

.project-actions-row {
  display: flex;
  gap: var(--size-2);
}

.project-actions-row button {
  flex: 1;
}

/* Example: 5 cards per row, responsive */
.category-items > .sd-card {
  flex: 1 1 8em;

  width: 100%;
  box-sizing: border-box;
}


/* For single card, let it grow larger */
.category-items > :only-child {
  max-width: 8em;

  margin-left: auto;
  margin-right: auto;
}

.example-card-container {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 10em; /* Adjust as needed for your design */
  margin-bottom: 1em;
}

.character-img {
  image-rendering: pixelated;
  rotate: -10deg;
  position: absolute;
  left: 50%;
  bottom: 70%;
  transform: translateX(-50%);
  width: 12em;   /* Adjust for desired size */
  height: auto;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: transform 0.2s, filter 0.2s;
}

.example-card-container .sd-card {
  position: relative;
  z-index: 2;
}

/* Animation for character image when the card is hovered */
.example-card-container:hover .character-img,
.example-card-container:focus-within .character-img {
  /* Playful scale and rotate, adjust as desired */
  animation: character-bounce 0.4s cubic-bezier(.68,-0.55,.27,1.55);
  transform: translateX(-50%) scale(1.08) rotate(-5deg);
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.25));
}

@keyframes character-bounce {
  0% {
    transform: translateX(-50%) scale(1) rotate(-10deg);
  }
  60% {
    transform: translateX(-50%) scale(1.12) rotate(-7deg);
  }
  80% {
    transform: translateX(-50%) scale(1.05) rotate(-8deg);
  }
  100% {
    transform: translateX(-50%) scale(1.08) rotate(-5deg);
  }
}

.comic-img {
  width: 12em;
  height: auto;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  object-fit: cover;
}

.comic-link:hover .comic-img,
.comic-link:focus .comic-img {
  transform: scale(1.08) rotate(-3deg);
}

@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    gap: 1em;
  }
}

/*# sourceMappingURL=/style.css.map */