body {
  margin: 0;
  background: rgb(19, 22, 19);
  color: #00ff00;
  font-family: monospace;
  overflow-x: hidden;
  position: relative;
}

*::selection{
  color: black;
  background-color: #00ff00;
}

/* barre de scroll */
* {    
  -ms-overflow-style: none; 
  scrollbar-width: none;     
}

*::-webkit-scrollbar {
  display: none;     
}

a {
  text-decoration: none;
  color: #00ff00;
  font-size: 1.5rem;
}

p {
  font-size: 0.9rem;
}


/* grid background*/
.grid-layer {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,0,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,0,0.12) 1px, transparent 1px);
  background-size: 100px 100px;
  mix-blend-mode: screen;
  z-index: -2;
}

/* gradient background */
.halo-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(0, 255, 100, 0.15), transparent 70%);
  mix-blend-mode: color-dodge;
  animation: shimmer 8s ease-in-out infinite alternate;
  z-index: -2;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; opacity: 0.2; }
  50% { background-position: 100% 50%; opacity: 0.35; }
  100% { background-position: 0% 50%; opacity: 0.25; }
}

/* separation */
.separation{
  position: relative;
  width: 80vw;
  height: 2px;
  background-color: #00ff00;
  margin: 10vh;
  margin-left: auto;
  margin-right: auto;
  z-index: -2;
}

/* Character */
.path {
    position: absolute;
    top: 50vh;
    bottom: 46vh;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    background-color: #f1e8b8;
    z-index: -1;
}

.container_character {
    position: fixed;
    overflow: hidden;
    width: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: none;
}

.character {
    height: 70px;
    transform: translateX(0);
}

@keyframes walk {
  from { transform: translateX(-120px); }
  to { transform: translateX(0px); }
}

.character.walking {
  animation: walk 0.6s steps(2) infinite;
}

nav {
    position:fixed;
    z-index: 10;
    width: 20%;
    min-width: 200px;
    height: 70px;
    top: 20px;
    justify-self: center;
    background-color: black;
    border: solid 2px #00ff00;
    font-family: "Russo one", sans-serif;
    text-align: center;
    align-content: center;
}


/* Animation TV */
#intro {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#container_tv {
  position: block;
  overflow: hidden;
  width: 594px;
}

.tv {
  width: auto;
  height: 604px;
}

@keyframes tvOn {
  from { transform: translateX(0px); }
  to   { transform: translateX(-13759px); }
}

.anim-tv .tv {
  animation: tvOn 2s steps(24) forwards;
}

.tv-final {
  width: auto;
  height: 604px;
  object-fit: cover; 
  display: none;
  position: absolute;
  align-self: center;
}

.ecran_tv {
  position: absolute;
  z-index: -3;
  align-self: center;
}


/* Graph podium */
svg text {
  fill: #00ff00;
  font-family: monospace;
}

.text_podium{
  fill: black;
}

.bar-vertical {
  fill: #00ff00;
}

.bar-horizontal {
  fill: #00ff00;
}

.liste_classement {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90%;
  max-width: 900px;
  margin:auto;
}

.ranking-item {
  display: flex;
  flex-direction: column; 
  gap: 4px;
}

.ranking-info {
  font-family: monospace;
  color: #00ff00;
  word-break: break-word;
}

.ranking-bar {
  height: 14px;
  background-color: #00ff00;
}

.podium {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
}

.svg_podium {
  display: block;
  margin: 0;
  padding: 0;
  max-width: 100%;
  height: auto;  
}

/* Sections */
.etape1, .etape2, .etape3, .etape4, .etape5 {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    height: auto;
    margin-top: 10%;
}

.graph {
    width: clamp(400px, 35vw, 100%);
    height: clamp(180px, 35vw, 100%);
    position: relative;
    background-color: rgb(0, 0, 0);
    padding: 20px;
    border: solid 2px #00ff00;
    /* margin-top: 10%; */
    font-size: 0.8rem;
}

.graph canvas {
  width: 100% !important;
  height: 100% !important;
}

.graphD {
    margin-left: auto;
    margin-right: 5%;
}

.graphG {
  margin-right: auto;
  margin-left: 5%;
  order: 1;
  width: clamp(400px, 25vw, 100%);
}

.section {
  display: flex;
  width: 45vw;
  flex-direction: column;
  padding: 2vw;
}

.sectionD {
  order: 2;
  text-align: left;
}

.section img{
  width: 15vw;
  position:absolute;
}

.sectionD img{
  align-self: flex-end;
}

.sectionG h1, .sectionG p {
margin-left: 16vw;
max-width: 500px;

}

.sectionD h1, .sectionD p {
margin-right: 16vw;
max-width: 500px;
}

/* étape 5 */
.etape5{
  height: clamp(10%, 100vw, 800px);
  padding-bottom: 0;
}

.graphBig {
  width: clamp(180px, 70vw, 100%);
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/* footer */
footer {
  background-color: black;
  height: 30vh;
  border-top: solid 2px #00ff00;
  padding: 10px;
  margin-top: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 1.3rem;
}

footer a {
  text-decoration: none;
  font-family: "Russo one", sans-serif;
  color: #00ff00;
  text-align: center;
}

footer a:hover {
  color: white;
  transition: 0.3s ease-in-out;
}



@media (max-width: 800px){
  .etape1, .etape2, .etape3, .etape4 {
    flex-direction: column;
    
  }
  .graph {
    margin-right: auto;
    margin-left: auto;
  }
.section{
  width: 90vw;
  background-color: rgb(0, 0, 0, 0.9);
  margin-bottom: 10px;
}
  .graphG{
    order: 2;
  }

  .sectionD{
    order:1;
  }

  .ranking-item {
    flex-direction: column;
  }
}


.contenu-text {
  background-color: black;
  color: #00ff00;
  border: solid 2px #00ff00;
  height: auto;
  width: clamp(400px, 90vw, 800px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 150px;
  padding: clamp(20px, 3%, 100px);
}

.contenu-text h1 {
  font-family: "Russo one", sans-serif;
  text-align: center;
  margin-bottom: 50px;
}



/* Bowser */
/* .bowser {
  position: absolute;
  left: 30%;
  top: 67%;
  z-index: 5;
}

.bowser_img {
  width: 200px;
  height: auto;
}

.loser{
  position: absolute;
  bottom: 0;
  left:50%;
} */

/* modales 3D*/

.modal {
  position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        display: none;
        align-items: center;
        justify-content: center;
}

.modal_inside {
        background: #111;
          border: 1px solid #00ff00;
          padding: 20px;
          width: 500px;
          color: #00ff00;
          font-family: monospace;
}

.modal_structure {
  display: flex;
  gap: 10px;
  width: auto;
}

.modalG {
  flex: 1;
}

.modalD {
  flex: 1;
  border: solid 1px #00ff00;
  position: relative;
}

.modalD canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.btn_modal {
  margin-top: 10px;
            padding: 5px 10px;
            background: black;
            border: 1px solid #00ff00;
            color: #00ff00;
            font-family: monospace;
            cursor: pointer;
}
