body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
}

nav {
  height: 60px;
}

img {
  border: 0.75px solid gray;
  border-radius: 10px;
  margin: 5px 0;
}

li {
  margin: 20px 0;
}

figcaption {
  font-style: italic;
}

.sidebar {
  position: sticky;
  top: 0;
  overflow-y: auto; /* Enables scrolling on the sidebar */
  height: 100vh; /* Full view height */
  width: 100%; /* Full width on small screens */
  background-color: #000035;
  color: white;
  padding: 20px;
}

@media (min-width: 768px) {
  .sidebar {
    width: 250px; /* Fixed width for larger screens */
  }
}

.content {
  padding: 20px;
  background-color: #f8f9fa;
}

.nav-link {
  color: orange;
  margin: 5px 0;
}

.nav-link:hover {
  color: white;
}

.sidebar-title {
  color: orange;
  font-size: 1.1em;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
}

.section-title {
  color: #000035;
  margin-top: 50px;
}

.main-title {
  color: #000035;
  text-shadow: 1px 1px 1px orange;
  font-size: 2em;
}

.content-image {
  margin-bottom: 20px;
}

.flag-button {
  background: none;
  border: none;
  cursor: pointer;
  margin-top: auto;
  width: 40px;
  height: 40px;
}

.language-selection {
  position: absolute;
  bottom: 20px;
  width: 100%;
}

@media (max-width: 767px) {
  .navbar-nav {
    flex-direction: row;
  }

  .nav-item {
    padding: 0 10px;
  }

  .language-selection {
    bottom: 10px;
  }

  .sidebar {
    position: relative; /* Prevents the sidebar from being sticky on small devices */
    height: auto;
    padding-bottom: 50px;
  }
}
