@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

#page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

#header {
    display: flex;
    background-color: #000;
    color: #fff;
    padding: 2rem;
    position:relative;
    /* margin-bottom: 1em; */
}

#header img {
    width: 40vw;
    height: auto;
    content: url("/img/cu-anschutz-logo-dark.png")
}

#header > #current-user {
    position: absolute;
    right: 0.5em;
    bottom: 0.5em;
    font-size: 0.8rem;
}

.org-container {
    font-family: 'Roboto', sans-serif;
    font-size: 26px;
    font-style: normal;
    font-weight: bold;
    color: #333;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 1rem 2rem;
    margin-bottom: 0.5em;
}

#loading {
    position: fixed;
    width: 100%;
    left: 0;right:0;top:0;bottom:0;
    background-color: rgba(255,255,255,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.loading-ring {
    display: inline-block;
    width: 100px;
    height: 100px;
}

.loading-ring:after {
    content: " ";
    display: block;
    width: 75px;
    height: 75px;
    margin: 1px;
    border-radius: 50%;
    border: 8px solid #337ab7;
    border-color: #337ab7 transparent #337ab7 transparent;
    animation: loading-ring 1.2s linear infinite;
}

@keyframes loading-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.dt-buttons {
    text-align: right;
    margin: 2em 0 1em 0;
}

#gfa-list_wrapper {
    margin-bottom: 1em;
}

table#gfa-list {
	max-width: 100vw;
}

table#gfa-list th {
	white-space: nowrap;
}

#legend-container {
    font-size: 0.75em;
    columns: 5;
    margin: 0 0 2em 0;
    padding: 1em;
    background-color: #f7f7f7;
    border-radius: 25px;
    border: 1px solid #ccc;
}

#legend-container > dl > div {
    break-inside: avoid;
}

#footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid #ccc;
    padding: 2em 0;
    background-color: #000;
    color: #fff;
    min-height: 10vh;
    margin-top: 2em;
}

#footer a {
    color: #fff;
    text-decoration: underline;
}

#footer div {
    /* white-space: pre; */
    display: flex;
    flex-direction: row;
    align-items: center;
}

#footer span {
    white-space: nowrap;
}

/* fix for datatables page length select svg in Firefox */
@-moz-document url-prefix() {
    .dataTables_length > label > .form-select {
        background-position: right .35rem center;
    }
}

@media only screen and (min-device-width: 320px) and (max-width: 480px) {
    #header img {
        width: 80vw;
        height: auto;
    }

    #footer div {
        display: flex;
        flex-direction: column;
    }

    #header img {
        content: url("/img/cu-anschutz-logo-condensed-dark.png");
        width: 60vw;
    }

    .pagination {
        width: 90vw;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 0;
    }

    #legend-container {
        columns: 2;
    }
}
