/* ------------------- */
/* Reset               */
/* ------------------- */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
    margin: 0; 
}

/* set up the body */
body {
    line-height: 1.5;
    min-height: 100vh;
}

/* make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* make form elements easier to work with */
input,
button,
textarea,
select {
    font: inherit;
}

/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------- */
/* Styles              */
/* ------------------- */

div {
    position: absolute;
    top: 0;
    left: 0;
    /* right: 0; */
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

h1 {
    margin: 0 40vw;
    width: 100vw;
    font-family: monospace;
    font-size: 8vw;
}

#first {
    background: linear-gradient(90deg, 
    hsl(120, 100%, 45%) 0%, 
    hsl(120, 100%, 30%) 100%);
    right: 0;
}

#second {
    background: linear-gradient(90deg, 
    hsl(240, 100%, 70%) 0%, 
    hsl(240, 100%, 75%) 100%);
    /* right: var(--right-percentage); */
    /* z-index: 2; */
    width: 0;
}

#second h1 {
    font-size: 5vw;
}

#second h1 span:first-of-type {
    color: hsl(120, 100%, 30%);
}

#first span {
    color: hsl(240, 100%, 75%);
}

#custom-cursor {
    background-color: hsl(240, 100%, 75%);
    border: 2px solid hsl(120, 100%, 30%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: absolute;
    top: -100%;
    left: -100%;
    translate: -50% -50%;
    transition: scale 200ms ease-in-out;
}

#custom-cursor:active {
    scale: 1.5;
}