* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Ensure the body takes up the full height of the viewport */
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Wittgenstein", serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #f4f4f4;
    max-height: 100vh;

}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #000;
    color: #fff;
}

.logo img {
    max-width: 100px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #bbb;
}

#title-container{
	max-width: 600px;
    margin: 1em auto;
    margin-bottom: 0;
	text-align: center;
	font-weight: bold;
    border: 1px solid #000;
    padding: 1em;
    border-radius: 8px;
}

.container {
    margin: 0 auto;
	padding: 0.5em;
    text-align: left;
    position: relative;
    border-radius: 8px;
}

.container1 {
    margin: 0 auto;
	padding: 0.5em;
    text-align: left;
    position: relative;
    border-radius: 8px;
    display: flex;
    flex: 1;
    width: 100%;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #000;
    color: #fff;
    /*position: fixed;*/
    bottom: 0;
    width: 100%;
    height: 60px; /* Set the same height as the navbar */
}

.footer p {
    margin: 0;
    font-size: 0.8rem; /* Decreased font size */
}

.footer .instagram-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer .instagram-link:hover {
    color: #bbb;
}

.footer1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #000;
    color: #fff;
    /*position: fixed;*/
    bottom: 0;
    width: 100%;
    height: 60px; /* Set the same height as the navbar */
}

.footer1 p {
    margin: 0;
    font-size: 0.8rem; /* Decreased font size */
}

.footer1 .instagram-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer1 .instagram-link:hover {
    color: #bbb;
}

/* Timeline Styles */
.timeline-wrapper {
    position: relative;
    overflow-x: auto;
    white-space: nowrap;
    margin: 2rem;
    padding: 2rem;
    border: 1px solid #ccc;
    height: 150px;
    width: 1456px;
}

#timeline-container {
    position: relative;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    height: 100%;
    
}

.timeline-arrow {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    background-color: black;
}

.year-marker {
    position: absolute;
    bottom: 10px;
    background-color: #fff;
    color: #000;
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid #000;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.year-marker:hover {
    background-color: #ddd;
}

/* Zoom-in and Zoom-out support */
.zoom-in, .zoom-out {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin: 5px;
}

.zoom-out {
    right: 100px;
}

#events-container {
    flex: 3;
    max-width: 800px;
    border: 1px solid #000;
    padding: 2em;
    border-radius: 8px;
    background-color: #f4f4f4;
    text-align: left; /* Center the content inside the container */
}

.question-block {
    margin-bottom: 1em;
    text-align: left; /* Align questions to the left */
}

#events-container .question {
    font-size: 1em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

#events-container .answer {
    display: block;
    width: 100%;
    margin: 0.3em 0;
    padding: 0.8em;
    background-color: #fff;
    border: 1px solid #fff; /* Added border */
    color: #000;
    cursor: pointer;
    border-radius: 4px;
    text-align: left;
    font-size: 0.9em;
}

#ad-container {
    flex: 1;
    margin: 1em;
    /* Add styles for the advertisement container */
}

#ad-container img {
    width: 100%;
    padding: 1em;
}

/* Mobile Styles */
@media only screen and (max-width: 600px) {

    .container {
        flex-direction: column;
        padding: 1em;
    }

    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .timeline-wrapper {
        height: 150px;
        width: 100%;
        margin: 3px;
    }
    
    #timeline-container {
        width: 240px;
        height: 100%;
        margin: 3px;
        
    }
    
    .timeline-arrow {
        width: 100%;
        height: 4px;
        background-color: black;
    }

    #events-container {
        width: 120%;
        height: 100%;
        margin: 1px;
        
    }

    .landing-text {
        font-size: 2em;
        text-align: center;
    }

    .landing-image {
        width: 100%;
        height: auto;
        margin: 20px 0;
    }

    #title-container p {
        font-size: 1.5em;
    }
}