:root {
  --color-text: #dfdfe0;
  --color-background: #17052d;
  --color-link: #ff91e9;
  --color-sun: #ff6c50;
  --color-primary:#52a8d9;
  --color-secondary:#edf6fb;
  --color-hair:#8fb5c8;
  --color-details:#cd2b80;
  --color-nose:#13181e;
  --color-eyes:#476364;
  --sun-height: 20vh;
  --sun-widht: 40vh;
  --content-width: 700px;
  --font-size: 1.1rem;
  --line-height:  1.6rem;
}

@font-face {
  font-family: "Nimbus Sans L";
  src: url("./font/NimbusSanL-Reg.otf") format("opentype");
}

@font-face {
  font-family: "Nimbus Sans L";
  src: url("./font/NimbusSanL-RegIta.otf") format("opentype");
  font-style: italic;
}

@font-face {
  font-family: "Nimbus Sans L";
  src: url("./font/NimbusSanL-Bol.otf") format("opentype");
  font-weight: bold;
}

@font-face {
  font-family: "Nimbus Sans L";
  src: url("./font/NimbusSanL-BolIta.otf") format("opentype");
  font-weight: bold;
  font-style: italic;
}

html {
  height: 100%;
  font-family: "Nimbus Sans L", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  padding: 0;
  margin: 0;
  color: var(--color-text);
  background: var(--color-background);
  background: linear-gradient(
    0deg, 
    var(--color-background), 
    oklch(from var(--color-background) l calc(c + 0.25) calc(h + 30)) 50%, 
    oklch(from var(--color-background) l calc(c + 0.2) calc(h + 40)) 50%,
    var(--color-background) 100%
  );
  background-position: fixed;
  font-size: var(--font-size);
}

body {
  height: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  padding: 0;
  align-items: stretch;
}

.container {
  width: 100%;
  height: 100%;
  overflow: auto;
}

.ref {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  border-right: 1px solid oklch(100% 0% 0 / 10%);
  border-left: 1px solid oklch(100% 0% 0 / 10%);
  background: oklch(0% 0% 0 / 40%);
  padding: 2rem;
  box-sizing: border-box;

}

h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 0;
  margin-top: 0;
}

h2, h3 {
  margin: auto 0;
}

h4 {
  background: var(--color-primary);
  color: var(--color-background);
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 2rem;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.ref header {
  text-align: center;
}

.infos ul {
  padding: 0;
}

.infos ul li {
  display: inline-block;
  list-style: none;
}

.colors {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.colors div {
  flex: 1;
  padding: 1rem;
  border-radius: 1rem;
}

.colors .primary {
  background-color: var(--color-primary);
}
.colors .secondary {
  background-color: var(--color-secondary);
}
.colors .hair {
  background-color: var(--color-hair);
}
.colors .details {
  background-color: var(--color-details);
}
.colors .nose {
  background-color: var(--color-nose);
}
.colors .eyes {
  background-color: var(--color-eyes);
}

.colors .contrast {
  color: var(--color-background);
}

.refs {
  position: relative;
}

.refs a {
  display: block;
}

.refs img {
  width: 100%;
  border-radius: 1rem;
  display: block;
}

.refs a + a {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
}

.alt {
  text-align: left;
  font-size: .8rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
}

input {
  display: none;
}

.alt span {
  display: inline-block;
  width: 3rem;
  height: 2rem;
  border-radius: 2rem;
  background-color: var(--color-text);
  position: relative;
  margin-right: 1rem;
}

.alt span > span {
  position: absolute;
  top: .1rem;
  left: .1rem;
  display: block;
  height: 1.8rem;
  width: 1.8rem;
  background-color: var(--color-details);
  transition: left .1s linear;
}

input:checked + .alt span > span {
  left: 1.1rem;
}

input:checked + .alt + .refs a + a {
  display: block;
}

.background {
  position: absolute;
  top: 0%;
  height: 100%;
  width: 100%;
  perspective: 20vw;
  perspective-origin: center;
  overflow: hidden;
}

.lines {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .2) 1px, transparent 1px);
  height: inherit;
  transform: rotateX(50deg);
  transform-origin: top center;
  animation: 30s linear infinite crawlingWall;
	background-position-y: top;
  position: fixed;
  top: 50%;
  left: 0;
  bottom: -100%;
  right: 0;
  z-index: 1;
}

.sun {
  width: var(--sun-widht);
  height: var(--sun-height);
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 0;
  background: var(--color-sun);
  border-radius: var(--sun-widht) var(--sun-widht) 0 0;
  transform: translate(-50%, calc(-1 * var(--sun-height)));
  background: linear-gradient(0deg, var(--color-sun) 0%, oklch(from var(--color-sun) calc(l + 1) c calc(h + 30)) 100%);
  box-shadow: var(--color-sun) 0 0 20rem;
}

@keyframes crawlingWall {
  to {
    background-position-y: bottom;
  }
}

@media only screen and (max-width: 1500px) {
  .sun {
    display: none;
  }
}

@media only screen and (max-width: 800px) {
}

@media only screen and (max-height: 700px) {
}