/* Global Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: black;
    font-family: "Tahoma", "Times New Roman", sans-serif;
    background: white url(/Images/btp_shield.png) no-repeat center fixed;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header */
.header {
    background-color: darkblue;
    color: white;
    text-align: center;
    font-size: 2rem;
    padding: 10px;
    width: 100%;
}
.page {
    display: flex;
    flex-direction: column;
    min-height: 95vh;
}
/* Footer is not fixed, it just stays at the bottom */
.footer,
.loginFooter {
    background-color: darkblue;
    color: white;
    width: 100%;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    text-align: center;
}

.footer a,
.loginFooter a {
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border: 2px solid white;
    border-radius: 4px;
    font-size: 1rem;
    white-space: nowrap;
    display: inline-block;
    margin-top: 2px;
}
.footer a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer div {
    vertical-align: middle;
}

/* Lists */
ul,
ol {
    list-style-position: inside;
    text-align: center;
    margin: 1rem auto;
    padding-left: 0;
}

li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Tables */
#dataTable {
    font-weight: bold;
    width: 95%;
    margin: 1rem auto;
}

#dataTable_wrapper {
    margin-bottom: 3rem;
    width: 99%;
    margin-left: 5px;
    text-align: center;
}

/* Login */
.loginTitle {
    margin-top: 5%;
    font-size: 1.5rem;
    text-align: center;
    color: darkblue;
}

.loginDialog {
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}


/* Hidden Elements */
.qualitySelect,
.checkoutReason,
.ritualLog {
    display: none;
}

/* Permission Denied Message */
.permissionDenied {
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #ff9999;
    font-weight: bold;
    border-radius: 10px;
}

/* Scrollable Log */
.logText {
    overflow-y: auto;
    padding: 1rem;
}

/* Centered Home Text */
.homeText {
    width: 100%;
    text-align: center;
    padding: 1rem;
}
.eula{
    margin: 10px;
}
.eula ul{
    text-align: left;
}

.eula form{
    text-align: center;
}

.eulaInstructions{
    margin: auto;
    background-color: lightgray;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    text-align: center;
}

.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: #131314;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #e3e3e3;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
    border-color: #8e918f;
}

.gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity .218s;
    transition: opacity .218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.gsi-material-button:disabled {
    cursor: default;
    background-color: #13131461;
    border-color: #8e918f1f;
}

.gsi-material-button:disabled .gsi-material-button-state {
    background-color: #e3e3e31f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: white;
    opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: white;
    opacity: 8%;
}

/* Responsive Layout Adjustments */
@media screen and (max-width: 768px) {
    .header {
        font-size: 1.5rem;
    }

    .loginTitle {
        font-size: 1.2rem;
        margin-top: 10%;
    }

    .loginDialog button {
        font-size: 1.5rem;
        padding: 8px 16px;
    }

    .footer a,
    .loginFooter a {
        font-size: 0.9rem;
        padding: 4px 6px;
        margin-right: 1px;
    }

    li {
        font-size: 0.95rem;
    }

    .permissionDenied {
        font-size: 0.9rem;
    }
}