body {
  background-color: #B8D9B8;
  color: #4B6320;
  padding-left: 5%;
  padding-right: 5%;
  font-family: "Courier New", Courier, monospace;
}

h1 {
  font-size: 40px;
  font-weight: bold;
}

a:link, a:visited {
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

a:hover, a:active, a:focus {
  text-decoration: underline;
  color: #000;
}

#header-right {
  position: absolute;
  right: 5%;
  top: 50px;
  display: flex;
  align-items: center;
  gap: 15px;
}

#language-toggle {
  background-color: rgba(235, 220, 220, 0.5);
  border-radius: 15px;
  padding: 8px 15px;
  font-size: 14px;
}

#language-toggle .lang-link {
  color: #4B5320;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

#language-toggle .lang-link:hover {
  opacity: 1;
  text-decoration: none;
}

#language-toggle .lang-link.active {
  opacity: 1;
  font-weight: bold;
  text-decoration: underline;
}

#language-toggle .lang-separator {
  color: #4B5320;
  opacity: 0.6;
  margin: 0 5px;
}

#links {
  font-size: 14px;
}

#links a {
  color: #4B5320;
  text-decoration: none;
}

.navbar {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: rgba(235, 220, 220, 0.5);
  border-radius: 25px;
  overflow: hidden;
  display: flex;
}

.navbar li {
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
}

.navbar li a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5320;
  text-align: center;
  font-weight: normal;
  padding: 14px 0;
  height: 100%;
  width: 100%;
  text-decoration: none;
}

.navbar li:hover {
  background-color: #ddd;
}

.navbar li a::before {
  content: attr(data-title);
}

/* Media query for portrait orientation */
@media (orientation: portrait) {
  .navbar li a {
    visibility: hidden;
  }

  .navbar li:nth-child(1) a::before {
    content: "AV";
    visibility: visible;
  }
  .navbar li:nth-child(2) a::before {
    content: "Collab";
    visibility: visible;
  }
  .navbar li:nth-child(3) a::before {
    content: "♫";
    visibility: visible;
  }
  .navbar li:nth-child(4) a::before {
    content: "IHM";
    visibility: visible;
  }
  .navbar li:nth-child(5) a::before {
    content: "Bio";
    visibility: visible;
  }

  .section-entry p {
    display: none;
  }
}

#av {
  z-index: 1;
}
#collab {
  z-index: 2;
}
#tounes {
  z-index: 3;
}
#inter {
  z-index: 4;
}
#bio {
  z-index: 5;
}

footer {
  top: 0;
  right: 1%;
  position: absolute;
  font-size: 10px;
  z-index: 0;
  opacity: 0.5;
}

.copyleft {
  position: relative;
  top: -1.5px;
  display: inline-block;
  transform: rotate(180deg);
}

#bgCanvas {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
}

.hidden {
  display: none;
}
