/* General Styles */
body {
    font-family: 'Georgia', serif;
    background-color: #fdf6e3;
    /* Sandstone tone */
    color: #3c3c3c;
    /* Dark Gray */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-size: cover;
    background-repeat: no-repeat;
    transition: background 0.5s ease-in-out;
}

body.market-scene {
    background-image: url('../images/header-background.png');
    background-position: center;
}

header {
    background: url('../images/header-background.png') no-repeat center center / cover;
    color: #e2725b;
    /* Terracotta */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    padding: 2em 0;

    display: flex;
    /* Use flexbox for layout */
    justify-content: space-between;
    /* Space between the left and right elements */
    align-items: center;
    /* Center vertically */
}

header .content {
    flex: 1;
    /* Take up all available space on the left */
    text-align: left;
    /* Align text to the left */
}

header .tablet {
    flex: 0;
    /* Do not stretch the tablet div */
}

header .tablet img {
    display: block;
    /* Ensure the image is treated as a block */
    margin-left: auto;
    /* Push the image to the right */
}

header h1 {
    margin: 0 0 0 30px;
}

header p {
    color: white;
    margin: 0 0 0 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}


nav {
    display: flex;
    justify-content: center;
    background-color: #e2725b;
    /* Terracotta */
    padding: 0.5em 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 2em auto;
    padding: 0 1em;
}

.section {
    margin-bottom: 2em;
    padding: 0 0 1em 0;
    border-radius: 10px 10px 0 0;
    /* Top-left and top-right corners rounded */
    border: 1px solid #c2b280;
}

.section h2 {
    display: flex;
    /* Enable Flexbox for centering */
    justify-content: center;
    align-items: center;
    /* Vertical centering */
    margin: 0 0 10px 0;
    height: 90px;
    background-image: url('../images/texture-background-sections.png');
    background-color: rgba(255, 255, 255, 0.7);
    /* Semi-transparent white */
    background-blend-mode: overlay;
    /* Blend the color and image */
    background-size: cover;
    /* Ensure full coverage of the area */
    color: black;
    text-align: center;
    font-weight: bold;
}

.section p {
    margin-left: 15px;
    margin-right: 15px;
}

.section li {
    list-style-type: none;
}

.section a {
    text-decoration: none;
}

.section a:hover {
    background-color: #c2b280;
}

#laws img {
    width: 30px;
    height: auto;
    /* Maintain aspect ratio */
    vertical-align: middle;
    /* Align images with text */
    margin-right: 8px;
    /* Add spacing between the image and text */
}


.timeline {
    display: flex;
    overflow-x: auto;
    padding: 1em;
    background-color: #f8f0de;
    border-radius: 5px;
}

.timeline-item {
    min-width: 200px;
    margin: 0 10px;
    padding: 10px;
    background-color: #e6d3bc;
    border: 1px solid #c2b280;
    border-radius: 5px;
    text-align: center;
}

.hidden-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    margin-top: 0;
}

.hidden-details.active {
    max-height: 200px;
    /* Adjust based on content size */
    opacity: 1;
    margin-top: 10px;
}


.details-box {
    margin-top: 1em;
    padding: 1em;
    background-color: #e6d3bc;
    border: 1px solid #c2b280;
    border-radius: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    opacity: 0;
    pointer-events: none;
}

.details-box.active {
    max-height: 200px;
    /* Adjust based on your content size */
    padding: 1em;
    opacity: 1;
    pointer-events: auto;
}


footer {
    background-color: #3c3c3c;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    margin-top: 2em;
}

/* Slide show */
* {
    box-sizing: border-box
}

body {
    font-family: Verdana, sans-serif;
    margin: 0
}

.mySlides {
    display: none
}

img {
    vertical-align: middle;
}

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

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

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* The dots */
.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: .4
    }

    to {
opacity: 1
    }
}

@media only screen and (max-width: 100px) {
    .prev,
    .next,
    .text {
font-size: 11px
    }
}