/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap');

.hidden {
    display: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(30,30,30, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.errorlist {
    color: red;
}

.navbar-nav a {
    color: black;
    font-weight: 600;
}

.badge-logo {
    max-height: 50px;
    max-width: 50px;
}

.achromatic {
    -webkit-filter: grayscale(100%);
}

.low-opacity {
    opacity: 0.5;
}

label {
    font-weight: 600;
}

.radio label {
    display: block;
}

input[type="file"] {
    margin-left: 14px;
    margin-right: 14px;
}

.preview {
    border: 1px lightgray solid;
    padding: 5rem;
}

.correct-answer-text {
    color: red;
}

.correct-answer::after {
    color: red;
    content: " Correct answer";
}

.custom-logo {
    max-height: 48px;
    max-width: 143px;
    padding-top: 6px;
    margin-right: 8px;
}

.footer-logo {
    max-height: 36px;
    max-width: 242px;
    padding-top: 6px;
    margin-right: 8px;
}


/* offsetting the content by 64px(header)+90px(footer) to compensate for the absolute position of the layout */

#content {
    min-height: calc(100vh - 160px);
    width: 100%;
}

/* custom styles for navbar */

:root {
    --black: #000000;
    --error-red: #FF0000;
    --secondary: #6C757D;
    --primary: var(--black);
    --layout-bg-color: var(--light, #F8F9FA); /* from bootstrap */
    --layout-primary-color: var(--black, #000000); /* from bootstrap */
    --layout-secondary-color: var(--secondary, #6C757D); /* from bootstrap */
}

.top-level-navigation {
    background-color: var(--layout-bg-color) !important;
    color: var(--layout-secondary-color);
    position: absolute;
    width: 100%;
    z-index: 10;
}

.top-level-navigation .nav-link {
    color: var(--layout-primary-color)
}

.custom-alert {
    position: relative;
    padding-top: 64px;
    margin: 0;
}

.footer {
    padding-left: 1rem;
    padding-right: 1rem;
    background-color: var(--black);
}

.nav-active {
    font-weight: bold;
    color: black !important;
}

@media (min-width: 989px) {
    ul li {
        position: relative;
    }

    .nav-active {
        color: black !important;;
    }

    .top-level-navigation .nav-link {
        color: var(--layout-primary-color, black) !important
    }

    .nav-active::after {
        content: "";
        position: absolute;
        background-color: #5872D4;
        height: 3px;
        width: 95%;
        left: 2.5%;
        bottom: -12px;
    }

    .item-underline:hover,
    .nav-active {
        text-shadow: 0 0 .01px #333333, 0 0 .01px #333333;
    }

    .top-level-navigation {
        height: 64px;
    }
}

.vertical-align {
    margin: 0;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    text-align: center;
}

/* anything larger than 'lg' according to bootstrap */
@media only screen and (max-width: 991px) {
    /* only show on screens size lg or greater */
    .show-lg {
        display: none;
    }
}

/* anything larger than 'md' according to bootstrap */
@media only screen and (max-width: 767px) {
    /* only show on screens size md or greater */
    .show-md {
        display: none;
    }
}

.border-bottom-dashed {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.5);
}

.text-complete {
    color: #7CDFA3;
}

/* monkey patch classes available in the latest version of bootstrap
TODO: remove this when we upgrade to Bootstrap 4.1+  */
.text-monospace {
    font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
}

.opacity-0 {
    opacity: 0;
}

.pe-none {
    pointer-events: none;
}

.text-decoration-underline {
    text-decoration: underline;
}

table.table.results td.error {
    color: var(--error-red);
}

/* faking fontawesome pro icons */
i.fas.fa-outline-primary,
i.fa.fa-outline-primary {
    color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--primary);
}

i.fas.fa-outline-secondary,
i.fa.fa-outline-secondary {
    color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--secondary);
}

i.fas.fa-2x.fa-outline-primary,
i.fa.fa-2x.fa-outline-primary,
i.fas.fa-2x.fa-outline-secondary,
i.fa.fa-2x.fa-outline-secondary {
    -webkit-text-stroke-width: 2px;
}
