body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e1e;
    color: #e0e0e0;
    overflow: hidden;
    /* Prevent body scrolling */
}



.container {
    display: flex;
    height: 100vh;
}

.upper-menubar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    /* Set a fixed height */
    background-color: #252526;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    /* Ensure it's above everything */
}

.upper-menubar .menu-items {
    display: flex;
    gap: 20px;
}

.sidebar {
    width: 260px;
    background-color: #252526;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    position: fixed;
    top: 50px;
    /* Start below the upper menubar */
    left: 0;
    bottom: 0;
    z-index: 20;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    margin-bottom: 10px;
}

.sidebar-header-title {
    margin-top: -15px;
    opacity: 0.5;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 34px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-button svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
}

.icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.conversation-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.conversation-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-item:hover {
    background-color: #2a2d2e;
}

.conversation-item.active {
    background-color: #37373d;
}

.conversation-title {
    flex-grow: 1;
    cursor: pointer;
}

.archive-btn,
.delete-btn {
    padding: 2px 5px;
    margin-left: 5px;
    font-size: 0.8em;
    cursor: pointer;
}

.main-content {
    flex-grow: 1;
    margin-left: 260px;
    /* Match sidebar width */
    margin-right: 260px;
    /* Match right sidebar width */
    margin-top: 50px;
    /* Account for upper menubar */
    height: calc(100vh - 50px);
    /* Subtract upper menubar height */
    overflow-y: auto;
}

.upper-menubar .menu-items a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
}

.upper-menubar .menu-items a:hover {
    text-decoration: underline;
}

#chat-container {
    flex-grow: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.chat-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #333 #1e1e1e;
    max-height: calc(100vh - 200px);
    /* Adjust this value as needed */
}

.chat-area::-webkit-scrollbar {
    width: 8px;
}

.chat-area::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.chat-area::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 4px;
}

.input-group {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #1e1e1e;
    border-top: 1px solid #333333;
    position: sticky;
    bottom: 0;
    z-index: 10;
    /* Ensure it's above other content */
}

#followup-questions {
    height: 120px;
    /* Fixed height */
    overflow-y: auto;
    /* Enable vertical scrolling */
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
    /* Align items to the top */
}

.input-area {
    display: flex;
    padding: 20px 0;
}

.followup-button {
    background-color: #000000;
    color: #c9c9c9;
    border: none;
    text-align: left;
    padding: 8px 12px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.followup-button:hover {
    background-color: #4d4d4d;
}

.chat-message {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    max-width: 60%;
    white-space: pre-wrap;
}

.chat-message.user {
    background-color: #007acc;
    align-self: flex-end;
    text-align: left;
}

.chat-message.bot {
    background-color: none;
    align-self: flex-start;
    max-width: 90%;
}

.chat-message.bot p {
    margin-top: 0;
    margin-bottom: 0.5em;
    /* Reduce space between paragraphs */
}

.chat-message.bot p:last-child {
    margin-bottom: 0;
    /* Remove bottom margin for last paragraph */
}

.chat-message.bot pre {
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.chat-message.bot code {
    background-color: #3a3a3a;
    padding: 2px 4px;
    border-radius: 3px;
}

.chat-message.bot a {
    color: #007acc;
}

.chat-message.bot ul,
.chat-message.bot ol {
    padding-left: 20px;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.chat-message.bot blockquote {
    border-left: 3px solid #007acc;
    margin-left: 0;
    margin-right: 0;
    padding-left: 10px;
    color: #b0b0b0;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.input-area textarea {
    flex-grow: 1;
    padding: 10px;
    border-radius: 5px 0 0 5px;
    border: 1px solid #333333;
    background-color: #252526;
    color: #e0e0e0;
    resize: none;
    outline: none;
}

.input-area textarea:focus {
    border-color: #007acc;
}

.input-area button {
    padding: 10px 20px;
    border: none;
    border-radius: 0 5px 5px 0;
    background-color: #007acc;
    color: #e0e0e0;
    cursor: pointer;
}

.input-area button:hover {
    background-color: #005999;
}

.loading {
    display: inline-block;
    width: 20px;
    /* Set a fixed width */
    text-align: left;
    line-height: 1;
    vertical-align: middle;
}

.loading::after {
    content: '...';
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    animation: ellipsis-dot 1.2s infinite;
    width: 0;
}

@keyframes ellipsis-dot {
    0% {
        width: 0;
    }

    25% {
        width: 0.5em;
    }

    50% {
        width: 1em;
    }

    75% {
        width: 1.5em;
    }

    100% {
        width: 0;
    }
}

#login-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

#login-area {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 20px;
    background-color: #252526;
    border-radius: 5px;
    z-index: 1001;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form input,
.login-form button {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #333333;
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.login-form button {
    cursor: pointer;
    background-color: #007acc;
}

.login-form button:hover {
    background-color: #005999;
}

#settings-link {
    margin-right: 20px;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #252526;
    width: 600px;
    height: 80vh;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.popup-header {
    display: flex;
    justify-content: space-between;

    padding: 10px 20px;
    border-bottom: 1px solid #333;
}

.popup-header h2 {
    margin: 0;
}

#close-settings {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #e0e0e0;
    cursor: pointer;
}

#close-settings:hover {
    color: #007acc;
}

.popup-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.instructions-area {
    width: 100%;
    height: 80%;
    padding: 10px;
    border: 1px solid #333;
    background-color: #1e1e1e;
    color: #e0e0e0;
    resize: none;
    font-family: inherit;
    font-size: inherit;
    box-sizing: border-box;
}

.popup-footer {
    padding: 10px 20px;
    border-top: 1px solid #333;
    text-align: right;
}

#save-settings {
    padding: 5px 15px;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#save-settings:hover {
    background-color: #005999;
}

.conversation-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-item:hover {
    background-color: #2a2d2e;
}

.conversation-item.active {
    background-color: #37373d;
}

.context-menu {
    display: none;
    position: absolute;
    background-color: #252526;
    border: 1px solid #454545;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.context-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.context-menu li {
    padding: 8px 12px;
    cursor: pointer;
}

.context-menu li:hover {
    background-color: #2a2d2e;
}

#rename-dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #121212;
    padding: 50px;
    border-radius: 8px;
    z-index: 1001;
    width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#rename-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 30px;
    border: 1px solid #333;
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-size: 16px;
    border-radius: 4px;
}

.rename-buttons {
    display: flex;
    justify-content: flex-end;
}

#rename-save,
#rename-cancel {
    padding: 12px 25px;
    margin-left: 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    transition: background-color 0.3s;
}

#rename-save:hover,
#rename-cancel:hover {
    background-color: #2a2a2a;
}

/* Add a title to the rename dialog */
#rename-dialog::before {
    content: 'Rename Conversation';
    display: block;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #e0e0e0;
}

#follow-up-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

#follow-up-suggestions button {
    background-color: #000000;
    color: #c9c9c9;
    border: none;
    text-align: left;
    padding: 8px 12px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s;
}

#follow-up-suggestions button:hover {
    background-color: #4d4d4d;
}

.chat-message.bot img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

.chat-message.bot audio {
    width: 100%;
    margin-top: 10px;

}

.right-sidebar {
    width: 260px;
    background-color: #000000;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    position: fixed;
    top: 50px;
    /* Start below the upper menubar */
    right: 0;
    bottom: 0;
    z-index: 10;
}

.selected-element {
    cursor: move;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #2a2d2e;
    border: 1px solid #3a3d3e;
    position: relative;
}

.element-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.timeline-item {
    position: relative;
    overflow: hidden;
}
.drag-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: ew-resize;
}
.left-drag-bar {
    left: 0;
}
.right-drag-bar {
    right: 0;
}


.drag-icon {
    cursor: move;
    color: #6e6e6e;
    /* Lighter grey for the icon */
    font-size: 18px;
    margin-top: -10px;
}

.delete-button {
    background: none;
    /* Remove background */
    color: #6e6e6e;
    /* Match the color of the drag icon */
    border: none;
    font-size: 18px;
    /* Match the size of the drag icon */
    line-height: 1;
    cursor: pointer;
    margin-top: -10px;
    margin-right: -5px;
    /* Nudge to the right */
    padding: 0;
    /* Remove padding */
}

.delete-button:hover {
    color: #ffffff;
    /* Change color on hover for feedback */
}

.element-content {
    width: 100%;
}

.selected-element img,
.selected-element audio {
    max-width: 100%;
    display: block;
    /* Ensures the element is on its own line */
}

.expandable-text {
    margin-top: 5px;
}

.ellipsis-container {
    text-align: center;
}

.ellipsis {
    color: #6e6e6e;
    /* Gray color */
    cursor: pointer;
    display: inline-block;
}

.expanded-text {
    text-align: left;
    margin-top: 5px;
}

.drop-indicator {
    height: 2px;
    background-color: #007acc;
    margin: 5px 0;
}

.audio-container {
    background-color: #333333;
    /* Grey background */
    padding: 10px;
    border-radius: 10px;
    margin: 20px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.audio-container audio {
    width: 100%;
    margin-bottom: 10px;
}

.select-audio-button {
    background: rgb(41, 41, 41);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
}

.select-audio-button:hover {
    color: rgb(29, 113, 239);
}

.transcript-container {
    margin-top: 10px;
    font-size: 0.9em;
    line-height: 1.4;
}

.transcript-ellipsis {
    cursor: pointer;
    color: #007acc;  /* A blue color to indicate it's clickable */
    display: inline-block;
    margin-top: 5px;
}

.transcript-ellipsis:hover {
    text-decoration: underline;
}

.transcript-text {
    margin-top: 5px;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

 

.timeline-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-bottom: 1px solid #444;
}

.spacer {
    flex: 1;
}

.play-controls {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.play-pause-button {
    font-size: 18px;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    cursor: pointer;
    margin-right: 10px;
}

.play-head-position-display {
    font-weight: bold;
 
}

.total-duration-display {
    margin-left: auto;
}

.timeline-tracks-container {
    position: relative;
    overflow: hidden;
}

.play-head {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: red;
    z-index: 1000;
    cursor: ew-resize;
}

.play-head-knob {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid red;
    cursor: ew-resize;
}

.timeline-tracks {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
}

.timeline {
    width: 100%;
    height: 100px;
    background-color: #333;
    margin-bottom: 10px;
    position: relative;
}

.timeline-item {
    position: absolute;
    height: 100%;
    background-color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    transition: background-color 0.2s;
}

.timeline-item:hover {
    background-color: #666;
}

.timeline-item.selected {
    background-color: #007acc;
}

.timeline-item.resizing {
    cursor: ew-resize;
}

.timeline-item.dragging {
    cursor: move;
}

.timeline-item.playing {
    background-color: #009900;
}

.timeline-item.paused {
    background-color: #007acc;
}

.timeline-item.audio {
    background-color: #888;
}

.timeline-item.audio.playing {
    background-color: #009900;
}

.timeline-item.audio.paused {
    background-color: #888;
}

.timeline-item.audio .play-button {
    font-size: 16px;
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

.timeline-item.audio .play-button:hover {
    color: #007acc;
}

.timeline-tracks {
    position: relative;
}

.play-head {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: red;
    z-index: 1000;
    cursor: ew-resize;
}

.play-head-knob {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 14px solid red;
    cursor: ew-resize;
}

.timeline {
    position: relative;
    height: 100px;
    background-color: #2a2a2a;
    border: 1px solid #444;
}

#image-track {
    border-bottom: none;
}

.timeline-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-bottom: 1px solid #444;
}

.spacer {
    flex: 1;
}

.play-controls {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.play-pause-button {
    font-size: 18px;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
 
    border: none;
    color: white;
    cursor: pointer;
    margin-right: 10px;
}

.play-head-position-display {
    font-weight: bold;
}

.total-duration-display {
    margin-left: auto;
}

.play-head {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: red;
    z-index: 1000;
    cursor: ew-resize;
}

.timeline-tracks-container,
.timeline-item,
.timeline-item * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.timeline-tracks {
    position: relative;
}

.play-head {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: red;
    z-index: 1000;
    cursor: ew-resize;
}

.timeline {
    position: relative;
    height: 100px;
    background-color: #2a2a2a;
    border: 1px solid #444;
}

#image-track {
    border-bottom: none;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.timeline-item[data-type="audio"] {
    background-color: #3a3a3a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-track {
    height: 100px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
    overflow: hidden; /* Prevent items from visually overflowing */
}

.timeline-item {
    display: inline-block;
    height: 80px;
    margin: 10px;
    background-color: #3a3a3a;
    border: 1px solid #555;
    cursor: move;
    position: absolute;
    min-width: 50px; /* Ensure a minimum width for very short clips */
}

.timeline-item img {
    height: 100%;
    width: auto;
}

.timeline-item .audio-icon {
    width: 40px;
    height: 40px;
    background-color: #007acc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
}

.popup-content.large {
    width: 90%;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #333;
}

.popup-header h2 {
    margin: 0;
}

#close-edit-popup {
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
}

.popup-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.timeline-container {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.play-head {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: red;
    z-index: 1000;
    cursor: ew-resize;
}

.timeline {
    margin-bottom: 0;
    width: 100%;
    overflow-x: auto;
}

.timeline-track {
    height: 100px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    position: relative;
    width: 98%;
    overflow: hidden; /* Prevent items from visually overflowing */
}

.timeline-item {
    height: 90px;
    background-color: #3a3a3a;
    border: 1px solid #555;
    position: absolute;
    top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 50px; /* Ensure a minimum width for very short clips */
}

.timeline-item img {
    height: 100%;
    width: auto;
}

.timeline-item .audio-icon {
    width: 50px;
    height: 50px;
    background-color: #007acc;
 
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
}

.timeline-item .resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: #007acc;
    cursor: e-resize;
}

.popup-footer {
    padding: 10px 20px;
    border-top: 1px solid #333;
    text-align: right;
}

#edit-elements-area {
    width: 100%;
    height: calc(100% - 50px); /* Adjust based on your header and footer height */
    font-family: monospace;
    font-size: 14px;
}

.transcript-ellipsis {
    display: block;
    text-align: center;
    color: #6e6e6e;
}

.total-duration-display {
    margin-left: auto;
}

.timeline-item-header {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 5px;
    font-size: 12px;
    z-index: 10;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
 
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.timeline-item[data-type="audio"] {
    background-color: #3a3a3a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-tracks-container,
.timeline-item,
.timeline-item * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.main-window {
    width: 100%;
    height: 60%; /* Changed from fixed height */
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 10px;
}

#current-media {
    position: relative;
    width: 100%;
    height: 100%;
}

#current-media img, #current-media div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}