/* used for common/templates/common/base.html
 * which is extended by base_authenticated_user as well as
 * all the simple pages like login, thank_you, change_password
 *
 * This is the css file that _all_ pages should <link>.
 *
 * If using this file, be sure to <link>
 * one of the <app>/theme.css right before
 */

:root {
    --app-theme-color: hsl(var(--app-theme-color-h),
            var(--app-theme-color-s),
            var(--app-theme-color-l));

    --app-title-color: hsl(var(--app-title-color-h),
            var(--app-title-color-s),
            var(--app-title-color-l));

    --app-stage-color: hsl(var(--app-stage-color-h),
            var(--app-stage-color-s),
            var(--app-stage-color-l));

    --app-simulation-title-color: hsl(var(--app-simulation-title-color-h),
            var(--app-simulation-title-color-s),
            var(--app-simulation-title-color-l));
}

body {
    background: #f8f9fa;
    font-family: "Roboto", serif;
}

p {
    font-size: 1.1em;
    line-height: 1.7em;
    font-weight: 300;
    color: #141414;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    padding-left: 1rem;
    padding-right: 1rem;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

.wrapper {
    display: flex;
    width: 100%;
}

a[data-toggle="collapse"],
a[data-bs-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: var(--app-theme-color);
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

.logo {
    width: 150px;
    padding-right: 15px;
    padding-left: 5px;
}

.buttonRow {
    text-align: center;
}

.buttonRow button {
    text-align: center;
    width: 10em;
    height: 4em;
    transition: background-color 0.3s ease;
}

.optionsTable {
    width: 100%;
    border: 1px;
}

.optionsTable thead {
    padding-bottom: 20px;
}

.optionsTable th {
    text-align: left;
}

.copyrightTitle {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
}

.simulationTitle {
    text-align: center;
    font-size: 2.4em;
    font-weight: bold;
    color: var(--app-title-color);
}

.stageNumber {
    text-align: center;
    font-size: 1.7em;
    font-weight: bold;
    background: var(--app-stage-color);
    border-radius: 5px;
    border: 1px solid #dedede;
    padding-left: 5ch;
    padding-right: 5ch;
    padding-bottom: 5ch;
    padding: 40px 0;
}

#content {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#content.active {
    width: 100%;
}

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }

    #sidebar.active {
        margin-left: 0;
    }

    #content {
        width: 100%;
    }

    #content.active {
        width: calc(100% - 250px);
    }

    #sidebarCollapse span {
        display: none;
    }
}

table#session_list th {
    background-color: var(--app-simulation-title-color);
}

#thank-you table th {
    background-color: var(--app-stage-color);
}

.btn-primary {
    background-color: var(--btn-primary-background-color) !important;
    border-color: var(--btn-primary-background-color) !important;
    transition: background-color 0.3s ease;
}

.btn-success {
    background-color: var(--btn-success-background-color) !important;
    border-color: var(--btn-success-background-color) !important;
    transition: background-color 0.3s ease;
}

.btn-dark {
    background-color: var(--btn-dark-background-color) !important;
    border-color: var(--btn-dark-background-color) !important;
    transition: background-color 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--btn-primary-background-color-hover) !important;
    border-color: var(--btn-primary-background-color-hover) !important;
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--btn-success-background-color-hover) !important;
    border-color: var(--btn-success-background-color-hover) !important;
}

.btn-dark:hover,
.btn-dark:focus {
    background-color: var(--btn-dark-background-color-hover) !important;
    border-color: var(--btn-dark-background-color-hover) !important;
}

.invalid-conquertheinternet {
    background-color: #0c7a2a !important;
    /* green */
    border-color: #0c7a2a !important;
}

.invalid-conquerthemarket {
    background-color: #1696db !important;
    /* blue */
    border-color: #1696db !important;
}

.invalid-conquertheworld {
    background-color: #b8b8b8 !important;
    /* gray */
    border-color: #b8b8b8 !important;
}

.invalid-conquertheinternet:hover,
.invalid-conquertheinternet:focus {
    background-color: #08591f !important;
    border-color: #08591f !important;
}

.invalid-conquerthemarket:hover,
.invalid-conquerthemarket:focus {
    background-color: #0d5fb6 !important;
    border-color: #0d5fb6 !important;
}

.invalid-conquertheworld:hover,
.invalid-conquertheworld:focus {
    background-color: #4b4b4d !important;
    border-color: #4b4b4d !important;
}

#sidebar .superuser-links {
    background-color: hsl(349 69% 37%) !important;
}

.marcade-table-model-select {
    thead th {
        text-align: center;
    }
}

.marcade-contact-information,
.marcade-microsim-main {
    margin-top: 1rem;
}

.marcade-contact-information>.jumbotron,
.marcade-microsim-main>.jumbotron {
    margin-left: 25%;
    margin-right: 25%;
}

.marcade-certificate {
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    padding-top: 2rem;
}

.marcade-certificate .form-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 6rem auto;
}

.marcade-certificate .warning-container {
    background-color: #fff3cd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.marcade-certificate h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.marcade-certificate p {
    font-size: 1rem;
    color: #333;
}

.marcade-certificate .alert {
    font-size: 1rem;
    text-align: center;
}

.marcade-certificate .certificate-heading {
    font-size: 1.6rem;
    text-align: center;
    color: #343a40;
    /* Dark text colour */
    margin-bottom: 30px;
    border-bottom: 2px solid #007bff;
    /* Blue underline to match the button theme */
    padding-bottom: 10px;
}

.marcade-has-overlapping-indicator {
    position: relative;
}

.marcade-has-overlapping-indicator .marcade-htmx-overlapping-indicator {
    opacity: 0;

    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background-color: hsl(0, 0%, 50%);
    border-radius: 0.5rem;

    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.marcade-htmx-overlapping-indicator img {
    height: 30%;
    max-height: 30%;
    width: 30%;
    max-width: 30%;
}

.marcade-htmx-overlapping-indicator.htmx-request {
    display: flex;
    opacity: 0.7;
}

.message .marcade-htmx-overlapping-indicator.htmx-request {
    opacity: 0.3;
}

#advisor-chat-input .marcade-htmx-overlapping-indicator img {
    height: 80%;
}

#advisor-chat-input .marcade-htmx-overlapping-indicator.htmx-request {
    opacity: 0.7;
}

#sidebar .nav-link,
#sidebar ul li a,
.sidebar-section-link a {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.bottomMargin {
    margin-bottom: 2rem;
}

.topMargin {
    margin-top: 2rem;
}
