﻿html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: sans-serif;
    color: black;
}

p {
    margin: 2px;
    padding: 0px;
}


.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bot_frame_bg);
}

.top-frame {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    background-color: var(--top_frame_bg);
    border: 2px solid var(--bot_frame_bg);
    overflow-y: hidden;
}

/* Bottom area fills remaining space */
.bottom-area {
    flex: 1 1 0;
    display: flex;
    min-height: 0;
    /* allow scrolling of children */
}

.left-frame {
    flex: 1 1 0;
    min-width: 50px;
    /* allow resizing */
    overflow-y: auto;
    background-color: var(--global_bg);
    padding: 10px;
    box-sizing: border-box;
    min-height: 0;
    margin: 1px;
    scrollbar-color: var(--selected_verse) var(--bot_frame_bg);
}

/* Right frames container */
.right-frames {
    flex: 1 1 0;
    min-width: 50px;
    /* allow resizing */
    display: flex;
    flex-direction: column;
}

/* Right frames stacked vertically */
.right-frame {
    flex: 1 1 0;
    overflow-y: auto;
    min-height: 0;
    border-bottom: 1px solid #fff;
    background-color: var(--global_bg);
    line-height: 2;
    border: 2px solid grey;
    margin: 2px;
    display: flex;
    justify-content: center;
    /* horizontal center */
    align-items: flex-start;
    /* vertical center */
}

.right-frame-1 {
    flex: 1 1 0;
    overflow-y: auto;
    min-height: 0;
    background-color: var(--global_bg);
    margin: 1px;
    scrollbar-color: var(--selected_verse) var(--bot_frame_bg);
}

.right-frame:last-child {
    border-bottom: none;
}