body {
    font-family: Arial, sans-serif;
    margin: 0;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    box-sizing: border-box;
}

h1, h2 {
    text-align: center;
    margin-bottom: 2rem;
}

nav#tocontent a {
    position: absolute;
    left    : -9999px;
}

footer {
    text-align: center;
    margin-top: 50px;
}

nav {
    background-color: #333;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    padding: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    text-align: center;
}

nav a:hover {
    background-color: #575757;
}

nav .active {
    background-color: #ff9900;
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 1em;
  padding: 0;
  margin: 0;
}

.menu li a {
  text-decoration: none;
  padding: 0.5em;
}

#toggle-text {
  padding: 0.5em 1em;
  font-size: 1em;
  cursor: pointer;
  margin-left: auto;
}

.container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}
.card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.card h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}
.card p {
    line-height: 1.6;
    font-size: 1em;
    text-align: justify;
}

.video-container {
    text-align: center;
}

video {
    display: block;
    margin: 15px auto;
    max-width: 90%;
}

details p {
    padding: 15px
}

aside {
    background-color: #f9f9f9;
    border-left: 4px solid #ccc;
    padding: 1em;
    margin: 1.5em 0;
    font-size: 0.95em;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .container {
        grid-template-columns: 1fr;
    }
}

/* Form */

form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-image: url('../images/form_background.jpg');
    background-size: auto;
    background-position: bottom;
    background-repeat: no-repeat;
    color: white;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.8em;
}

textarea {
    resize: vertical;
    font-size: 1em;
}

.radio-group label {
    display: inline-block;
    margin-right: 20px;
}

.radio-group {
    margin-top: 15px;
    margin-bottom: 25px;
}

.checkbox-group {
    margin-bottom: 25px;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 8px;
}

button {
    background-color: #ff9900;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

button:hover {
    background-color: #575757;
}

/* Table */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-family: sans-serif;
    font-size: 1em;
}

.table-container {
    padding-left: 50px;
    padding-right: 50px;
}

details p {
    text-align: justify;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

ul {
    margin: 0;
    padding-left: 16px;
}

/* Gallery */

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery {
    flex: 1 1 300px;
    max-width: 600px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.main-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 5px;
}

.thumbnails {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 5px;
}

.thumbnails img {
    width: 32%;
    height: 80px;
    object-fit: contain;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: 0.3s;
}

.thumbnails img:hover {
    border-color: #007BFF;
}

@media print {
    header,
    nav,
    aside,
    .menu,
    .sidebar,
    .navigation,
    .site-header,
    .site-footer,
    footer,
    video {
        display: none !important;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: none !important;
        margin: 1cm;
        line-height: 1.4;
    }

    p, h1, h2, h3, h4, h5, h6 {
        page-break-inside: avoid;
    }

    article,
    section,
    div {
        page-break-inside: avoid;
    }
}