@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --bg-color: #0d1b2a;
  --text-color: #eeeef0;
  --text-alt-color: #dddddd;
  --bg-navbar-color: #1b263b;
  --bg-navbar-hover-color: #0a192f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 350;
  color: var(--text-color);
}

body {
  background-color: var(--bg-color);
}

#navbar {
  display: flex;
  flex-flow: row wrap;
  list-style-type: none;
  background-color: var(--bg-navbar-color);
}

#navbar #language-selector {
  margin-left: auto;
}

#navbar a {
  padding: 1.2em 1.5em;
  display: flex;
  gap: 0.5em;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

#navbar a:hover,
#navbar a.active {
  background-color: var(--bg-navbar-hover-color);
}

.sidebar-button {
  padding: 1.25em;
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

#open-sidebar-button {
  margin-left: auto;
}

#open-sidebar-button img {
  width: 2.25em;
  height: 2.25em;
}

#close-sidebar-button img {
  width: 1.5em;
  height: 1.5em;
}

.icon-wrapper {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  transition: opacity 0.3s ease;
}

.icon-wrapper .active {
  opacity: 0;
}

a:hover .active,
a.active .active {
  opacity: 1;
}

a:hover .empty,
a.active .empty {
  opacity: 0;
}

#language-options {
  display: none;
  position: absolute;
  background-color: var(--bg-navbar-color);
}

#language-selector:hover #language-options,
#language-selector.active #language-options {
  display: flex;
  flex-flow: column wrap;
}

#language-options a {
  padding: 12px 16px;
  display: block;
  text-align: center;
}

.content {
  margin: 0 auto 2em auto;
  width: 90vw;
  text-align: justify;
}

.content ul {
  margin-left: 3em;
}

.content li {
  margin-bottom: 0.5em;
}

h1 {
  margin: 0.5em;
  font-size: clamp(1.8em, 1.8vw + 0.5em, 2.8em);
  text-align: center;
}

p {
  margin: 0.7em;
}

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

.figure-container img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.figure-container img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
}

.figure-right {
  float: right;
  margin: 1.25em 0 0.25em 1.25em;
  width: clamp(180px, 15vw, 250px);
}

.figure-center {
  margin: 1.25em auto 0.25em auto;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 75vw;
  max-width: 350px;
}

.figure-caption {
  font-size: 0.75em;
  color: var(--text-alt-color);
}

.overlay {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  z-index: 10;
}

.fullscreen-img {
  max-width: 80vw;
  max-height: 80dvh;
  cursor: default;
}

.close-button {
  font-size: 2.5em;
  position: absolute;
  top: 10px;
  left: 49.5%;
  transition: transform 0.3s ease;
}

.close-button:hover {
  transform: scale(1.25);
}

.error {
  margin: 1.25em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  height: 90dvh;
}

a[href^='tel'] {
  color: var(--text-color) !important;
}

@media screen and (max-width: 992px) {
  #navbar {
    flex-flow: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(20em, 100%);
    height: 100dvh;
    z-index: 10;
    transition: right 0.3s ease;
  }

  #navbar.show {
    right: 0;
  }

  #navbar #language-selector {
    margin-left: 0;
  }

  .sidebar-button {
    display: block;
  }

  #language-options {
    width: 100%;
  }

  #language-options a {
    text-align: start;
  }

  .figure-container img:hover {
    transform: scale(1);
    box-shadow: none;
    cursor: default;
  }

  h1 {
    margin-top: 0;
  }

  .figure-right {
    display: none;
  }

  .figure-center {
    display: flex;
  }

  .figure-caption {
    font-size: 0.9em;
    margin-top: 0.5em;
  }
}
