:root {
    --display-width: min(100svw, 976px);
    --display-min-width: 320px;
    --main-content-border: max(calc(var(--display-width) * 0.015), 2px);
    --top-row-height: 40px;
    --body-margin: 8px;
    --content-width: calc(var(--display-width) - var(--body-margin) * 2);
    --body-background-color: skyblue;
    --primary-background-color: Cornsilk;
}

html, body {
    font-family: "verdana", sans-serif;
    background-color: var(--body-background-color);
    max-width: var(--display-width);
    min-width: var(--display-min-width);
    margin: 0;
    border: none;
    height: 100%;
}

.icon-img {
    margin-top: 10px;
    height: 20px;
    width: 20px;
    border: none;
    cursor: pointer;
}

.wrapper {
    height: 100%;
    margin: 0;
    border: none;
}

.main-content {
    background-color: var(--primary-background-color);
    border-top: 16px solid var(--primary-background-color);
    border-bottom: 16px solid var(--primary-background-color);
    border-left: var(--main-content-border) solid var(--primary-background-color);
    border-right: var(--main-content-border) solid var(--primary-background-color);
}

.main-content p:first-of-type {
    margin-top: 0;
}

.top-heading-div {
    display: grid;
    grid-template-columns: 30px 1fr 26px;
    background-color: paleturquoise;
    height: var(--top-row-height);
    overflow-y: hidden;
}

.bottom-footer-div {
    background-color: var(--primary-background-color);
    font-size: 10px;
    text-align: center;
    border-bottom: 5px solid var(--primary-background-color);
}

.heading-text {
    font-family: "verdana", sans-serif;
    font-size: 20px;
    line-height: calc(var(--top-row-height) - 2px);
    text-align: center;
}

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

.button-center {
    display: flex;
    justify-content: center; /* Centers horizontally */
}

.dialog-heading {
    font-family: "verdana", sans-serif;
    font-size: 20px;
    line-height: var(--top-row-height);
    background-color: lightgray;
}

.scrollable-list {
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: beige;
    line-height: normal;
    text-align: left;
    position: absolute;
    left: calc((var(--display-width) - var(--body-margin)) / 2 - 75px);
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
.scrollable-list-right {
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: beige;
    line-height: normal;
    text-align: left;
    position: absolute;
    right: calc(100% - var(--display-width) - 4px);
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
.scrollable-list ul, .scrollable-list-right ul {
    list-style-type: none; /* Removes bullets */
    margin: 0;            /* Removes default outer spacing */
    padding: 0;           /* Removes default inner spacing */
}
.scrollable-list li, .scrollable-list-right li {
    margin: 2px;
    padding: 2px;
}
.scrollable-list li:hover, .scrollable-list-right li:hover {
    background-color: #f1f1f1;
}
.scrollable-list .selected-item, .scrollable-list-right .selected-item {
    background-color: lightgray;
}

.dialog-div {
    position: absolute;
    top: 50px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    width: 300px;
    background-color: lightgoldenrodyellow;
    border: 2px solid black;
    border-radius: 25px;
    z-index: 9999; /* High value to ensure it's on top */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dialog-heading {
    padding: 10px  20px 10px 20px;
    background-color: lightskyblue;
    border-width: 0 0 1px 0;
    border-style: solid;
    border-radius: 25px 25px 0 0;
    font-size: 14pt;
}

.dialog-heading .smaller {
    font-size: 12pt;
}

.dialog-body {
    padding: 0 20px 20px 20px;
}

.dialog-body p {
    font-size: 14pt;
}

.dialog-buttons {
    border-width: 2px;
    border-color: #009879;
    width: 185px;
    margin: auto;
}

.dialog-buttons button {
    border-radius: 10px;
    border-width: 2px;
    padding: 7px 14px 7px 14px;
    font-size: 12pt;
    display: inline-block;
}

.dialog-buttons .ok-button {
    padding: 7px 27px 7px 26px;
}
