* {
    font-family: sans-serif;
}
body {
    background-color: white;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1; /* Ensure the header stays on top */
    background: white;
}

table {
    margin-left: auto;
    margin-right: auto;
    /*border: solid black 1px;*/

}

th {
    /*border: solid black 1px;*/
}

td {
    border: solid black 1px;
    margin: 0;
    padding-left: 10px;
    padding-right: 10px;
}

#header-inner-box {
    margin-bottom: 3%;
    margin-left: 3%;
    margin-top: 5px;
    width: 94%;
    border: solid #700000;
}

@media screen and (max-width: 699px) {
    #menu-bar {
        gap: 10px;
        padding: 5px;
    }

        #menu-bar a {
            font-size: small;
            vertical-align: center;
        }
}

@media screen and (min-width: 700px) {
    #menu-bar {
        gap: 20px;
        padding: 10px;
    }

        #menu-bar a {
            font-size: medium;
            min-width: 20%;
        }
}

@media screen and (max-width: 699px) {
    #menu-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 700px) {
    #menu-bar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }
}

    #menu-bar a {
        text-align: center;
        background-color: #700000;
        color: white;
    }

#sub-menu-bar div {
    display: grid;
    gap: 20px;
    padding: 10px;
    width: 94%;
    margin-left: 3%;
}

#upper-sub {
    grid-template-columns: repeat(4, 1fr);
}

#lower-sub {
    grid-template-columns: repeat(7, 1fr);
}

#sub-menu-bar a {
    text-align: center;
    min-width: 20%;
    background-color: beige;
    color: #700000;
}

#sub-menu-bar .active {
    font-style: italic;
    background-color: #700000;
    color: white;
    border: #700000;
    border-width: medium;
}


#non-header {
    margin-top: 130px; /* Fallback value */
    overflow-y: auto;
    height: calc(100% - 120px); /* Fallback value */
    display: none;
}

header h1 {
    text-align: center;
}

#top-title {
    font-size: xx-large;
}

.wrapper {
    display: grid;
    position: relative;
    gap: 2px;
}

@media screen and (max-width: 699px) {
    .wrapper {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 700px) {
    .wrapper {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

    .wrapper h1 {
        text-align: left;
        font-style: italic;
    }

@media screen and (max-width: 699px) {
    #center-logo-container {
        display: none;
    }
}

@media screen and (min-width: 700px) {
    #center-logo-container {
        position: absolute;
        grid-row: 2;
        grid-column: 1 / 3;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateY(-50%);
        z-index: 10;
        pointer-events: none;
    }
}

#center-logo-container img {
    width: 9%;
    height: 9%;
    padding: 2%;
    background-color: transparent;
}

@media screen and (min-width: 800px) {
    #center-logo {
        width: 80px;
        height: 80px;
    }
}

@media screen and (max-width: 799px) {
    #center-logo {
        width: 40px;
        height: 40px;
    }
}
/*

@media screen and (max-width: 799px) {
    .wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (min-width: 800px) {
    .wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

    */
.main-subsection {
    margin: 3%;
    padding: 3%;
    border: solid #700000 2px;
}

.main-subsection-title {
    display: flex;
    align-items: center;
}

    .main-subsection-title img {
        vertical-align: middle;
        margin-right: 10px;
        height: 60px;
        width: 60px;
    }

    .main-subsection-title h1 {
        vertical-align: middle;
    }

#detail-div {
    background-color: whitesmoke;
}


@media screen and (max-width: 699px) {
    .product-detail {
        width: 90%;
        margin-left: 5%;
        padding-bottom: 60px; /* Space for fixed nav bar */
    }
    .left-margin,
    .right-margin {
        position: fixed;
        bottom: 0;
        width: 50%;
        background-color: #700000;
        padding: 12px 0;
        z-index: 100;
        transform: translateZ(0); /* Force GPU compositing so bar appears on initial paint */
    }
    .left-margin {
        left: 0;
    }
    .right-margin {
        right: 0;
    }
    .left-margin a,
    .right-margin a {
        color: white;
        text-decoration: none;
        font-size: 14px;
    }
    .left-margin img,
    .right-margin img {
        filter: brightness(0) invert(1); /* Make arrows white */
    }
}

@media screen and (min-width: 700px) {
    .product-detail {
        width: 60%;
        max-width: 700px;
	float:left;
    }
    .left-margin {
	width: 20%;
    }
    .right-margin {
	width: 20%;
    }
}

pre {
    font-size: 10pt;
    margin-left: 4%;
    /*background-color: #b04040;*/
}

code {
    font-size: 10pt;
    font-family: monospace, "Courier New";
}

.quote {
    font-size: 10pt;
    font-family: verdana, helvetica, arial, sans-serif;
    font-style: normal;
    line-height: 12pt;
    text-decoration: none;
}

a.quote:link {
    font-weight: normal;
    text-decoration: underline;
}

a.quote:visited {
    font-weight: normal;
    text-decoration: underline;
}

a.sideheader:link {
    color: Black;
    font-size: 8pt;
    text-decoration: none;
}

a.sideheader:visited {
    color: Black;
    font-size: 8pt;
    text-decoration: none;
}

a.sideheader:hover {
    color: Black;
    font-size: 8pt;
    text-decoration: underline;
}

a.sidelink:link {
    font-size: 8pt;
    font-weight: normal;
    color: #990033;
    text-decoration: none;
}

a.sidelink:visited {
    font-size: 8pt;
    font-weight: normal;
    color: #990033;
    text-decoration: none;
}

a.sidelink:hover {
    font-size: 8pt;
    font-weight: normal;
    color: #990033;
    text-decoration: underline;
}

.largetitle, .headline {
    font-size: 13pt;
    font-weight: bold;
}

.pagetitle {
    font-size: 18pt;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
}

.headline {
    font-size: 13pt;
    font-weight: bold;
    text-align: center;
}

a.headline:link {
    font-size: 13pt;
    color: Red;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

a.headline:visited {
    font-size: 13pt;
    color: Red;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

blockquote {
    font-family: verdana, helvetica, arial, sans-serif;
    line-height: 12pt;
    text-decoration: none;
}

.block-quote {
    font-size: 10pt;
    font-family: verdana, helvetica, arial, sans-serif;
    font-weight: bold;
    font-style: italic;
    color: Green;
    line-height: 12pt;
    text-decoration: none;
    text-align: center;
}

EM {
    font-size: small;
    font-weight: bold;
    color: #330099;
    text-align: left;
    font-variant: small-caps;
}

H1 {
    font-size: 16pt;
    color: #700000;
}

H2 {
    font-size: 13pt;
    color: #700000;
    font-style: italic;
    margin-top: 5%;
}

H3 {
    font-size: medium;
    color: #700000;
    font-style:italic;
    margin-top: 5%;
}

LI.special {
    color: red;
    background: yellow;
}

LI.benefit {
    list-style-image: url(/images/arrow.gif);
    font-size: x-small;
    font-weight: bold;
    color: #700000;
    text-align: left;
}

ul > li {
    list-style-image: url(/images/arrow.gif);
}

li {
    margin-top: 4px;
    margin-bottom: 4px;
}

HR {
    color: #330099;
    height: 1pt;
}

A.button {
    color: White;
    font-weight: normal;
    text-decoration: blink;
}

.orderbox {
    border: 3px solid #336699;
    padding: 10px 4px;
    text-align: center;
    background-color: #F5F5F5;
}

.orderbox2 {
    border: 3px solid #336699;
    padding: 10px 10px;
    text-align: center;
    background-color: #F5F5F5;
}

div.c1 {
    margin-left: 5px;
    border: medium solid #700000;
}

#product-dialog {
    display: none;
    position: fixed;
    top: 2%;
    left: 10%;
    right: 10%;
    bottom: 2%;
    border: 6px solid #700000;
    border-radius: 15px;
    z-index: 1000;
    overflow: hidden;
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4);
}

#product-dialog-heading {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    background-color: lightgray;
    position: sticky;
}

    #product-dialog-heading h1 {
        text-align: center;
        font-weight: bold;
    }

    #product-dialog-heading button {
        align-content: center;
        width: 100px;
        margin-left: 45%;
    }

#product-dialog-body {
    background-color: #fefefe;
    height: 90%;
    padding: 20px;
    border: 1px solid #888;
    overflow: auto;
}

#product-dialog-content {
    padding-bottom: 20%;
}

/* Responsive design adjustments */
@media (max-width: 600px) {
    #product-dialog {
        top: 2%;
        left: 2%;
        right: 2%;
        bottom: 2%;
    }
}

.close {
    float: right;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

.error {
    color: red;
    font-size: x-large;
    font-style: italic;
    text-align: center;
}

    body.error {
        position: absolute; /* Sit on top of the page content */
        width: 80%; /* Full width (cover the whole page) */
        height: 80%; /* Full height (cover the whole page) */
        top: 10%;
        left: 10%;
        right: 0;
        bottom: 0;
    }

a.error {
    display: inline-block;
    padding: 10px 20px;
    background-color: orangered;
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

h1.customer-portal {
    text-align: center;
    margin-top: 0;
}

p.contact-info {
    margin-top: 3px;
    margin-bottom: 1px;
}

div.bordered-box {
    margin-top: 30px;
    border: 5px solid #911a41;
    padding-left: 2%;
    padding-right: 2%;
}

#about-contact {
    margin-bottom: 25px;
}

img {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    max-height: 100%;
    display:flex;
}

.welcome {
    margin: 10px;
    padding: 10px;
    font-size: large;
}

.button {
    margin-left: 10px;
    margin-right: 10px;
}

.upload_header {
    margin-top: 20px;
    font-size: 24px;
    background-color: beige;
    font-style: italic;
}

#release_notes {
    border: thick black solid;
    position: fixed; /* Sit on top of the page content */
    width: 80%; /* Full width (cover the whole page) */
    height: 80%; /* Full height (cover the whole page) */
    top: 10%;
    left: 10%;
    right: 0;
    bottom: 0;
    background-color: rgba(230, 220, 230, 1);
    z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
    display: none; /* Hidden by default */
}

#release_notes_buttons {
    text-align: center;
    padding: 8px 0;
}

#release_notes_buttons button {
    font-weight: bold;
    background-color: #b02020;
    color: white;
    border-radius: 30%;
    padding: 8px 30px;
    margin: 0 10px;
    cursor: pointer;
    border: none;
}

#release_notes_buttons button:hover {
    background-color: darkred;
    border-width: 4px;
    border-color: orangered;
    border-style: solid;
    padding: 4px 26px;
}

#overlay_text_div {
    width: 100%;
    height: calc(100% - 50px);
    overflow: scroll;
    padding: 3%;
}

#relnotes_heading {
    font-style: italic;
    margin-left: 10%;
    margin-right: 10%;
}

.message {
    border: red solid;
    background-color: rgba(200, 200, 200, 0.85);
    position: absolute; /* Sit on top of the page content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40%;
    height: 15%;
    top: 10%;
    left: 30%;
    right: 0;
    bottom: 0;
}

.message p {
    font-style: italic;
    font-size: x-large;
}

.message button {
    padding-left: 30px;
    padding-right: 30px;
}

.login {
    width: 400px;
    background-color: #ffffff;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    margin: 100px auto;
}

.login h1 {
    text-align: center;
    color: #5b6574;
    font-size: 24px;
    font-weight: bold;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #dee0e4;
}

.login div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
}

.login label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #3274d6;
    color: #ffffff;
}

.login input[type="password"], .login input[type="text"] {
    width: 310px;
    height: 50px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    padding: 0 15px;
}

.login button {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #700000;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s;
}

.login button:hover {
    background-color: #700000;
    transition: background-color 0.2s;
}

a.button, input.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #700000;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    border-width: 4px;
    border-color: white;
    border-style: solid;
}


a.button:hover {
    background-color: darkred;
    border-width: 4px;
    border-color: darkred;
    border-style: solid;
    padding: 6px 16px;
}


table.products {
    margin-left: 30px;
}

td.product-header {
    padding-left: 24px;
    background-color: #efccd7;
    color: black;
    font-style: italic;
    font-size: 20px;
}

tr.product-header {
    height: 60px;
}

td.version-indent {
    width: 20px;
    border-width: 0;
}

td.version-number {
    height: 40px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #d0c4c4;
    font-weight: bold;
    text-align: center;
}

td.product-link {
    background-color: lightgray;
    padding-left: 30px;
    padding-right: 30px;
    text-align: center;
    height: 40px;
}

td.other-download {
    text-align: left;
}

a.link {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.highlight {
    font-style: italic;
    color: red;
    font-weight: bold;
    font-size: large;
}

.left-margin {
    float: left;
    text-align: center;
}

.right-margin {
    float: left;
    text-align: center;
}

.left-margin:empty,
.right-margin:empty {
    display: none;
}

#upload-progress {
    display: none;
    margin-top: 10px;
    max-width: 400px;
}

#upload-progress-bar-bg {
    background-color: #ddd;
    border-radius: 4px;
    height: 20px;
}

#upload-progress-bar {
    background-color: #700000;
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 0.2s;
}

#upload-progress-text {
    font-size: small;
    margin-top: 4px;
    display: block;
}
