* {
  margin: 0;
  padding: 0;
  font-family: 'px';
  font-weight: 300;
  box-sizing: border-box;
}

@font-face {
  font-family: 'px';
  font-weight: 300;
  src: url('Px-Grotesk-Regular.woff');
  font-style: normal;
}

@font-face {
  font-family: 'px';
  font-weight: 400;
  src: url('Px-Grotesk-Regular.woff');
  font-style: normal;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  cursor: none;
  background: white;
}

/* Stage */
.stage {
  position: fixed;
  inset: 0;
}

nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
}

nav h1 {
  color: #362419;
  font-weight: 700;
  font-size: 35px;
  letter-spacing: 2px;
  text-align: left;
  pointer-events: none;
}

button,
.ribbon {
  padding: 10px 20px;
  background: white;
  border-radius: 50px;
  border: 1.5px solid black;
  font-size: 20px;
  font-family: 'px';
  font-weight: 300;
}

button {
  cursor: pointer;
}

@media all and (max-width: 800px) {
  nav {
    left: 0px;
    top: 20px;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 10px;
  }
}

.inline-gif {
    width: 3em;
    height: 3em;
     object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin: -12px -5px;
    margin-top: -35px;
}

/* Painting media (JPG / GIF) */
#painting-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

/* Mask canvas */
canvas#mask {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Frame overlay */
#frame {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3;
  pointer-events: none;
}

/* Brush cursor */
.cursor {
  position: fixed;
  width: 60px;
  height: 180px;
  background: center / contain no-repeat url('https://file.garden/aXHsl-1cKApJSa-W/painting/brush.png');
  transform: translate(-20%, -80%) rotate(45deg);
  pointer-events: none;
  z-index: 4;
}

/* Button */
#new-painting {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s;
}
