:root {
  --background-color: #ffffff;
  --text-color: #333333;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

.container {
  width: 90%;
  margin: 0 auto;
  font-size: 1.2rem;
}

body.dark-theme {
  --background-color: #333333;
  --text-color: #ffffff;
}

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

a {
  text-decoration: none;
}

a:visited {
  color: blue;
  text-decoration: none;
}

ul,
ol {
  padding-left: 25px;
  padding-top: 5px;
  padding-bottom: 5px;
}

dl {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 0;
  margin-right: 0;
}

dt {
  display: block;
  font-weight: bold;
}

dd {
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 40px;
}

table {
  text-align: center;
  border: 1px solid #000000;
}

tr,
td {
  border: 1px solid #000000;
  padding: 5px 5px 5px 5px;
}

th {
  border: 1px solid #000000;
  font-weight: bold;
  padding: 5px 5px 5px 5px;
}

img {
  max-width: 100%;
}

.links {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  z-index: 1;
  background-color: #bbb9b9;
  border: 1px solid #000000;
  padding-left: 10px;
  padding-right: 10px;
}

.sections {
  text-align: justify;
  margin-left: 10px;
  margin-bottom: 20px;
  margin-right: 10px;
  margin-top: 20px;
}

.sticky {
  position: fixed;
  width: 90%;
  margin: 0 auto;
}

.navbar-inner {
  width: 90%;
  margin: 0 auto;
}

.visible {
  visibility: visible;
  opacity: 1;
}

.job-list {
  max-width: 800px;
}

.job-entry {
  padding-left: 20px;
  padding-bottom: 5px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.job-entry.hidden {
  opacity: 0;
  transform: translateY(40px);
}

.job-entry.show {
  opacity: 1;
  transform: translateY(0);
}

.logo-container {
  display: inline-block;
  width: 60px;
  height: 60px;
}

.institution-logo {
  width: 150px;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.institution-logo:hover {
  transform: scale(1.5);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 10px;
  justify-content: center;
}

.gallery figure {
  margin: 0;
  max-width: 300px;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery img {
  max-width: 100%;
  height: auto;
  display: block;
}

.gallery figcaption {
  margin-top: 10px;
  font-style: italic;
  font-weight: bold;
}

.zoom-rotate-element {
  transition: transform 0.3s ease-in-out;
}

.zoom-rotate-element:hover {
  transform: scale(1.3) rotate(5deg);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--background-color);
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-content img {
  width: 100%;
  height: auto;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.backToTopBtn {
  position: flex;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #007bff;
  padding: 15px;
  border-radius: 50%;
}