@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,600;6..12,700;6..12,800&family=Nunito:wght@300;400;600;700;800&display=swap");
* {
  box-sizing: border-box;
  user-select: none;
}

:root {
  --background: #fff;
  --nav-fill: #ceeaf2;
  --slider-fill: #005260;
}

body[data-slide="1"] {
  --nav-fill: #cfc98b;
  --background: #f0eed6;
}
body[data-slide="2"] {
  --background: #fad3d1;
  --nav-fill: #f6b6b3;
  --slider-fill: #e40017;
}
body[data-slide="3"] {
  --background: #d6ddec;
  --nav-fill: #bbc7e0;
}
body[data-slide="4"] {
  --background: #d8e9df;
  --nav-fill: #bedaca;
}

html {
  overflow-x: hidden;
}

body {
  height: 100dvh;
  padding-block: 44px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  font-family: "Nunito Sans", sans-serif;
  overflow-x: hidden;
  background-color: var(--background);
  transition: background-color 1000ms ease-out;
}
.scroll-x {
  position: relative;
  display: flex;
  width: 100%;
}
section {
  flex: none;
  display: grid;
  place-items: center;
  height: 100%;
  width: 100%;
}
section div {
  max-width: 1050px;
}
section .eye {
  color: #005260;
  font-weight: 600;
  font-size: 3rem;
  line-height: 1;
  margin: 0;
  font-family: "Nunito", sans-serif;
}

.eye.red {
  color: #e40017;
}
section h1 {
  font-weight: 800;
  font-size: 5rem;
  margin: 0;
  font-family: "Nunito", sans-serif;
}
section p {
  margin: 0;
  font-size: 36px;
}
nav {
  display: block;
  min-height: 44px;
  width: 350px;
  border-radius: 22px;
  background-color: var(--nav-fill);
  transition: background-color 1000ms ease-out;
  position: relative;
  z-index: 5;
  cursor: pointer;
}

nav .slider {
  position: absolute;
  display: grid;
  place-items: center;
  left: 8px;
  top: 8px;
  height: 28px;
  width: 54px;
  border-radius: 14px;
  background-color: var(--slider-fill);
  transition: background-color 1000ms ease-out;
  color: white;
  cursor: all-scroll;
  z-index: 10;
}

nav .targets {
  position: absolute;
  left: calc(8px + (54px / 2) - 4px);
  right: calc(8px + (54px / 2) - 4px);
  top: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 6;
}

nav .target {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: var(--background);
  transition: background-color 1000ms ease-out;
}

@media screen and (max-width: 1400px) {
  .scroll-x {
    max-width: 100vw;
  }
  section div {
    margin: 1rem;
  }
}
@media screen and (max-width: 1000px) {
  section div {
    max-width: 600px;
  }
  section .eye {
    /* From 3rem */
    font-size: 1.5rem;
  }
  section h1 {
    /* From 5rem */
    font-size: 2.5rem;
  }
  section p {
    /* from 36px */
    font-size: 18px;
  }
}

@media screen and (max-width: 600px) {
  body {
    padding-block: 22px;
  }
  header svg {
    height: 60px;
  }
}
@media screen and (max-width: 400px) {
  nav {
    width: calc(100% - 22px * 2);
  }
}
