/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

*, *::before, *::after {
  box-sizing: border-box;
}

*:not(dialog) {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#root, #__next {
  isolation: isolate;
}

/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/

:root {
  /* Default mouse position */
  --Xpos: 50%;
  --Ypos: 50%;
}

body {
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flashlight-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.content {
  color: #ffffff;
  text-align: center;
  padding: 20px;
}

.flashlight-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* radial gradient mask */
  background: radial-gradient(
    circle 200px at var(--Xpos) var(--Ypos),
    transparent 10%,
    rgba(0, 0, 0, 0.95) 80%
  );
}

.svg {
  width: 50vw;
  height: 50vw;
}

.svg.pumpkin {
  background: url('./image.svg') no-repeat;
}
