:root {
  --pixelSize: 0.4;
  --blue-bg: #082d67;
  --dark-blue-bg: rgb(6, 27, 60);
  --cyan-flash: #00ffff;
  --yellow-flash: #f6ff00;
  --light-yellow: #ffc739;
  --light-blue: #87adf3;

  --fs-p-menu: clamp(0.5rem, 0.355rem + 0.828dvh, 1.1rem);
  --fs-h3-menu: clamp(0.5rem, 0.259rem + 1.379dvh, 1.5rem);
  --fs-h2-menu: clamp(0.7rem, 0.422rem + 1.586dvh, 1.85rem);

}

/* À METTRE DISPLAY NONE!!!!!!!!!!!!!!!!*/
.start-menu {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100dvw;
  height: 100dvh;
  top: 0%;
  left: 0%;
  /* background-color: black; */
  background: var(--blue-bg);
  overflow: hidden;
}

.start-menu-container {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--blue-bg);
  background-image: repeating-linear-gradient(0deg, rgba(78, 111, 111, 0.3), rgba(78, 111, 111, 0.3) 1px, transparent 2px 62px),
    repeating-linear-gradient(90deg, rgba(78, 111, 111, 0.3), rgba(78, 111, 111, 0.3) 1px, #082d67 1px, #082d67 60px);
  border: 5px solid var(--cyan-flash);
  padding: clamp(2px, 2dvh, 30px);
  gap: clamp(6px, 1.2vh, 14px);
  overflow: hidden;
  animation: pulse-glow 2s infinite alternate;
  color: var(--cyan-flash);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 1);
  }

  100% {
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
  }
}

.ring-1, .ring-2,
.portfolio-btn,
.start-menu-container,
.typewriter-effect-line1,
.typewriter-effect-line2,
.typewriter-effect-line3,
.typewriter-effect-line4,
.typewriter-effect-line5 {
    will-change: transform, opacity;
}

.panels-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(6px, 1.2vw, 14px);
  flex: 1;
  min-height: 0;
}

.identity {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  /* gap: clamp(6px, 1.5vw, 16px); */
  gap: clamp(1.25rem, -0.259rem + 8.621vh, 7.5rem);
  flex: 0 0 auto;
  min-height: 0;
  margin: clamp(0rem, -0.603rem + 3.448vh, 2.5rem) 10px;
}

img {
  max-inline-size: 100%;
}

.character-display-wrapper {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  width: clamp(20px, 20dvmin, 180px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-display {
  cursor: pointer;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

}

.character-display-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid rgb(0, 255, 255);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
  border-radius: 50%;
  opacity: 0.8;
}

@keyframes glitch {
  10.5% {
    background-image: url('./src/assets/glitchIdleMonster/glitch-image-1.png');
    background-size: cover;
  }

  15% {
    background-image: url('./src/assets/glitchIdleMonster/glitch-image-2.png');
    background-size: cover;
  }

  17.5% {
    background-image: url('./src/assets/glitchIdleMonster/glitch-image-3.png');
    background-size: cover;
  }

  20% {
    background-image: url('./src/assets/glitchIdleMonster/monsterAnimationIdle.png');
    background-size: cover;
  }

  92.5% {
    background-image: url('./src/assets/glitchIdleMonster/glitch-image-1.png');
    background-size: cover;
  }

  95% {
    background-image: url('./src/assets/glitchIdleMonster/glitch-image-2.png');
    background-size: cover;
  }

  97.5% {
    background-image: url('./src/assets/glitchIdleMonster/glitch-image-3.png');
    background-size: cover;
  }
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.ring-1 {
  inset: clamp(-0.188rem, -0.112rem + -0.431vh, -0.5rem);
  border: 2px solid transparent;
  border-top-color: #00ffff;
  border-right-color: #00ffff;
  animation: spin-right 5s linear infinite;
}

.ring-2 {
  inset: clamp(-0.5rem, -0.379rem + -0.69vh, -1rem);
  border: 2px solid transparent;
  border-bottom-color: #f6ff00;
  border-left-color: #f6ff00;
  animation: spin-left 5s linear infinite;
}

@keyframes spin-right {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-left {
  to {
    transform: rotate(-360deg);
  }
}

.identity h2,
.identity h3 {
  text-transform: uppercase;
}

.identity h2 {
  color: white;
  font-size: var(--fs-h2-menu);
  margin: 0;
  text-align: center;
}

.identity h3 {
  font-size: clamp(0.5rem, 0.307rem + 1.103vh, 1.3rem);
  margin: 0;
  text-align: center;
}

.identity-text {
  display: flex;
  flex-direction: column;
  gap: clamp(1px, 0.3vh, 4px);
  min-width: 0;
  flex-shrink: 0;
}

.bio-panel {
  border: 1px solid var(--cyan-flash);
  background: var(--dark-blue-bg);
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 1vh, 14px);
  min-height: 0;
  overflow: hidden
}

.bio-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.bio-info {
  padding: clamp(0.313rem, -0.216rem + 3.017vh, 2.5rem);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: clamp(0.25rem, 0.5cqi, 0.75rem);
  background-color: rgb(4, 8, 34);
  border-bottom: 1px solid #00ffff;
  overflow: hidden;
  justify-content: center;
}

.bio-info p {
  margin: 0;
  font-size: clamp(0.4rem, 0.231rem + 0.966vh, 1.1rem);
  line-height: 1.4;
  letter-spacing: 2px;
}

.bio-info::-webkit-scrollbar {
  width: 3px;
}

.bio-info::-webkit-scrollbar-track {
  background: var(--dark-blue-bg);
}

.bio-info::-webkit-scrollbar-thumb {
  background: var(--cyan-flash);
  border-radius: 2px;
}

.hot-chocolat-bar {
  border: 1px solid #00ffff;
  background: linear-gradient(90deg, rgba(0, 255, 255, 1) 0%, rgba(74, 144, 194, 1) 24%, rgba(74, 144, 194, 1) 87%, rgba(0, 255, 255, 1) 100%);
  width: 100%;
  position: relative;
  display: flex;
  gap: 20px;
  justify-content: center;
  cursor: pointer;
}

.hot-chocolat {
  width: clamp(20px, min(6dvw, 6dvh), 50px);
  aspect-ratio: 100 / 125;
  background: url("./src/assets/collectible.png") 0 0;
  background-size: calc(31 * 100%) 100%;
  animation: playX 3s steps(31) infinite;
  animation-play-state: paused;
  animation-delay: -2.9s
}

.hot-chocolat-bar.playing .hot-chocolat {
  animation-play-state: running;
  animation-delay: 0s;
}

@keyframes playX {
  from {
    background-position-x: 0%;
  }

  to {
    background-position-x: -3100%;
  }
}

.signal-bar-container {
  display: flex;
  align-items: center;
  margin: clamp(0.313rem, 0.086rem + 1.293vh, 1.25rem);
  flex-shrink: 0;
}

.signal-label {
  letter-spacing: 1px;
  padding-right: 5px;
  font-size: var(--fs-p-menu);

}

.signal-progress-bar-outline {
  display: flex;
  flex: 1;
  position: relative;
  background-color: #43444383;
  border: 1px solid #00ffff;
  height: clamp(0.625rem, 0.172rem + 2.586vh, 2.5rem);

}

.signal-progress-bar {
  transition: width 0.5s ease;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 215, 0, 1) 0%, rgba(255, 153, 0, 1) 100%);
}

.signal-progress-bar.signal-full {
  background: linear-gradient(90deg, #a6ff00, #00ff00);
}

.signal-segments {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
}

.signal-segment {
  flex: 1;
  border-right: 1px solid rgb(0, 255, 255);
}

.signal-segment:last-child {
  border-right: none;
}

.signal-score {
  font-size: var(--fs-p-menu);
  margin-left: 10px;
  color: #00ff00;
}

/* Right Panel */
.menu-right-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vh, 14px);
  min-height: 0;
}

.console-panel {
  flex: 2;
  display: flex;
  flex-direction: column;
  background-color: black;
  border: 1px solid var(--cyan-flash);
  padding: clamp(10px, 1dvh, 20px);
  overflow: hidden;
  font-size: var(--fs-p-menu);
}

.portfolios-container {
  display: flex;
  gap: clamp(6px, 1vw, 12px);
}

.console-wrapper {
  display: flex;
  justify-content: space-between;
  color: #00ffff;
}

.typewriter-wrapper {
  display: inline-block;
}

.typewriter-text {
  letter-spacing: 2px;
  margin-bottom: 0px;
  margin-top: clamp(0px, calc(100dvh - 450px), 13px);
  padding-right: 2px;
}

.console-sign {
  color: green;
  font-size: larger;
  font-weight: bold;
  padding-right: 5px;
  padding-left: 2px;
  animation: blink 1.5s infinite;
}

.typewriter-effect-line1 {
  border-right: 3px solid #00ffff;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 1s steps(17, end) forwards, hide-cursor 0s 1s forwards;
}

.fade-in-delay-line1 {
  color: #00ff00;
  opacity: 0;
  text-shadow: 0 0 8px #00ff00;
  animation: fadeIn-item 0.2s ease 1.2s forwards;
}

.typewriter-effect-line2 {
  border-right: 3px solid transparent;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: visible-cursor 0s 1.5s forwards, typing 1.3s 1.5s steps(23, end) forwards, hide-cursor 0s 2.8s forwards;
}

.fade-in-delay-line2 {
  color: #00ff00;
  opacity: 0;
  text-shadow: 0 0 8px #00ff00;
  animation: fadeIn-item 0.2s ease 3s forwards;
}

.typewriter-effect-line3 {
  border-right: 3px solid transparent;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: visible-cursor 0s 3.3s forwards, typing 1.8s 3.3s steps(29, end) forwards, hide-cursor 0s 5.1s forwards;
}

.fade-in-delay-line3 {
  color: #00ff00;
  opacity: 0;
  text-shadow: 0 0 8px #00ff00;
  animation: fadeIn-item 0.2s ease 5.3s forwards;
}

.typewriter-effect-line4 {
  border-right: 3px solid transparent;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: visible-cursor 0s 5.6s forwards, typing 1.6s 5.6s steps(26, end) forwards, hide-cursor 0s 7.2s forwards;
}

.fade-in-delay-line4 {
  color: #00ff00;
  opacity: 0;
  text-shadow: 0 0 8px #00ff00;
  animation: fadeIn-item 0.2s ease 7.4s forwards;
}

.typewriter-effect-line5 {
  border-right: 3px solid transparent;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: visible-cursor 0s 7.7s forwards, typing 1.8s 7.7s steps(29, end) forwards, hide-cursor 0s 9.5s forwards;
}

.fade-in-delay-line5 {
  color: #00ff00;
  opacity: 0;
  text-shadow: 0 0 8px #00ff00;
  animation: fadeIn-item 0.2s ease 9.7s forwards;
}

.fade-in-delay {
  color: #00ff00;
  opacity: 0;
  text-shadow: 0 0 8px #00ff00;
  animation: fadeIn-item 0.2s ease 1s forwards;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes fadeIn-item {
  from {
    opacity: 0;

  }

  to {
    opacity: 1;

  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

@keyframes visible-cursor {
  to {
    border-color: #00ffff;
  }
}

@keyframes hide-cursor {
  to {
    border-color: transparent;
  }
}

@keyframes cursor-blinking {
  from {
    border-color: transparent
  }

  to {
    border-color: #00ffff;
  }
}

.graph-panel {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  background-color: rgb(6, 27, 60);
  border: 1px solid var(--cyan-flash);
  padding: 0px clamp(5px, 1vw, 20px) clamp(5px, 1dvh, 20px);
  overflow: hidden;
}

.graph-analysis {
  display: flex;
  justify-content: space-between;
}

.graph-analysis h3 {
  color: rgb(0, 255, 255);
  border-bottom: solid 1px #00ffff;
  padding-bottom: clamp(5px, 1dvh, 10px);
  font-size: clamp(0.5rem, 0.259rem + 1.379dvh, 1.5rem);
  margin: clamp(5px, 1dvh, 10px) 0;
}

#performanceAnalysis {
  font-size: var(--fs-p-menu);
  border: none;
  font-family: inherit;
  color: rgb(6, 27, 60);
  background-color: #00ff00;
  border: 1px solid #00ffff;
  margin: clamp(5px, 1dvh, 10px) 0;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    0 2px 0 0 rgb(0, 0, 0),
    0 4px 0 0 rgb(0, 0, 0),
    0 6px 0 0 rgb(0, 0, 0);
  transition: transform 250ms, box-shadow 250ms;
  cursor: pointer;
}

.graph-content {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: clamp(5px, 1vw, 10px);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.diagram-container {
  position: relative;
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid rgb(0, 255, 255);
  border-top: none;
  border-right: none;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: clamp(5px, 1vw, 10px);
  padding-right: clamp(5px, 1vw, 10px);
  min-height: 0;
  overflow: hidden;
}

.graph-panel ul {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  list-style-type: none;
  margin: 0px;
  padding: 0px;
}

.graph-panel li {
  color: #00ffff;
  text-align: center;
  font-size: clamp(0.3em, 1.2dvh, 0.9em);

}

.bar {
  flex: 1;
  background: linear-gradient(180deg, #00ffff, #0088ff);
  height: 5%;
  transform-origin: bottom;
}

.bar-one {
  height: 40%;
  margin-left: 10px;
  background: linear-gradient(180deg, #a6ff00, #00ff48);
  animation: animate-bar-one 1.5s linear 0s infinite normal none;
  animation-play-state: paused;
}

.bar-two {
  height: 60%;
  background: linear-gradient(180deg, #ff00f2, #ff005d);
  animation: animate-bar-two 2s linear 0s infinite normal none;
  animation-play-state: paused;
}

.bar-three {
  height: 85%;
  background: linear-gradient(180deg, #ff0000, #fff200);
  animation: animate-bar-three 2.3s linear 0s infinite normal none;
  animation-play-state: paused;
}

.bar-four {
  height: 55%;
  background: linear-gradient(180deg, #1e00ff, #ff0000);
  animation: animate-bar-four 1.5s linear 0s infinite normal none;
  animation-play-state: paused;
}

.bar-five {
  height: 95%;
  background: linear-gradient(180deg, #9d00ff, #00fff7);
  animation: animate-bar-five 2.8s linear 0s infinite normal none;
  animation-play-state: paused;
}

.graph-panel.active .bar-one,
.graph-panel.active .bar-two,
.graph-panel.active .bar-three,
.graph-panel.active .bar-four,
.graph-panel.active .bar-five {
  animation-play-state: running;
}

@keyframes animate-bar-one {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.4);
  }
}

@keyframes animate-bar-two {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.3);
  }
}

@keyframes animate-bar-three {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.45);
  }
}

@keyframes animate-bar-four {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.35);
  }
}

@keyframes animate-bar-five {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.6);
  }
}

.portfolio-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  background: rgb(3, 12, 27);
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
  padding: clamp(8px, 1.5vh, 18px) clamp(6px, 1vw, 14px);
  font-size: var(--fs-p-menu);
  animation: scaleUp 3s infinite;
}

.portfolio-btn::before {
  content: '';
  opacity: 0;
  inset: 0;
  position: absolute;
  transition: opacity .2s;
}

@keyframes scaleUp {

  0%,
  100% {
    transform: scale(0.98);

  }

  50% {
    transform: scale(1);
  }
}

.portfolio-classic::before {
  background: rgba(0, 255, 255, 0.3);
}

.portfolio-gaming::before {
  background: rgba(246, 255, 0, 0.3);
}

.portfolio-icon {
  font-size: var(--fs-h3-menu);
}

.portfolio-btn p {
  font-size: var(--fs-p-menu);
  margin: clamp(0rem, -0.208rem + 1.19vh, 0.863rem) 0px;
}

.portfolio-label {
  text-transform: uppercase;
  font-size: var(--fs-h3-menu);
  margin: clamp(0.313rem, 0.101rem + 1.207vh, 1.188rem) 0px;
}

.portfolio-gaming {
  color: var(--yellow-flash);
  border: 2px solid var(--yellow-flash);
}

.portfolio-gaming p {
  color: var(--light-yellow);
}

.portfolio-classic {
  color: var(--cyan-flash);
  border: 2px solid var(--cyan-flash);
}

.portfolio-classic p {
  color: var(--light-blue);
}

.console-bar {
  display: flex;
  align-items: center;
  font-size: var(--fs-p-menu);
  text-transform: uppercase;
  color: var(--light-blue);
  background-color: black;
  padding: 0 10px;
  letter-spacing: 1px;
  border: 1px solid rgb(0, 255, 255);
  height: clamp(18px, 3vh, 26px);
}

/* Media queries*/
@media(max-width:1322px) and (min-height: 430px) {
  .bio-info p {
    font-size: clamp(0.4rem, 0.114rem + 0.762dvw, 0.8rem);
  }
}

@media(max-width:1322px) and (min-width: 768px) and (max-height:875px) and (min-height:430px) {
  .bio-info p {
    font-size: clamp(0.4rem, 0.303rem + 0.552dvh, 0.8rem);
  }
}

@media(max-height:545px) {
  .ring-2 {
    display: none;
  }
}

@media(max-height: 630px) {
  .signal-bar-container {
    display: none;
  }
}


@media (max-height: 590px) {
  .console-panel {
    flex: 1;

  }
}

/* @media (max-height: 450px) { */
@media (max-height: 520px) {

  .start-menu-container {
    gap: clamp(3px, 0.8dvh, 8px);
    padding: clamp(2px, 0.8dvh, 8px);
  }

  .panels-container {
    gap: clamp(3px, 0.8dvh, 8px);
  }

  .console-bar {
    display: none;
  }

  .portfolios-container {
    gap: clamp(3px, 0.6dvh, 8px);
  }

  .portfolio-btn {
    padding: clamp(4px, 0.8dvh, 10px) clamp(4px, 0.8dvw, 10px);
    gap: 2px;
  }


  .portfolio-btn p {
    display: none;
  }

  .character-display-wrapper {
    width: clamp(35px, 15dvmin, 80px);
  }
}

@media(max-height:330px) {
  .hot-chocolat-bar {
    display: none;
  }

  .bio-info {
    border-top: 1px solid #00ffff;
  }
}

@media(max-height: 480px) {
  .bio-info {
    overflow-y: auto;
    justify-content: flex-start;
  }

  .bio-info.scroll {
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  }
}

/* @media (max-width: 768px) {
  .character-display-wrapper {
    width: clamp(20px, 10dvmin, 80px);
    height: clamp(20px, 10dvmin, 80px);
  }
} */