/* Reset margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set the body and html to take full height */
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #000000;
    color: #e0e0e0;
}

/* Container to hold all content and footer */
.container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Sidebar styles */
.sidenav {
    height: 100%;
    width: 250px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #1a1a1a;
    padding-top: 20px;
    overflow-y: auto;
}

.sidenav a {
    color: #ff3333;
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    text-decoration: none;
}

.sidenav a:hover {
    color: #ffffff;
}

/* Main content */
.content {
    margin-left: 260px; /* Sidebar width */
    padding: 20px;
    flex-grow: 1;
}

.content h1, .content h2 {
    color: #ffffff;
    background-color: #b20000;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.8rem;
    text-align: center;
}

/* Responsive media for images, videos, and GIFs */
.content img,
.content video,
.content iframe {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 20px;
    border: 2px solid #ff3333;
}

/* Video player styling */
.content video {
    display: block;
    width: 100%;
    max-height: 500px;
}

/* Caption styling */
.figure-caption {
    font-size: 0.9rem;
    color: #b2b2b2;
    text-align: center;
    margin-top: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1a1a1a;
    color: #ffffff;
    border-top: 1px solid #b20000;
    margin-top: auto; /* Ensures footer stays at the bottom */
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    background-color: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background-color: #b20000;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #ff1a1a;
}

::-webkit-scrollbar-track {
    background-color: #4d0000;
}

::-webkit-scrollbar-track:hover {
    background-color: #330000;
}

:any-link {
    color: #ff3333;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    /* Stack sidebar above content */
    .sidenav {
        width: 100%;
        height: auto;
        position: relative;
    }

    .sidenav a {
        padding: 15px;
    }

    .content {
        margin-left: 0; /* Remove sidebar offset */
        padding: 15px;
    }

    .content h1, .content h2 {
        font-size: 1.5rem;
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    /* Adjust font sizes and padding for smaller screens */
    .sidenav a {
        font-size: 12px;
        padding: 12px;
    }

    .content {
        padding: 10px;
    }

    .content h1, .content h2 {
        font-size: 1.3rem;
        padding: 8px;
    }

    footer {
        padding: 15px;
    }
}
