/* Base style */
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #fdfdfd url('media/backround_pic.png') no-repeat center top fixed;
  background-size: cover;
  color: #222;
}

.page {
  max-width: 75rem;
  margin: 2em auto;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 0.5em;
  padding: 2em;
  box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.2);
}

header {
  margin-bottom: 1.5em;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 1.5em;
  background-color: #aad5df;
}

.logo {
  height: 4rem;
  width: auto;
  object-fit: contain;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.menu li a {
  text-decoration: none;
  color: #0000cc;
  font-weight: bold;
  padding: 0.5em 1em;
}

.menu li a.active,
.menu li a:hover,
.menu li a:focus {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999em;
  top: auto;
  width: 1em;
  height: 1em;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 1em;
  background: #000;
  color: #fff;
  z-index: 1000;
}

h1, h2 {
  font-weight: bold;
  margin-top: 1em;
  text-align: center;
}

.subtitle {
  font-style: italic;
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 2em;
}

ul {
  margin-left: 1em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.thumbnail {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em 0 1em 0;
  border-radius: 0.3em;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  cursor: zoom-in;
}

video {
  width: 100%;
  max-width: 45rem;
  display: block;
  margin: 1em auto;
}

figure {
  text-align: center;
  max-width: 90%;
  margin: 2em auto;
}

figcaption {
  font-size: 0.95em;
  color: #444;
  margin-top: 0.5em;
  font-style: italic;
}

table {
  width: 80%;
  border-collapse: collapse;
  margin: 1em auto;
  background-color: #fff;
  box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.1);
}

table, th, td {
  border: 1px solid #ccc;
}

th, td {
  padding: 0.5em;
  text-align: left;
}

table caption {
  caption-side: top;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
}

table caption details {
  display: inline-block;
  font-size: 1rem;
  color: #333;
  background-color: #f8f8f8;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

table caption summary {
  font-weight: bold;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2em;
}

aside {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  align-items: center;
}

aside figure {
  max-width: 7rem;
  text-align: center;
  margin-bottom: 1rem;
}

form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

form label,
form legend {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

input[type="text"],
textarea {
  width: 100%;
  max-width: 40rem;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
}

textarea {
  resize: vertical;
}

fieldset {
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  padding: 1rem;
  max-width: 40rem;
}

button[type="submit"],
button[type="reset"] {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 0.375rem;
  background-color: #444;
  color: white;
  cursor: pointer;
  margin-right: 1rem;
}

button[type="submit"]:hover,
button[type="reset"]:hover {
  background-color: #222;
}

#thanksMessage {
  display: none;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  color: #2a2a2a;
  background-color: #e0ffe0;
  padding: 1rem;
  border: 1px solid #b2d8b2;
  border-radius: 0.5rem;
  max-width: 37.5rem;
  margin-left: auto;
  margin-right: auto;
}

footer {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin-top: 2em;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
    font-size: small;
  }

  .grid-layout {
    grid-template-columns: 1fr;
  }

  .page {
    margin: 1em;
    padding: 1em;
  }

  table {
    width: 100%;
  }

  aside {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  aside figure {
    margin: 1rem;
  }

  form,
  fieldset,
  input[type="text"],
  textarea {
    max-width: 100%;
  }

  button {
    width: 100%;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .grid-layout {
    grid-template-columns: 2fr 1fr;
  }

  .page {
    max-width: 75rem;
    padding: 2em;
  }

  nav {
    flex-direction: row;
    justify-content: space-between;
  }

  .menu {
    justify-content: flex-end;
  }

  aside {
    flex-direction: column;
    align-items: center;
  }
}

@media print {
  header, nav, footer, video {
    display: none;
  }

  body {
    background: none;
    color: #000;
  }

  main {
    margin: 0;
    padding: 0;
  }

  img {
    max-width: 300px;
  }
}

a:link{
  color: #0000ff;
}
a:visited{
  color: #000099;
}