body {
    font-family: Arial, sans-serif;
    background-image: url('media/hatterkep.png');
    background-size: cover;
    margin: 0;
    padding: 0;
    font-size: 100%;
}

/* --------------------------- Skip Link --------------------------- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: #000;
    color: #fff;
    padding: 10px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
    left: 0;
    z-index: 1000;
}

/* ------------------------ High Contrast Toggle ------------------------ */
#highContrastToggle {
    position: fixed;
    left: 10px;
    bottom: 10px;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#highContrastToggle:hover {
    background-color: #555;
    opacity: 1;
}

/* --------------------------- High Contrast Styles --------------------------- */
.high-contrast {
    background-color: #000;
    color: #fff;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.high-contrast a {
    color: #ffff00;
}

.high-contrast a:hover {
    color: #ff9900;
}

.high-contrast button {
    background-color: #ffcc00;
    color: #000;
    border: 1px solid #000;
}

.high-contrast button:hover {
    background-color: #ff9900;
}

/* ----------------------------- Navigation ----------------------------- */
nav {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #f4c542;
}

nav ul li a.active {
    color: #f4c542;
    font-weight: bold;
    border-bottom: 2px solid #f4c542;
    padding-bottom: 2px;
}

/* ------------------------------ Container ------------------------------ */
.container {
    background-color: rgba(50, 50, 50, 0.8);
    width: 50%;
    margin: 3% auto;
    padding: 2em;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.header {
    text-align: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

h2 {
    margin-top: 1.5rem;
    font-size: 1.5rem;
}

ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

table td {
    padding: 0.8rem;
}

.product-image {
    width: 200px;
    height: auto;
    border-radius: 8px;
}

/* --------------------------- Back Button --------------------------- */
.back-button {
    position: fixed;
    right: 10px;
    bottom: 10px;
    background-color: #f4f4f4;
    color: black;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
}

.back-button:hover {
    background-color: #ddd;
}

/* --------------------------- Content Section --------------------------- */
.content {
    margin-top: 1.5rem;
}

.content p {
    line-height: 1.6;
    font-size: 1.1rem;
}

.content strong {
    font-weight: bold;
}

.content ul li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* ---------------------------- External Links ---------------------------- */
a.external:link {
    color: blue;
}

a.external:visited {
    color: rgb(177, 133, 177);
}

a.external:hover {
    color: red;
}

a.external:active {
    color: orange;
}

a:visited {
    color: #7a7a7a;
    text-decoration: underline;
}

/* ----------------------------- Media Queries ----------------------------- */

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
    .container {
        width: 90%;
        padding: 1rem;
    }

    .gallery {
        flex-direction: column;
        align-items: center;
    }

    .gallery-item {
        width: 100%;
    }

    .gallery-image,
    video {
        max-width: 100%;
    }

    p, h2, li, .back-button {
        font-family: Arial, sans-serif;
    }
}

/* Tablet (min-width: 601px and max-width: 900px) */
@media (min-width: 601px) and (max-width: 900px) {
    .container {
        width: 80%;
    }

    .gallery {
        justify-content: center;
    }

    .gallery-item {
        width: 45%;
    }
}

/* Larger Screens (min-width: 901px) */
@media (min-width: 901px) {
    .container {
        width: 60%;
    }

    .gallery {
        justify-content: space-between;
    }

    .gallery-item {
        width: 30%;
    }
}

/* ---------------------------- Print Styles ---------------------------- */
@media print {
    body {
        background: none !important;
        color: black !important;
        font-family: Arial, sans-serif;
    }

    nav,
    .back-button,
    .product-image {
        display: none !important;
    }

    .container {
        width: 100%;
        margin: 0;
        padding: 1rem;
        box-shadow: none;
        background: none;
    }

    h1 {
        font-size: 2rem;
        color: black;
    }

    h2, p, li {
        font-size: 1rem;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    table,
    th,
    td {
        border: 1px solid black;
        padding: 0.5rem;
    }

    a {
        color: black;
        text-decoration: none;
    }
}
