/**
* Colors variables
*/
:root {
  --nostalink-dark: #3a3a39;
  --nostalink-gray: #72706f;
  --nostalink-lightgray: #c9c7c3;
  --nostalink-brown: #6f6459;
  --nostalink-red: #9a2a26;
}

@font-face {
  font-family: "pixel_nes";
  src:
    url("../fonts/pixel-nes/Pixel_NES.eot?") format("eot"),
    url("../fonts/pixel-nes/Pixel_NES.woff") format("woff"),
    url("../fonts/pixel-nes/Pixel_NES.ttf") format("truetype"),
    url("../fonts/pixel-nes/Pixel_NES.svg#PixelNES") format("svg");
  font-weight: normal;
  font-style: normal;
}

body {
  background-color: var(--nostalink-dark);
  color: white;
  font-size: 15px;
  margin: 0;
  line-height: 1.5em;
}

.star {
  position: absolute;
  background: white;

  animation-name: twinkle;
  animation-timing-function: steps(3);
  animation-iteration-count: infinite;

  /* Pour que les étoiles restent derrière ton contenu */
  z-index: 0;
}

main > *:not(.star) {
  position: relative;
  z-index: 1;
}

@keyframes twinkle {
  0% {
    opacity: 0.2;
  }

  33% {
    opacity: 1;
  }

  66% {
    opacity: 0.4;
  }

  100% {
    opacity: 0.2;
  }
}

main {
  position: relative;
  flex: 1;
  background-color: black;
}

#stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  pointer-events: none;
  overflow: hidden;
}

a {
  color: var(--nostalink-red);
}

h1 {
  font-size: 40px;
  line-height: 40px;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  padding: 15px 0;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* .content-container {
  width: 960px;
  margin: 0 auto;
  padding: 0 10px;
}
@media (max-width: 768px) {
  .content-container {
    width: 720px;
  }
}
@media (max-width: 576px) {
  .content-container {
    width: 540px;
  }
} */
.content-container {
  width: min(100% - 40px, 960px);
  margin-inline: auto;
  padding: 0 15px;
}

.container-forced {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

.pixel_nes {
  font-family: "pixel_nes";
}

.dialog-box {
  margin: auto;
  padding: 0 25px;
  padding-top: 25px;
  border: 5px solid #1862d4;
  border-radius: 1px;
  width: 200px;
  line-height: 2;
}

.zelda-ii-dialog-box {
  position: relative;
  background-color: black;
  margin: auto;
  padding: 15px 25px;
  border: 0px solid #1862d4;
  box-shadow:
    inset 0 0 0 2px white,
    inset 0 0 0 6px #1862d4,
    inset 0 0 0 8px white;
  border-radius: 1px;
  width: 200px;
  line-height: 2;
  text-shadow: 2px 2px 0px #3d3cf1;
  font-size: 20px;
}
.zelda-ii-dialog-box .corner {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #b53120;
  border: 2px solid white;
}
.zelda-ii-dialog-box .corner.top-left {
  top: -3px;
  left: -3px;
}
.zelda-ii-dialog-box .corner.top-right {
  top: -3px;
  right: -3px;
}
.zelda-ii-dialog-box .corner.bottom-left {
  bottom: -3px;
  left: -3px;
}
.zelda-ii-dialog-box .corner.bottom-right {
  bottom: -3px;
  right: -3px;
}

@media (max-width: 576px) {
  h1 {
    font-size: 32px;
    line-height: 32px;
  }
}

/*Button style 8bit*/
.btn-nostalink {
  background: #92cd41;
  display: inline-block;
  position: relative;
  text-align: center;
  font-size: 30px;
  padding: 20px;
  font-family: "pixel_nes";
  text-decoration: none;
  color: white;
  box-shadow: inset -4px -4px 0px 0px #4aa52e;
  margin-top: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}
.btn-nostalink:hover,
.btn-nostalink:focus {
  background: #76c442;
  box-shadow: inset -6px -6px 0px 0px #4aa52e;
}
.btn-nostalink:active {
  box-shadow: inset 4px 4px 0px 0px #4aa52e;
}
.btn-nostalink:before,
.btn-nostalink:after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
}
.btn-nostalink:before {
  inset: -5px 0;
  border-top: 6px solid #34771f;
  border-bottom: 6px solid #34771f;
}
.btn-nostalink:after {
  inset: 0 -5px;
  border-left: 6px solid #34771f;
  border-right: 6px solid #34771f;
}
.btn-nostalink--reset {
  background: #e76e55;
  box-shadow: inset -4px -4px 0px 0px #8c2022;
}
.btn-nostalink--reset:hover,
.btn-nostalink--reset:focus {
  background: #ce372b;
  box-shadow: inset -6px -6px 0px 0px #8c2022;
}
.btn-nostalink--reset:active {
  box-shadow: inset 4px 4px 0px 0px #8c2022;
}
.btn-nostalink--proceed {
  background: #f7d51d;
  box-shadow: inset -4px -4px 0px 0px #e59400;
}
.btn-nostalink--proceed:hover,
.btn-nostalink--proceed:focus {
  background: #f2c409;
  box-shadow: inset -6px -6px 0px 0px #e59400;
}
.btn-nostalink--proceed:active {
  box-shadow: inset 4px 4px 0px 0px #e59400;
}
.btn-nostalink--proceed:before {
  inset: -5px 0;
  border-top: 6px solid #b57600;
  border-bottom: 6px solid #b57600;
}
.btn-nostalink--proceed:after {
  inset: 0 -5px;
  border-left: 6px solid #b57600;
  border-right: 6px solid #b57600;
}

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