@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('../_content/KingTech.Web.Components/css/colors.css');

html, body {
    font-family: 'Titillium Web', Helvetica, Arial, sans-serif;
    font-size: 20px;
}

/* General elements */
.page {
    background-image: linear-gradient(to bottom, rgba(224, 224, 224, .85), rgba(224, 224, 224, .85)), url("../img/kt-site-bg.png");
}

.theme-dark .page {
    background-image: linear-gradient(to bottom, rgba(80, 80, 80, .85), rgba(80, 80, 80, .85)), url("../img/kt-site-bg.png");
}

.content {
    /* TODO: Make these sizes more dynamic (for portrait mode / square screens) */
    width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;

    background-color: white;
    box-shadow: 0 1px 1px rgba(0,0,0,0.12), 
                0 2px 2px rgba(0,0,0,0.12), 
                0 4px 4px rgba(0,0,0,0.12), 
                0 8px 8px rgba(0,0,0,0.12), 
                0 16px 16px rgba(0,0,0,0.12);

    color: var(--font-color);
}
@media (orientation: portrait) {
    .content { 
        width: 100%;
        padding: auto;
    }
}

.theme-dark .content {
    background-color: var(--ui-element-color-dark);
    color: var(--font-color-dark);
}




/* Standard blazor (error) CSS. */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

pre.highlight, .highlight pre {
    max-height: 30rem;
    overflow: auto;
    background: #354052;
    color: #ffffff;
}

.highlight .htmlAttributeName, .highlight .razor {
    color: #ffe484;
}

.highlight .htmlTagDelimiter, .highlight .htmlElementName {
    color: #ff8383;
}

.highlight .htmlAttributeValue, .highlight .string {
    color: #b5f4a5;
}

.highlight .keyword {
    color: #93ddfd;
}

.iconlist-container {
    min-height: 800px;
}

.iconlist-item {
    min-width: 80px;
}

.example {
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid solid lightgray;
    border-radius: 3px 3px 0 0;
    position: relative;
    min-height: 12rem;
    display: flex;
    align-items: center;
    overflow-x: auto;
}

.example-centered {
    justify-content: center;
}

    .example-centered .example-content {
        flex: 0 auto;
    }

.example-content {
    flex: 1;
    max-width: 100%;
}

.example-code {
    margin: 2rem 0;
    border-top: none;
}

    .example-code pre {
        margin: 0;
        border-radius: 0 0 3px 3px;
    }

.example + .example-code {
    margin-top: -2rem;
}

.example-column {
    margin: 0 auto;
}

    .example-column > .card:last-of-type {
        margin-bottom: 0;
    }

.example-column-1 {
    max-width: 20rem;
}

.example-column-2 {
    max-width: 40rem;
}

.theme-dark .alert {
    background: rgba(120,120,122,.8);
    color: rgba(255,255,255,.7);
}

.theme-dark .text-muted {
    color: rgba(255, 255, 255, .7) !important;
}


.blogpost-created {
    margin-top: 1.25rem;
    color: grey;
}


.figure-caption {
    color: grey;
}

.theme-dark .figure-caption {
    color: lightgrey;
}

.about-us-intro {
    margin-top: 1.5rem;
}

/*Tabblazor tooltip fix*/
.tooltip-wrapper {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
    cursor: help;
}

    .tooltip-wrapper span {
        visibility: hidden;
        position: absolute;
        width: 120px;
        bottom: 100%;
        left: 50%;
        margin-left: -60px;
        background-color: #363636;
        color: #fff;
        text-align: center;
        padding: 5px 0;
        border-radius: 6px;
        z-index: 1;
    }

        .tooltip-wrapper span::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #555 transparent transparent transparent;
        }

    .tooltip-wrapper:hover span {
        visibility: visible;
    }

/*Collapsible*/
details .details-content {
    padding: 1em;
    border: 2px solid #f1f1f1;
}

details summary {
    width: 100%;
    height: 3.2em;
    line-height: 3.2em;
    padding-left: 1em;
    background-color: #f1f1f1;
    list-style: none;
    font-size: 1.1em;
    font-weight: bold;
}

    details summary::marker {
        visibility: hidden;
        display: none;
    }

    details summary .arrow {
        margin-left: auto;
        margin-right: 2em;
        top: -1.6em;
    }

    details summary::before {
        content: '+';
        margin-right: 1em;
    }

details[open] summary::before {
    content: '-';
    font-size: 1.2em;
    margin-right: 1em;
}

/*Triangles*/
.triangle-right {
    width: 0px;
    height: 0px;
    border: 10px solid;
    border-top-color: transparent;
    border-left-color: black;
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.triangle-top {
    width: 0px;
    height: 0px;
    border: 10px solid;
    border-top-color: transparent;
    border-left-color: transparent;
    border-right-color: transparent;
    border-bottom-color: black;
}

.triangle-left {
    width: 0px;
    height: 0px;
    border: 10px solid;
    border-top-color: transparent;
    border-left-color: transparent;
    border-right-color: black;
    border-bottom-color: transparent;
}

.triangle-bottom {
    width: 0px;
    height: 0px;
    border: 10px solid;
    border-top-color: black;
    border-left-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.triangle-after {
    width: 100px;
    height: 50px;
    background: black;
    position: relative;
}

    .triangle-after:after {
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        top: 100%;
        border-top: solid 10px black;
        border-left: solid 50px transparent;
        border-right: solid 50px transparent;
        border-bottom: solid 10px transparent;
    }

/*Striped table*/
.striped-table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}

    .striped-table table {
        border-collapse: collapse;
        text-indent: initial;
        border-spacing: 2px;
    }

    .striped-table thead tr {
        display: table-row;
        vertical-align: inherit;
        border-color: inherit;
        font-weight: bold;
        background-color: #e2e2e2;
    }

    .striped-table thead th {
        vertical-align: bottom;
        border-bottom: 2px solid #dee2e6;
    }

    .striped-table td, .striped-table thead th {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid;
        display: table-cell;
    }

    .striped-table tbody tr {
        display: table-row;
        vertical-align: inherit;
        border-color: inherit;
        font-size: 0.9em;
    }

    .striped-table tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    .striped-table td:first-child {
        font-weight: bold;
    }