:root {
    --cs_blue: #154194;
    --cs_lightblue: #D4D9F6;
    --cs_blue_darkmode: #04273f;
    --cs_blue_superdark: #001636;
    --chalk_white: #929599;

}

header {
    background-color: var(--cs_blue);
    color: white;
    height: 50px;
    line-height: 50px;
    box-sizing: border-box;
    padding-left: 15px;
}

main {
    width: 100%;
}

footer {
    position: fixed;
    bottom: 0px;
    left: 0px;
    height: 40px;
    padding-left: 15px;
}

footer img {
    height: 40px;
}

footer span {
    margin-left: 10px;
    margin-right: 10px;
}

footer span:hover {
    cursor: pointer;
}

#credits {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    background-color: rgba(0, 22, 54, 0.7);
}

#credits:hover {
    cursor: pointer;
}

#credits .card {
    border-radius: 10px;
    margin: 0 auto;
    margin-top: 10vh;
    height: fit-content;
    padding: 15px;
    text-align: center;
}

#credits .card:hover {
    cursor: initial;
}

.card-body img {
    width: 90%;
}

h1, h2, h3 {
    text-align: center;
}

header #menuToggle {
    display: none;
}

header ul {
    list-style-type: none;
    padding: 0;
    line-height: 50px;
    margin: 0;
    margin-left: 20px;
    display: inline-block;
}

header ul li {
    display: inline-block;
    margin-right: 15px;
    line-height: 50px;
    box-sizing: border-box;
    padding-left: 5px;
    padding-right: 5px;
}

header li.moduleStarter:hover {
    background-color: var(--cs_lightblue);
    color: var(--cs_blue);
    cursor: pointer;
}

header .menuItem {
    display: inline-block;
    line-height: 50px;
    box-sizing: border-box;
    margin-right: 10px;
}

header .menuItem img {
    height: 40px;
    display: inline-block;
    line-height: inherit;
}


#urlField {

}

#runContainer {
    margin-top: 5px;
    margin-left: 5px;
}

#runContainer button {
    margin-bottom: 5px;
}

#mount {
    position: relative;
    display: block;
    margin-top: 20px;
    left: 20px;
    height: 85vh;
    width: 90%;
    overflow-y: scroll;
}

.welcomeCard {
    margin: 0 auto;
}

.welcomeCard pre {
    word-break: break-word;
    white-space: pre-wrap
}

#mount #welcomeCardMobile {
    display: none;
}

#mount #welcomeCardDesktop {
    display: block;
}

#notificationContainer {
    position: fixed;
    top: 70px;
    right: 15px;
    z-index: 10000;
    overflow: hidden;
}

#notificationBox {
    background-color: var(--cs_blue);
    color: white;
    width: 350px;
    height: fit-content;
    border-radius: 5px;
    padding: 5px;
    display: none;

}

#notificationBox:hover {
    cursor: pointer;
    border: 1px solid darkred;
}

#notificationBox:active {
    background-color: darkred;
}

@keyframes notificationFlyIn {
    from {
        margin-right: -450px;
    }
    to {
        margin-right: 0px;
    }

}

@keyframes notificationFlyOut {
    from {
        margin-right: 0px;
    }
    to {
        margin-right: -450px;
    }

}

.flyIn {
    animation-name: notificationFlyIn;
    animation-duration: 1s;
}

.flyOut {
    animation-name: notificationFlyOut;
    animation-duration: 1s;
}

#loadingIndicator .spinner-border {
    width: 30px;
    height: 30px;
    vertical-align: -10px;
}

#outputField table {
    width: 80%;
}

#outputField table tbody tr a {
    color: inherit;
    text-decoration: none;
}

#outputField table tbody tr:nth-child(odd) {
    /*background-color: var(--cs_lightblue);*/
}

#lightmodeSwitch {
    float: right;
    margin-right: 10px;
}


body.dark {
    color: var(--chalk_white);
    background-color: var(--cs_blue_darkmode);
}

body.dark header {
    background-color: var(--cs_blue_superdark);
}

body.dark header .menuItem,  body.dark header li {
    color: var(--chalk_white)
}

body.dark h1, body.dark h2, body.dark h3 {
    color: var(--chalk_white)!important;
}

body.dark table, body.dark table tr th, body.dark table tr td {
    color: var(--chalk_white)!important;
}

body.dark table tbody tr:hover {
    background-color: unset!important;
}

body.dark table tbody tr:nth-child(odd) {
    background-color: rgba(212, 217, 246, 0.13);
}

body.dark #notificationBox {
    border: 1px solid var(--chalk_white);
    background-color: var(--cs_blue_superdark);
}

body.dark #notificationBox:active {
    background-color: #a20202;
}

body.dark #urlField {
    background-color: #26282a;
    color: var(--chalk_white);
}

body.dark .card {
    background-color: var(--cs_blue_superdark);
    border: 1px solid white;
    color: white;
}


@media screen and (max-device-width: 500px) {
    header #menuToggle {
        display: inline-block;
        font-size: larger;
    }

    #nameTitle, #moduleTitle {
        display: none;
    }

    #moduleList {
        display: none;
    }

    #lightmodeSwitch {
        position: fixed;
        right: -4px;
        top: -4px;
    }

    #urlField {
        width: 185px;
    }

    header ul {
        margin-left: 0px;
    }


    header ul li {
        margin-right: 0px;
        padding-left: 0px;
        padding-right: 0px;
        display: compact;

    }

    header #moduleList {
        background-color: var(--cs_blue);
        position: absolute;
        width: 100%;
        left: 0px;
        top: 50px;
        margin: 0px;
        z-index: 5000;
    }

    header li.moduleStarter:hover {
        color: white;
    }

    body.dark header #moduleList {
        background-color: var(--cs_blue_darkmode);
    }

    header #moduleList li {
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 2px;
        background-color: #154194;
        border-radius: 8px;
        border: 1px solid var(--chalk_white)
    }

    body.dark header #moduleList li {
        background-color: #154194;
    }

    #mount {
        margin-top: 10px;
        height: 80vh;
        left: 0px;
        width: 100%;
    }

    #mount #welcomeCardMobile {
        display: block;
    }

    #mount #welcomeCardDesktop {
        display: none;
    }

    #outputField table {
        width: 100%;
    }

    #credits .card {
        margin-top: 5vh;
    }
}
