/* Styling for images */
img {
    border-radius: 20%;
    width: 100%;
    padding: 0.85%;
    height: auto; /* Change to 'auto' for better aspect ratio */
}

/* Overall page layout */
body {
    display: flex;
    flex-direction: column; /* Change to column to stack elements */
    flex-direction: row-reverse;
    margin: 0;
    height: 100vh; /* Full height for viewport */
    overflow: hidden;
    background-color: #FDDB99;
}

h1 {
    margin-top: 3.5%;
    margin-right: 57.5%;
}

/* Styling for iframe */
iframe {
    position: absolute;
    top: 16%;
    left: 2%;
    right: 2%;
    width: calc(95.5% - 10%); /* Adjust width for sidebar */
    height: 79.25%; /* Maintain proportional height */
    border: none;
    transition: width 0.3s ease;
}

/* Logo Styling */
#logo {
    position: absolute;
    top: 0.75%;
    left: 1%;
    width: 112.25px;
    height: 75px;
    /* width: 32.5%; */
    /* height: 37.5%; */
    cursor: pointer;
}

/* Sidebar styling */
#imageContainer {
    width: 10%;
    height: 100%; /* Full height */
    overflow: hidden;
    border-left: 1px solid #ccc;
    position: relative;
    transition: transform 0.3s ease;
}

.scroll-wrapper {
    display: flex;
    flex-direction: column;
    animation: scroll 97.5s linear infinite;
}

/* Keyframes for infinite scrolling */
@keyframes scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

a {
    text-decoration: none;
}

/* Toggle button styling */
#toggleButton, #openInNewTabButton {
    position: absolute;
    z-index: 10;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Position for Toggle Button */
#toggleButton {
    top: 4.15%;
    right: 13.75%;
}

/* Position for Open in New Tab Button */
#openInNewTabButton {
    top: 4.15%;
    right: 24.75%;
}

:root {
    --background-color: #FDDB99; /* Light mode background */
    --text-color: #000000; /* Default black text */
    --button-color: #FFDE59; /* White buttons */
}

.dark-mode {
    --background-color: #1B1B1B; /* Dark mode background */
    --text-color: #FDDB99; /* Light mode background color becomes text color in dark mode */
    --button-color: #000000; /* Keep buttons white */
}

/* Apply styles dynamically */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Buttons always white */
button {
    background-color: var(--button-color);
    color: var(--text-color);
    border: none;
    padding: 10px 15px;
    font-family: "consolas", sans-serif;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

button:hover {
    filter: brightness(90%);
}

/* Ensure list background adapts to dark mode */
ul {
    background-color: var(--background-color);
}

/* Links should also adapt */
li a {
    color: var(--text-color);
}