* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding/borders don't affect element size */
}

html,
body {
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrollbars */
    scroll-behavior: smooth;
}
body,
p {
    margin: 0;
    padding: 0;
    /* padding-bottom: 30px; */
}
h1 {
    margin: 0;
}
ul {
   list-style-position: inside;
}
.article a {
    color: #ffd500;
    text-decoration: none;
}
.sidetable {
    border: 1px solid black;
    border-collapse: collapse;
    width: 200px;
}
header {
    display: flex;
    justify-content: space-between; /* Keeps items aligned with space between */
    align-items: center; /* Vertically centers all header content */
    padding: 10px;
    box-sizing: border-box;
    background-color: #f7f7f7; /* Background color */
    border-bottom: 2px solid #ffd500;
}

/* Logo styles - resizing the image */
.logo img {
    height: 70px; /* Smaller size for the logo */
    width: auto; /* Maintain aspect ratio */
}

/* Search box container */
.search-box {
    position: absolute; /* Absolute positioning relative to the parent */
    left: 50%; /* Moves the search-box to the middle of the page */
    transform: translateX(-50%); /* Adjusts for the width of the element to center it perfectly */
    display: flex;
    justify-content: center; /* Ensures input stays centered */
    align-items: center;
}

.search-box form {
    display: flex; /* Makes the form content (input/button) align nicely */
    justify-content: center; /* Ensures input and button are aligned */
}

.search-box input {
    padding: 10px;
    border: 2px solid #ffd500;
    border-radius: 5px;
    width: 200%; /* Adjust this for desired width */
    box-sizing: border-box;
}

.search-box button {
    background-color: #ffd500;
    color: black;
    border: 2px solid black;
    padding: 10px 15px;
    margin-left: 5px; /* Small gap between input and button */
    cursor: pointer;
    border-radius: 5px;
}

/* User links */
.user-links {
    display: flex;
    gap: 10px; /* Spacing between icons */
    justify-content: flex-end;
}

.user-links a img {
    height: 70px; /* Adjust icon size */
    width: auto;
}
#results-container {
    position: absolute;
    top: 70px; /* Adjust based on header height */
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none; /* Initially hidden */
}

#list {
    margin: 0;
    padding: 0;
    list-style: none;
}

#list li {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

#list li a {
    text-decoration: none;
    color: black;
    display: block;
}

#list li a:hover {
    background-color: #ffd500;
    color: #000;
}
/* Optional: Add hover effects to the search box */
.search-box input:focus {
    outline: none;
    border-color: #ffd500;
}
@media (max-width: 600px) {
    .search-box input {
        width: 80%; /* Makes input smaller on smaller screens */
    }

    .search-box button {
        padding: 8px 10px;
    }
}
/* Media query for smaller screens (mobile devices) */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Stack items vertically */
        text-align: center; /* Center align the content */
    }

    .logo img {
        height: 40px; /* Smaller logo for mobile */
    }

    .search-box {
        order: 1; /* Position the search bar in the middle */
        margin-bottom: 10px; /* Add spacing */
    }

    .user-links {
        justify-content: center; /* Center icons */
    }
}

.main-content {
    display: flex;
}
.left-sidebar {
    flex: 1;
    padding: 30px;
    font-size: 15px;
    color: #ffd500;
}
.accordion {
    display: flex;
    flex-direction: column;
    width: 137px;
    text-shadow:
        0px 0px 2px black,
        0px 0px 2px black,
        0px 0px 2px black,
        0px 0px 2px black;
}
.accordion-item-summary {
    padding: 0;
    cursor: pointer;
}
.accordion-item-content {
    padding: 0px;
}
.right-content {
    flex: 6;
    padding-left: 20px;
    padding-right: 20px;
}
.article {
    max-width: 900px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.article-content {
    flex: 3;
    padding-right: 16px;
}
.article-image {
    flex: 1;
    text-align: center;
}
.fact-sheet {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
}
.fact-sheet h3 {
    font-size: 18px;
    margin-bottom: 10px;
    background-color: black;
    color: white;
    padding: 5px 10px;
}
.fact-sheet ul {
    list-style-type: disc;
    padding-left: 20px;
}
.right-content h1 {
    max-width: 900px;
    font-size: 36px;
    border-bottom: 1px solid black;
    margin-bottom: 10px;
}
.right-content h2 {
    font-size: 24px;
    border-bottom: 1px solid black;
    margin-bottom: 10px;
}
.right-content section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.right-content p {
    font-size: 16px;
    line-height: 1.5;
}
/* .right-content img {
    max-width: 200px;
    height: auto;
} */
.footer {
    background-color: #ffd500;
    text-align: center;
    padding: 10px;
}
.regtable {
    border: 1px solid black;
    border-collapse: collapse;
    padding: 5px;
    text-align: center;
    justify-self: center;
}
.barlink {
    color: yellow;
    text-decoration: none;
    text-shadow:
        0px 0px 2px black,
        0px 0px 2px black,
        0px 0px 2px black,
        0px 0px 2px black;
}
.result-item {
    padding: 10px;
    cursor: pointer;
}

.result-item:hover {
    background-color: #f0f0f0;
}

#list {
    max-height: 300px; /* Adjust based on your layout */
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    list-style-type: none;
}
#pdf-viewer {
    width: 100%;
    max-width: 600px; /* Set max-width to avoid too large PDF on big screens */
    margin: auto;
}

@media (max-width: 600px) {
    #pdf-viewer embed {
        height: 400px; /* Adjust the height on smaller screens */
    }
}

.content {
    display: flex;
    align-items: flex-start; /* Aligns the image and text at the top */
    flex-wrap: wrap; /* Allows content to wrap if the screen is small */
}

.image-container {
    flex: 0 0 auto; /* Keeps the image size fixed */
    margin-left: 15px; /* Adds space between image and text */
}

.image-container img {
    width: 200px; /* Adjust the size of the image */
    height: auto; /* Maintain the image's aspect ratio */
}

.text {
    flex: 1; /* The text section will take the remaining space */
    line-height: 1.6; /* Optional: improves text readability */
}

@media (max-width: 600px) {
    .content {
        flex-direction: column; /* Stack the image and text vertically on small screens */
    }

    .image-container {
        margin: 0 auto; /* Center the image */
        margin-bottom: 15px; /* Add space below the image */
    }
    .scroll-container {
        margin-bottom: 15px;
    }
}
div.scroll-container {
    background-color: #333;
    overflow: auto;
    white-space: nowrap;
    padding: 10px;
}

div.scroll-container img {
    padding: 10px;
}

.video-container {
    float: right; /* Align the container to the right */
    margin-left: 20px; /* Add some space between the video and the text */
    max-width: 50%; /* Optional: limit the video container's width */
}

/* Optional: to ensure text wraps around nicely */
body {
    line-height: 1.6; /* Adjust line spacing */
}
@media (max-width: 768px) {
    .video-container {
        float: none; /* Remove float */
        margin: 0 auto; /* Center the video */
        display: block;
    }
}
* {
    box-sizing: border-box;
}

/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

.list-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr);
    gap: 16px;
}

.sweden-carousel {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    place-content: center;
}

.sweden-carousel-img-frame {
    position: relative;
    width: 120vmin;
    height: 90vmin;
}

.sweden-carousel-img {
    position: absolute;
    top: 50%;
    translate: 0% -50%;
    transition: opacity 0.25s ease-out;
}

.sweden-carousel-img img {
    width: 120vmin;
    height: 90vmin;
    background-color: #000000;
    object-fit: scale-down;
    border: #ffd500 solid 4px;
    border-radius: 4px;
}

.sweden-carousel-img p { /* captions */
    position: absolute;
    left: 50%;
    bottom: 10%;
    translate: -50%;
    text-align: center;
    font-size: large;
    font-family: Arial, Helvetica, sans-serif;
    padding: 4px 8px 4px 8px;
    background-color: #00000080;
    border-radius: 4px;
    color: white;
}

.sweden-carousel-img p a { /* link captions */
    color: #c0c0ff;
}

.sweden-carousel button {
    font-size: large;
    padding: 2px 6px 2px 6px;
    align-self: center;
    user-select: none;
    scale: 1;
    transition: scale 0.1s ease-out;
}

.sweden-carousel button:hover {
    scale: 1.1;
    transition: scale 0.1s ease-out;
}

.idx-bar {
    z-index: 1000;
    position: absolute;
    left: 50%;
    bottom: 0px;
    translate: -50%;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    padding: 4px 12px 4px 12px;
    background-color: #ffd500;
    border-radius: 4px;
    color: black;
    letter-spacing: 4px;
}

iframe {
    width: 56vmin;
    height: 42vmin;
    resize: both;
    overflow: auto;
}

.video-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr);
    justify-items: center;
    gap: 32px 0px;
    padding: 32px 0px 32px 0px;
}

.video-grid div {
    width: 56vmin;
    display: flex;
    flex-direction: column;
    text-align: center;
    text-overflow: wrap;
}

.video-grid div p {
    padding: 8px;
    background-color: #fff1aa;
}
