:root {
  --pixelSize: 0.6;

  --fs-h1: clamp(2rem, 1.842rem + 0.842dvw, 2.6rem);
  --fs-h2: clamp(1.4rem, 1.114rem + 0.762dvw, 1.8rem);
  --fs-h3: clamp(1.2rem, 1.121rem + 0.421dvw, 1.5rem);
  --fs-h4: clamp(1rem, 0.921rem + 0.421dvw, 1.3rem);
  --fs-p: clamp(0.8rem, 0.721rem + 0.421dvw, 1.1rem);
}

body,
html {
  margin: 0;
  padding: 0;
  background: black;
  overflow: hidden;

  font-family: "Orbitron", sans-serif;
  font-optical-sizing: auto;
  /* font-weight: <weight>; */
  font-style: normal;
  color: #00ffff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#gameCanvas {
  display: block;
  filter: brightness(100%);
  transition: filter 0.3s ease;
  will-change: filter;
}

#gameCanvas.dimmed {
  filter: brightness(70%);
}

/*Sound settings panel*/

#gameNav {
  position: fixed;
  top: 12px;
  right: 12px;
  display: none;
  flex-direction: row;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
}

#gameNav .icon-btn {
  pointer-events: auto;
}

.soundSettingsPanel {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(450px, 35%, 600px);
  /* Largeur responsive */
  height: clamp(100px, 30%, 400px);
  transform: translate(-50%, -50%);
  background-color: rgb(8, 45, 103);
  border: 3px solid rgb(0, 255, 255);
  background-image: repeating-linear-gradient(0deg, rgba(78, 111, 111, 0.3), rgba(78, 111, 111, 0.3) 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(78, 111, 111, 0.3), rgba(78, 111, 111, 0.3) 1px, #082d67 1px, #082d67 60px);
  z-index: 101;
  color: #00ffff;
  letter-spacing: 2px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  /* padding: 0px 5px 20px 5px; */
}

.soundSettingsPanel h1 {
  box-sizing: border-box;
  border-bottom: 2px solid #00ffff;
  font-size: clamp(0.8em, 4dvh, 5em);
  margin: clamp(5px, 2dvh, 20px) 0 clamp(5px, 2dvh, 20px) 0;
}

#btnCloseSoundSettings {
  position: absolute;
  top: 8%;
  right: 3%;
  /* height: 30px;
  width: 30px; */
  height: clamp(15px, 4dvh, 35px);
  width: clamp(15px, 4dvh, 35px);
  background: transparent;
  border: 1px solid #00ffff;
  border-radius: 6px;
  color: #00ffff;
  /* font-size: 18px; */
  font-size: clamp(10px, 2.5dvh, 20px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}



.sliders-container {
  display: flex;
  /* Changez inline-block en flex */
  flex: 1;
  flex-direction: column;
  gap: clamp(15px, 4dvh, 40px);
  align-items: center;
  justify-content: center;
  width: 100%;
  white-space: nowrap;
  /* overflow: hidden; */
  padding: clamp(5px, 4dvh, 40px);
  padding-top: 0px;
  box-sizing: border-box;
}

.slider-container span {
  font-size: clamp(0.6em, 2dvh, 1.2em);
}

.slider-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.slider {
  margin-left: 20px;
  margin-right: 10px;
  -webkit-appearance: none;
  appearance: none;
  height: clamp(5px, 1.2dvh, 10px);
  background: #070033;
  border: 1px solid #00ffff;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  /* width: 5px;
  height: 25px; */
  width: clamp(4px, 0.5vw, 6px);
  height: clamp(20px, 3dvh, 30px);
  /* width: clamp(4px, 1vw, 5px);
  height: clamp(20px, 3dvh, 25px); */
  background: #00ffff;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: clamp(4px, 0.5vw, 6px);
  height: clamp(20px, 3dvh, 30px);
  background: #00ffff;
  cursor: pointer;
}



.slider-value span {
  font-size: clamp(0.6em, 2dvh, 1.2em);
  display: inline-block;
  width: 2ch;
  text-align: center;
}

/*Full screen and Sound settings buttons*/
.icon-btn {
  width: clamp(36px, 6dvh, 48px);
  height: clamp(36px, 6dvh, 48px);

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid rgb(0, 255, 255);
  background-color: rgb(8, 45, 103);
  color: #00ffff;
  opacity: 0.7;
  cursor: pointer;
  pointer-events: auto;

  padding: 0;
}

.icon-btn i {
  font-size: 1.1em;
  line-height: 1;
}

#cvPanel,
#portfolioPanel,
#contact {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 100, 255, 0.05) 100%);
  /* -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px); */
  background: rgba(0, 50, 100, 0.85);
  border: 2px solid #00ffff;
  border-radius: 12px;
  box-shadow:
    0 0 30px rgba(0, 255, 255, 0.464),
    inset 0 0 20px rgba(0, 255, 255, 0.1);

  display: none;
  z-index: 100;
  overflow: hidden;
  animation: fadeIn 0.5s;

  filter: brightness(100%);
  transition: filter 0.3s ease;
}

#cvPanel.dimmed,
#portfolioPanel.dimmed,
#contact.dimmed {
  filter: brightness(70%);
}

#cvPanel,
#portfolioPanel,
#contact,
.soundSettingsPanel {
  will-change: opacity, transform;
}


@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    /* transform: scale(0) */
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    /* transform: scale(1) */
  }
}

.nav-browser {
  border-bottom: 2px solid #00ffff;
  height: 60px;
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.2) 0%, rgba(0, 100, 255, 0.1) 100%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0px 20px;
  position: relative;
}

.dots {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.dot-point {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  border: 2px solid #00ffff;
  display: flex;
  align-items: center;
  justify-content: center;
  /* display: inline-block; */
}

.small-dot-point {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: #00ffff;
  /* display: inline-block; */
}

input[type=text] {
  background: transparent;
  border: 1px solid #00ffff;
  color: #00ffff;
  border-radius: 18px;
  height: 35px;
  font-size: var(--fs-p);
  outline: none;
  flex: 1;
  padding: 0px 20px;
  margin: 20px;
}

.nav-buttons {
  display: flex;
  gap: 12px;
}

.nav-btn {
  height: 35px;
  width: 35px;
  font-size: var(--fs-p);
  background: transparent;
  border: 1px solid #00ffff;
  border-radius: 6px;
  color: #00ffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}



.browser-content {
  box-sizing: border-box;
  height: calc(100% - 60px);
  /*background-color: blue;*/
  padding: clamp(0.938rem, 0.691rem + 1.316vw, 1.875rem);
  position: relative;
  overflow-y: auto;
}

/*Scroll bar style*/

.browser-content::-webkit-scrollbar {
  width: 8px;
}

.browser-content::-webkit-scrollbar-track {
  background: rgba(0, 255, 255, 0.1);
  border-radius: 10px;
}

.browser-content::-webkit-scrollbar-thumb {
  background: #00ffff;
  border-radius: 10px;
}



.content-section {
  margin-bottom: 40px;
  /* padding: 25px; */
  background: rgba(8, 39, 97, 0.692);
  border: 2px solid #00ffff;
  border-radius: 8px;
  position: relative;
}

.content-section::before {
  content: '';
  position: absolute;
  inset: 0;

  /* top: 0px;
  left: -2px;
  right: -2px;
  bottom: -2px; */
  background: linear-gradient(180deg, #00ffff, rgb(0, 183, 255), #00ffff);
  border-radius: 8px;
  z-index: -1;
  animation: borderGlow 3s infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 0.1;
  }

  50% {
    opacity: 0.8;
  }
}

/*CV*/
.cv-header {
  border-bottom: 2px solid #00ffff;
  text-align: center;
  position: relative;
  padding: clamp(0.625rem, -0.268rem + 2.381vw, 1.875rem);
  padding-bottom: 30px;
}

.cv-header h1 {
  font-size: var(--fs-h1);
}

.cv-job {
  font-size: var(--fs-p);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cv-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-size: var(--fs-p);
  gap: 20px;
}

.cv-icons {
  color: #00ffff;
  border: 1px solid #00ffff;
  border-radius: 15px;
  text-decoration: none;
  padding: 5px 10px;
  letter-spacing: 1px;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    0 2px 0 0 rgb(17, 28, 65),
    0 4px 0 0 rgb(17, 28, 65),
    0 6px 0 0 rgb(17, 28, 65),
    0 8px 0 0 rgb(17, 28, 65),
    0 8px 16px 0 rgba(17, 28, 65, 0.5);
  transition: transform 250ms, box-shadow 250ms;
}

.cv-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  background-color: rgba(8, 39, 97, 0.692);
}

.cv-left-column {
  border-right: 2px solid #00ffff;
  padding: clamp(0.625rem, 0.323rem + 1.724vw, 1.875rem);
}

.cv-section {
  margin-bottom: 40px;
}

.cv-section-title {
  color: #00ffff;
  border-bottom: 2px solid #00ffff;
  padding-bottom: 10px;
  position: relative;
  text-transform: uppercase;
  /* font-size: 1.4em; */
  font-size: var(--fs-h2);
  letter-spacing: 1px;
  font-weight: bold;
}

/*FORMATION*/
.formation-item {
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.school-program {
  font-weight: bold;
  /* font-size: 1.1em; */
  font-size: var(--fs-p);
  letter-spacing: 1px;
  margin-bottom: 0px;
  margin-top: 0px;

}

.school-name {
  font-size: 0.9rem;
  color: #87adf3;
  margin-top: 3px;
  margin-bottom: 0px;
}

.school-year {
  font-size: 0.8rem;
  margin-top: 3px;
  margin-bottom: 0px;
}

/*Logiciels*/
.logiciel {
  list-style: none;
  padding: 0px;
  margin: 0px;
}

.logiciel li {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  text-align: center;
  font-size: var(--fs-p);
  letter-spacing: 1px;

}

.langage {
  margin: 0px;
  margin-left: 30px;
  margin-top: 40px;
  padding: 0px;

}

.langage li {
  letter-spacing: 1px;
  font-size: var(--fs-p);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/*Right column*/

.cv-right-column {
  padding: clamp(0.625rem, 0.323rem + 1.724vw, 1.875rem);
}

/*Profil*/

.profil-text {
  font-size: var(--fs-p);
  letter-spacing: 1px;
}


/*Experience*/


.experience-item {
  /* background-color: rgba(8, 39, 97, 0.692); */
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-left: 5px solid #00ffff;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 30px;
}

.experience-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

}

.experience-header h3 {
  letter-spacing: 1px;
  font-weight: bold;
  font-size: var(--fs-h3);
}

.experience-header p {
  font-size: 0.8rem;
}

.experience-title {
  margin-top: 0px;
  color: #87adf3;
  letter-spacing: 1px;
  font-size: var(--fs-p);
}

.experience-item ul {
  padding-left: clamp(1.25rem, 0.357rem + 2.381vw, 2.5rem);
}

.experience-item li {
  letter-spacing: 1px;
  padding: 10px;
  line-height: 1.5;
  font-size: var(--fs-p);
}

/* Skills */
.cv-skills {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cv-skills h3 {
  font-size: var(--fs-h3);
  letter-spacing: 1px;
  margin-top: 0em;
  margin-bottom: 0.5em;
}

.skill-level-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.skill-level-label {
  color: #87adf3;
  font-size: var(--fs-p);
  letter-spacing: 1px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.skill-tags span {
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 15px;
  padding: clamp(0.313rem, 0.267rem + 0.259vw, 0.5rem) clamp(0.5rem, 0.379rem + 0.69vw, 1rem);
  font-size: 0.85rem;
  font-size: var(--fs-p);
  letter-spacing: 1px;
  background: rgba(0, 255, 255, 0.1);
}

.download-link {
  color: #00ffff;
}

.download-link:visited {
  text-decoration: none;
}

/*End CV*/

/*PORTFOLIO*/

.portfolio-header {
  text-align: center;
  position: relative;
  border-bottom: 2px solid #00ffff;
  padding: clamp(0.625rem, -0.268rem + 2.381vw, 1.875rem);
}

.portfolio-header h1 {
  font-size: var(--fs-h1);
}

.portfolio-header p {
  letter-spacing: 1px;
  font-size: var(--fs-p);
  margin-bottom: clamp(0.313rem, -0.179rem + 1.31vw, 1rem);
}

.portfolio-body {
  display: grid;
  grid-template-columns: 1fr;
  padding: clamp(0.625rem, -0.268rem + 2.381vw, 1.875rem);
  gap: clamp(1.25rem, 0.921rem + 1.754vw, 2.5rem);
}

.project {
  position: relative;
  background: rgba(8, 39, 97, 0.8);
  border: 2px solid rgba(0, 255, 255, 13);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: clamp(0rem, -0.164rem + 0.877vw, 0.625rem);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-video {
  position: relative;
  width: 100%;
  /* max-width: 800px; */
  padding-top: 56.25%;
  border-radius: 8px 8px 0px 0px;
  overflow: hidden;
}

/* .ytp-title-beacon-pulse {
  animation: none !important;
} */

.ytp-title-beacon,
.ytp-title-beacon-pulse,
.ytp-gradient-top,
.ytp-gradient-bottom {
  animation: none !important;
  transition: none !important;
}

.project-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.project>*:not(.project-video) {
  padding-left: clamp(0.625rem, -0.268rem + 2.381vw, 1.875rem);
  padding-right: clamp(0.625rem, -0.268rem + 2.381vw, 1.875rem);
}

.project-title {
  font-size: var(--fs-h2);
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  margin: 0px;
  padding-top: clamp(0.625rem, -0.268rem + 2.381vw, 1.875rem);
  padding-bottom: clamp(0.625rem, -0.268rem + 2.381vw, 1.875rem);
  margin-top: calc(-1 * clamp(0rem, -0.164rem + 0.877vw, 0.625rem));
  border-bottom: 3px solid #00ffff;
}

.project-role {
  padding: 0px;
  margin-top: clamp(0.625rem, 0.357rem + 0.714vw, 1rem);
  margin-bottom: 0px;
}

.project-role li {
  display: inline-block;
  background: rgba(0, 255, 255, 0.2);
  list-style: none;
  border: 1px solid #00ffff;
  border-radius: 15px;
  padding: 4px 12px;
  font-size: var(--fs-p);
  margin-right: 10px;
  margin-bottom: 7px;
}

.project-role li:last-child {
  margin-right: 0px;
}

.project-details {
  letter-spacing: 1px;
  font-size: var(--fs-p);
}

.project-detail-label {
  text-transform: uppercase;
}

.project-detail-value {
  color: #87adf3;
}

.project-tasks {
  letter-spacing: 1px;
}

.project-tasks p {
  text-transform: uppercase;
  font-size: var(--fs-p);
}

.project-tasks li::marker {
  color: #00ffff;
}

.project-tasks ul {
  padding-left: clamp(1.25rem, 0.357rem + 2.381vw, 2.5rem);
}

.project-tasks li {
  color: #87adf3;
  letter-spacing: 1px;
  padding-bottom: 10px;
  line-height: 1.5;
  font-size: var(--fs-p);
}

.project-description-label {
  font-size: var(--fs-p);
  letter-spacing: 1px;
  margin-top: clamp(0rem, -0.714rem + 1.905vw, 1rem);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.project-description {
  line-height: 1.5;
  letter-spacing: 1px;
  margin-top: 0px;
  font-size: var(--fs-p);
  color: #87adf3;
}

.project-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  align-self: start;

}

.skill-tag {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 2px;
  padding: 4px 12px;
  font-size: 0.85em;
  letter-spacing: 1px;
}

.project-links {
  display: flex;
  flex-direction: row;
  border-top: 1px solid #00ffff;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: clamp(0.625rem, -0.268rem + 2.381vw, 1.875rem);
}

.project-link {
  color: #00ffff;
  border: 2px solid rgba(0, 255, 255, 0.3);
  padding: 8px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-size: var(--fs-p);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    0 2px 0 0 rgb(17, 28, 65),
    0 4px 0 0 rgb(17, 28, 65),
    0 6px 0 0 rgb(17, 28, 65),
    0 8px 0 0 rgb(17, 28, 65),
    0 8px 16px 0 rgba(17, 28, 65, 0.5);
  overflow: hidden;
  transition: transform 250ms, box-shadow 250ms;
}


.technical-project-title {
  font-size: var(--fs-h2);
  letter-spacing: 1px;
  text-align: center;
  position: relative;
  border-bottom: 2px solid #00ffff;
  border-top: 2px solid #00ffff;
  padding-top: clamp(0.625rem, -0.268rem + 2.381vw, 1.875rem);
  padding-bottom: clamp(0.625rem, -0.268rem + 2.381vw, 1.875rem);
  margin: 0px;
  margin-top: calc(-1 * clamp(0rem, -0.164rem + 0.877vw, 0.625rem));
}

/*End PORTFOLIO*/

/* Contact */
#contact .browser-content {
  display: flex;
  flex-direction: column;
}

#contact .content-section {
  flex: 1;
  margin-bottom: 0px;
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: center;
}

.contact-header {
  letter-spacing: 1px;
  color: #00ffff;
  text-align: center;
  padding: 30px;
  padding: clamp(0.625rem, 0.296rem + 1.754vw, 1.875rem);
  padding-bottom: clamp(0rem, -0.493rem + 2.632vw, 1.875rem);
  position: relative;
}

.contact-header h1 {
  font-size: var(--fs-h1);
  margin: clamp(0rem, -0.461rem + 2.456vw, 1.75rem);
  margin-bottom: clamp(0rem, -0.822rem + 4.386vw, 3.125rem);
}

.contact-grid {
  display: grid;
  /* grid-template-columns: repeat(2, minmax(500px, 1fr)); */
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.938rem, 0.691rem + 1.316vw, 1.875rem);
  margin: clamp(1.25rem, 1.086rem + 0.877vw, 1.875rem);
  margin-top: 0px;
  /* overflow: hidden;  */
}

/* .contact-grid a {
  text-decoration: none;
  white-space: nowrap;
} */
.contact-grid a {
  display: flex;
  text-decoration: none;
}


.contact-item {
  flex: 1;
  letter-spacing: 1px;
  color: #00ffff;
  text-align: center;
  border: 1px solid #00ffff;
  border-radius: 12px;
  padding: clamp(0.938rem, 0.362rem + 3.07vw, 3.125rem) clamp(1.25rem, 1.086rem + 0.877vw, 1.875rem);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    0 2px 0 0 rgb(17, 28, 65),
    0 4px 0 0 rgb(17, 28, 65),
    0 6px 0 0 rgb(17, 28, 65),
    0 8px 0 0 rgb(17, 28, 65),
    0 8px 16px 0 rgba(17, 28, 65, 0.5);
  transition: transform 250ms, box-shadow 250ms;
}

.contact-item p {
  word-break: break-all;
  margin-bottom: 0px;
  font-size: var(--fs-p);
}

.contact-item h3 {
  margin: clamp(0.875rem, 0.711rem + 0.877vw, 1.5rem);
  margin-bottom: clamp(0rem, -0.395rem + 2.105vw, 1.5rem);
  font-size: var(--fs-h3);
}

.contact-item i {
  font-size: clamp(1.5rem, 1.368rem + 0.702vw, 2rem);
}

/* End Contact */

/* Responsive browser*/
@media (max-width: 1200px) {
  .cv-body {
    grid-template-columns: 1fr;
  }

  .cv-left-column {
    border-right: none;
    border-bottom: 2px solid #00ffff;
  }

  .portfolio-body {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
#mobileControls {
  position: fixed;
  display: none;
  justify-content: space-between;
  bottom: 5%;
  width: calc(100% - 40px);
  margin: 0px 20px;
  box-sizing: border-box;
  pointer-events: none;
  user-select: none;
  touch-action: none;
  -webkit-user-select: none;
  /* 
  padding: 0 30px;
  z-index: 10; */
}

#mobileControls button {
  background-color: rgba(8, 45, 103, 0.8);
  color: rgb(0, 255, 255);
  font-size: 32px;
  border: 2px solid rgb(0, 255, 255);
  border-radius: 5%;
  width: 50px;
  height: 50px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left-controls {
  display: flex;
  flex-direction: row;
  gap: 40px;

}

/* End Mobile */

/* Orientation overlay */

#overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1000;
  top: 0%;
  left: 0%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  gap: 100px;
}

.rotate-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #00ffff;
  border-bottom: 1px solid #00ffff;
}

.phone {
  font-size: 60px;
  margin-bottom: 40px;
  animation: bounce-rotate 3s ease-in-out infinite;
}

.turn-arrow-right {
  font-size: 40px;
  margin-bottom: 20px;
  animation: rotate 3s ease-in-out infinite;
}

.rotate-device p {
  letter-spacing: 2px;
  font-size: 1.2em;
  text-align: center;
}

#overlay small {
  color: #87adf3;
  letter-spacing: 2px;
  font-size: 1em;
  animation: pulse 2s ease-in-out infinite;
  text-align: center;
  margin-bottom: 40px;
}

@keyframes rotate {

  0%,
  50% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(90deg);
  }
}

@keyframes bounce {

  0%,
  50% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-20px);
  }
}

@keyframes bounce-rotate {

  0%,
  50% {
    transform: translateY(0);
    transform: rotate(0deg);
  }

  25% {
    transform: translateY(-20px);
    transform: rotate(90deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* End Orientation overlay */

/* Score Panel */
#scorePanel {
  position: fixed;
  top: 16px;
  left: 16px;
  background-color: rgba(8, 45, 103, 0.7);
  border-radius: 8px;
  border: 3px solid #00ffff;
  color: #00ffff;
  font-size: clamp(0.6em, 2.5dvh, 1.5em);
  display: none;
  flex-direction: column;
  width: 17ch;
  letter-spacing: 1px;
}

#scorePanel p {
  margin: clamp(0.2em, 1.1dvh, 1em);
}

#scorePanel span {
  display: inline-block;
  width: 3ch;
}

.best-score {
  color: rgb(255, 215, 0);
}

/* End Score Panel */

/* Copy Paste */
[data-copy] {
  cursor: pointer;
  position: relative;
}

.copy-tooltip {
  position: absolute;
  background: rgba(8, 45, 103, 1);
  border: 1px solid #00ffff;
  color: #00ffff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.contact-item .copy-tooltip {
  top: 10px;
  right: 10px;
}

.cv-icons .copy-tooltip {
  bottom: calc(100% + 5px);
  right: 50%;
  transform: translateX(50%);
}

.copy-tooltip i {
  font-size: 1rem;
}

.cv-icons .copy-icon {
  border-left: 2px solid #00ffff;
  padding-left: 10px;
}

/* Classic Portfolio */
body.classic-mode .nav-browser {
  display: none;
}

body.classic-mode #mobileControls {
  display: none !important;
}

body.classic-mode {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

body.classic-mode #gameCanvas {
  display: none;
}

body.classic-mode #cvPanel,
body.classic-mode #portfolioPanel,
body.classic-mode #contact {
  position: relative;
  top: unset;
  left: unset;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  /* animation: none; */
  z-index: auto;
  box-sizing: border-box;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  height: unset;
}

body.classic-mode .browser-content {
  height: 100%;
  overflow-y: auto;
}

/* Classic Nav */
#classicNav {
  border: 2px solid #00ffff;
  border-bottom: none;
  box-shadow: 0 0 30px rgba(134, 134, 172, 0.464);
  flex-direction: column;
  box-sizing: border-box;
}

.classic-nav-browser {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: color-mix(in srgb, #00ffff 20%, #06204c);
}

.classic-tabs-row {
  display: flex;
  flex-direction: row;
  position: relative;
  align-items: flex-end;
  gap: 10px;
  padding: 5px 10px 0px 10px;
  box-sizing: border-box;
}

.classic-tab,
.tab-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(8, 39, 97, 0.692);
  color: white;
  border: 1px solid #00ffff;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  letter-spacing: 1px;
  padding: 6px 16px;
  cursor: pointer;
  /* font-size: clamp(0.8rem, 0.721rem + 0.421vw, 1.1rem); */
}

.classic-active-tab {
  border-color: #00ffff;
  border-width: 4px;
  background-color: rgba(0, 255, 255, 0.4);
}

.tabs-menu {
  display: none;
  color: white;
  background-color: rgba(8, 39, 97, 0.692);
  border: 1px solid #00ffff;
  border-radius: 6px 6px 0px 0px;
  border-bottom: none;
  width: 35px;
  align-self: stretch;
  cursor: pointer;
  font-size: clamp(0.8rem, 0.721rem + 0.421vw, 1.1rem);
}

.tab-mobile {
  display: none;
  flex: 1;
}

.tabs-dropdown {
  z-index: 1000;
  display: block;
  position: absolute;
  top: calc(100% + 2px);
  left: -1px;
  right: -1px;
  background: rgb(8, 39, 97);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.7);
  border: 2px solid #00ffff;
  border-top: none;
  border-radius: 0 0 10px 10px;
  animation: dropDown 0.2s ease;
}

@keyframes dropDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-tab {
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 10px;
  text-decoration: none;
  color: #00ffff;
  border-bottom: 1px solid #00ffff;
  background: rgba(8, 39, 97, 0.3);
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-family: inherit;
}

.dropdown-tab:last-child {
  border-bottom: none;
}

.active-dropdown-tab {
  background: rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.close-tab {
  margin-left: auto;
}

.hidden {
  display: none;
}

.classic-nav-separator {
  border: 1px solid #00ffff;
  width: 100%;
  margin: 0;
}

.classic-adress-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px;
  gap: 10px;
}

.classic-nav-buttons {
  display: flex;
  gap: 8px;
}

.classic-nav-btn {
  background: transparent;
  border: 1px solid #00ffff;
  border-radius: 6px;
  color: #00ffff;
  font-size: var(--fs-p);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
}

#classicNav input[type=text] {
  background: transparent;
  border: 1px solid #00ffff;
  color: #00ffff;
  border-radius: 18px;
  height: 25px;
  font-size: 0.9rem;
  flex: 1;
  padding: 0px 20px;
  margin: 0;
  outline: none;
  background-color: rgba(8, 39, 97, 0.692);
}

.classic-window-buttons {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-bottom: 5px;
  gap: 12px;
}

.classic-window-btn {
  background: transparent;
  border: 1px solid #00ffff;
  border-radius: 6px;
  color: #00ffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  font-size: var(--fs-p);
}

#classicExitBtn {
  cursor: pointer;
  color: white;
}

.classic-tab,
.classic-nav-btn,
.classic-window-btn,
.classic-active-tab {
  font-family: inherit;
}

/* End Classic Nav */

/* End classic portfolio */



/*Media Queries*/

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 720px) {
  /* .contact-item {
    padding: 30px 20px 30px 20px;
  } */

  .classic-window-btn:not(#classicExitBtn) {
    display: none;
  }

}

@media (max-height: 450px) {

  /*Start Menu */
  :root {
    --pixelSize: 0.3;
  }

  .nav-browser {
    height: 30px;
  }

  .dot-point {
    height: 10px;
    width: 10px;
  }

  .small-dot-point {
    height: 6px;
    width: 6px;
  }

  input[type=text] {
    height: 15px;
    width: 15px;
    font-size: 0.8em;
    margin: 20px;
  }

  .nav-btn {
    height: 20px;
    width: 20px;
    font-size: 0.9em;
  }
}

@media (max-height: 400px) {

  :root {
    --pixelSize: 0.2;
  }
}

@media(max-width: 450px) {
  .classic-tab {
    display: none;
  }

  .tabs-menu {
    display: inline-block;
  }

  .tab-mobile {
    display: flex;
  }

}

@media(min-width: 1200px) {
  .portfolio-body {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    align-items: start;
  }

  .project {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 9;
  }
}


/* @media (max-height: 300px) {
  .stat-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .stat-value {
    margin-top: 0px;
  }
} */

/*Only devices that can hover*/
@media (hover: hover) {

  .right-corner-btn:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    color: rgb(8, 45, 103);
  }

  .icon-btn:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    color: rgb(8, 45, 103);
  }

  #btnCloseSoundSettings:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    color: rgb(8, 45, 103);
  }

  .slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
  }

  .slider::-moz-range-thumb:hover {
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
  }

  .exit:hover,
  #classicExitBtn:hover,
  .classic-tab:hover:hover,
  .dropdown-tab:hover,
  .tabs-menu:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    cursor: pointer;
  }

  .browser-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.8);
  }

  .cv-icons:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  }

  .project:hover {
    transform: translateY(-8px);
    box-shadow:
      0 12px 40px rgba(0, 255, 255, 0.6),
      0 0 20px rgba(0, 255, 255, 0.6);
  }

  .cv-icons:hover,
  .contact-item:hover,
  .project-link:hover {

    background: rgba(0, 255, 255, 0.4);
    transform: translateY(4px);
    box-shadow:
      inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
      0 1px 0 0 rgb(17, 28, 65),
      0 2px 0 0 rgb(17, 28, 65),
      0 3px 0 0 rgb(17, 28, 65),
      0 4px 0 0 rgb(17, 28, 65),
      0 4px 8px 0 rgba(17, 28, 65, 0.5);
  }

  #performanceAnalysis:hover {
    transform: translateY(4px);
    background: rgba(0, 255, 255, 0.4);
    box-shadow:
      inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
      0 1px 0 0 rgba(0, 0, 0, 0.7),
      0 2px 0 0 rgba(0, 0, 0, 0.7),
      0 3px 0 0 rgba(0, 0, 0, 0.7);
  }

  [data-copy]:hover .copy-tooltip {
    opacity: 1;
  }

  /* Start menu hover */
  .portfolio-btn:hover::before {
    opacity: 1;
  }

  .character-display:hover img {
    animation: glitch 3.5s infinite steps(1);
    box-shadow: 0 0 100px rgba(0, 255, 255, 1);
  }

  .hot-chocolat-bar:hover {
    background: linear-gradient(90deg, rgba(0, 255, 255, 1) 0%, rgb(255, 149, 0) 24%, rgb(255, 149, 0) 87%, rgba(0, 255, 255, 1) 100%);
  }
}

/* Hide mobile button for PC user */
@media (hover: hover) and (pointer: fine) {
  #mobileControls {
    display: none;
  }
}