:root {
  --main-bg-color: url("repos/background.jpg");
  --main-text-color: #333;
  --main-link-color: white;
  --main-hover-color: #111;
  --active-link-color: #246527;
  --light-bg-color: rgba(255, 255, 255, 0.8);
  --dark-bg-color: #333;
  --button-color: #333;
  --button-hover-color: #111;
  --table-header-color: #0056b3;
  --table-even-row-color: #f3f3f3;
  --table-border-color: #ddd;
  --lightbox-bg-color: rgba(0, 0, 0, 0.8);
  --lightbox-button-bg-color: rgba(0, 0, 0, 0.5);
  --lightbox-button-hover-bg-color: rgba(0, 0, 0, 0.8);
}
body {
  background-image: url("repos/background.jpg");
  background-image: var(--main-bg-color);
  background-color: #f5f5f5;
  color: var(--main-text-color);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  font-size: 100%;
  text-align: left;
  text-justify: none;
}
nav {
  background-color: #333;
  background-color: var(--dark-bg-color);
  overflow: hidden;
}
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(0);
  border: 0;
}
nav ul li {
  float: none;
}
nav ul li a {
  display: block;
  color: white;
  color: var(--main-link-color);
  text-align: center;
  padding: 0.875em 1em;
  text-decoration: none;
  font-size: 1rem;
}
nav ul li a:hover {
  background-color: #111;
  background-color: var(--main-hover-color);
}
nav ul li a:visited {
  color: #ccc;
}
nav ul li a.active {
  background-color: #246527;
  background-color: var(--active-link-color);
  color: white;
  color: var(--main-link-color);
}
p, span, h1, h2, h3, h4, h5, h6 {
  text-decoration: none;
}
section {
  display: flex;
  justify-content: space-around;
  padding: 1.25em;
  flex-wrap: wrap;
  font-size: 1rem;
}
article {
  background-color: rgba(255, 255, 255, 0.8);
  background-color: var(--light-bg-color);
  padding: 1.25em;
  border-radius: 0.625em;
  width: 60%;
  min-width: 300px;
  text-align: left;
}
aside {
  background-color: rgba(255, 255, 255, 0.8);
  background-color: var(--light-bg-color);
  padding: 1.25em;
  border-radius: 0.625em;
  width: 30%;
  overflow-x: auto;
  min-width: 250px;
  text-align: left;
}
footer {
  background-color: #333;
  background-color: var(--dark-bg-color);
  color: white;
  color: var(--main-link-color);
  text-align: center;
  padding: 0.625em;
}
.button {
  background-color: #246527;
  background-color: var(--button-color);
  color: white;
  color: var(--main-link-color);
  padding: 0.625em 1.25em;
  text-decoration: none;
  border-radius: 0.3125em;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625em;
  justify-content: center;
}
.gallery img {
  width: 9.375em;
  height: 6.25em;
  object-fit: cover;
  border-radius: 0.3125em;
  cursor: pointer;
}
.gallery figure {
  margin: 0;
  text-align: center;
}
.gallery figcaption {
  font-size: 0.8em;
  margin-top: 0.3125em;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.8rem;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  border: 1px solid #ddd;
  border: 1px solid var(--table-border-color);
  padding: 0.3125em;
  text-align: left;
}
caption {
  font-weight: bold;
  padding: 0.625em;
}
.styled-table {
  border-collapse: collapse;
  margin: 1.5625em 0;
  font-size: 0.9em;
  font-family: inherit;
  min-width: 100%;
  box-shadow: 0 0 1.25em rgba(0, 0, 0, 0.15);
  width: auto;
}
.styled-table thead tr {
  background-color: #0056b3;
  background-color: var(--table-header-color);
  color: #ffffff;
  color: var(--main-link-color);
  text-align: left;
}
.styled-table th,
.styled-table td {
  padding: 0.75em 0.625em;
}
.styled-table tbody tr {
  border-bottom: 1px solid #dddddd;
  border-bottom: 1px solid var(--table-border-color);
}
.styled-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
  background-color: var(--table-even-row-color);
}
.styled-table tbody tr:last-of-type {
  border-bottom: 0.125em solid #0056b3;
  border-bottom: 0.125em solid var(--table-header-color);
}
aside ul {
  list-style-type: none;
  padding: 0;
}
aside li {
  margin-bottom: 0.3125em;
}
aside p {
  margin-bottom: 0.625em;
}
form {
  display: flex;
  flex-direction: column;
  gap: 0.3125em;
  margin-top: 0.625em;
}
form label {
  margin-top: 0.3125em;
  font-size: 1rem;
}
form input[type="text"],
form input[type="email"],
form textarea {
  padding: 0.3125em;
  border: 1px solid #ccc;
  border-radius: 0.1875em;
  font-size: 1rem;
}

form .radio-group label {
  margin-top: 0;
}
form button[type="submit"] {
  background-color: #246527;
  background-color: var(--button-color);
  color: white;
  color: var(--main-link-color);
  padding: 0.625em 1.25em;
  border: none;
  border-radius: 0.3125em;
  cursor: pointer;
  margin-top: 0.625em;
  width: fit-content;
  font-size: 1rem;
}
form button[type="submit"]:hover {
  background-color: #246527;
  background-color: var(--button-hover-color);
}
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  background-color: var(--lightbox-bg-color);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: auto;
}
.lightbox.open {
  opacity: 1;
}
lightbox-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.lightbox-image {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 0.3125em;
}
.lightbox-prev,
.lightbox-next,
.lightbox-close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  background-color: var(--lightbox-button-bg-color);
  color: white;
  color: var(--main-link-color);
  border: none;
  padding: 0.625em;
  cursor: pointer;
  font-size: 1.5em;
  border-radius: 0.3125em;
  transition: background-color 0.3s ease;
}
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  background-color: rgba(0, 0, 0, 0.8);
  background-color: var(--lightbox-button-hover-bg-color);
}
.lightbox-prev {
  left: 0.625em;
}
.lightbox-next {
  right: 0.625em;
}
lightbox-close {
  top: 0.625em;
  right: 0.625em;
}
.lightbox.loading::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1001;
}
#galeria{
  color: #ffffff !important
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
details {
  background-color: rgba(255, 255, 255, 0.8);
  background-color: var(--light-bg-color);
  border-radius: 0.3125em;
  margin-top: 0.625em;
  padding: 0.625em;
  text-align: left;
}
summary {
  cursor: pointer;
  font-weight: bold;
  padding: 0.3125em;
  font-size: 1rem;
}
details[open] summary {
  margin-bottom: 0.625em;
}
details ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
details li {
  margin-bottom: 0.3125em;
}
a {
  color: blue;
  text-decoration: underline;
}
a:visited {
  color: purple;
}
nav ul li a {
  text-decoration: none;
  color: var(--main-link-color);
}
nav ul li a:visited {
  color: #ccc;
}
@media (max-width: 768px) {
  section {
    flex-direction: column;
    align-items: center;
  }
  article, aside {
    width: 90%;
    margin-bottom: 1.25em;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  nav ul li {
    width: 100%;
    text-align: center;
  }
  body {
    font-size: 90%;
  }
}
@media (max-width: 480px) {
  .gallery img {
    width: 6.25em;
    height: 4.6875em;
  }
  .lightbox-prev,
  .lightbox-next {
    font-size: 1.125em;
    padding: 0.3125em;
  }
  body {
    font-size: 85%;
  }
}
@media print {
  body {
    background-image: none;
    color: #000;
    font-size: 1rem;
  }
  nav, header, footer, .button, form, caption, .lightbox {
    display: none;
  }
  section {
    display: block;
    padding: 0;
  }
  article {
    width: 100%;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
  }
  .gallery {
    display: block;
  }
  .gallery img {
    width: 100px;
    height: auto;
  }
  .gallery figcaption {
    font-size: 0.8rem;
  }
  table {
    width: 100% !important;
    border-collapse: collapse;
    margin-bottom: 1em;
  }
  th, td {
    border: 1px solid #000;
    padding: 0.5em;
    text-align: left;
  }
  .styled-table thead tr {
    background-color: #ccc;
    color: #000;
  }
  .styled-table tbody tr:nth-of-type(even) {
    background-color: #eee;
  }
  .styled-table tbody tr:last-of-type {
    border-bottom: 1px solid #000;
  }
  a:link, a:visited {
    color: #000;
    text-decoration: underline;
  }
}
body.high-contrast {
  background-color: black;
  color: white;
  font-size: 1.25em;
}
body.high-contrast a {
  color: yellow;
  text-decoration: underline;
}
body.high-contrast #galeria {
  color: black !important;
}
body.high-contrast button,
body.high-contrast input,
body.high-contrast textarea {
  background-color: black;
  color: white;
  border: 2px solid yellow;
}
body.high-contrast .nav-link {
  background-color: black;
  color: yellow;
}
body.high-contrast article {
  background-color: #222;
  color: white;
  padding: 1em;
  border-radius: 0.5em;
}
body.high-contrast aside {
  background-color: #333;
  color: white;
  padding: 1em;
  border-radius: 0.5em;
}
body.high-contrast table {
  background-color: black;
  color: white;
  border: 1px solid yellow;
}
body.high-contrast th,
body.high-contrast td {
  border: 1px solid yellow;
  padding: 0.5em;
}
body.high-contrast th {
  background-color: #444;
  color: yellow;
}
body.high-contrast tbody tr:nth-of-type(even) {
  background-color: #333;
}
body.high-contrast tbody tr:nth-of-type(odd) {
  background-color: #222;
}
body.high-contrast details {
  background-color: black;
  color: white;
  border: 1px solid yellow;
}
body.high-contrast details summary {
  color: yellow;
  font-weight: bold;
}
body.high-contrast details ul li a {
  color: yellow;
  text-decoration: underline;
}
body.high-contrast details ul li a:visited {
  color: orange;
}
body.high-contrast .button {
  background-color: yellow;
  color: black;
  text-shadow: 1px 1px 2px white;
}
body.high-contrast button,
body.high-contrast input,
body.high-contrast textarea {
  background-color: black;
  color: white;
  border: 2px solid yellow;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(0);
  border: 0;
}