html, body, header, .view {
    height: 100%;
}

.index-heading {
    font-family: "Barlow";
    font-weight: 700;
}

.not-visible {
    display: none;
}

@media (max-width: 740px) {
    html, body, header, .view {
        height: 1000px;
    }
}

@media (min-width: 800px) and (max-width: 850px) {
    html, body, header, .view {
        height: 650px;
    }
}

@media (min-width: 800px) and (max-width: 850px) {
    .navbar:not(.top-nav-collapse) {
        background: #1C2331 !important;
    }
}


/* Navbar animation */
.navbar {
    background-color: rgba(0, 0, 0, 0.3);
}

.top-nav-collapse {
    background-color: #1C2331;
}

/* Adding color to the Navbar on mobile */
@media only screen and (max-width: 768px) {
    .navbar {
        background-color: #1C2331;
    }
}

/* Footer color for sake of consistency with Navbar */
.page-footer {
    background-color: #1C2331;
}

.page-header {
    background-color: #1C2331;
}

.gradient-custom-2 {
    /* fallback for old browsers */
    background: #6495ED;

    /* Chrome 10-25, Safari 5.1-6 */
    background: -webkit-linear-gradient(to right, rgba(30, 81, 123, 1), rgba(44, 130, 201, 1));

    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: linear-gradient(to right, rgba(30, 81, 123, 1), rgba(44, 130, 201, 1));
}

/* TONI's CSS START */

:root {
    --app-blue: #013353;
    --app-blue-darker: #01202f;
    --app-red: #ED0F53;
    --bs-primary: var(--app-blue);
    --bs-secondary: var(--app-red);
    --bs-primary-rgb: 1, 52, 83;
    --bs-secondary-rgb: 237, 15, 83;
    --bs-link-color: var(--app-blue);
}

.app-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

.btn {
    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-disabled-bg: #013353;
    --bs-btn-disabled-border-color: transparent;
}

.btn-primary {
    --bs-btn-bg: var(--app-blue);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: var(--app-blue-darker);
}

.btn.btn-primary:active {
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}

.btn-info {
    --bs-btn-bg: #E6F1FF;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: #c3d6fc;
    --bs-btn-hover-border-color: transparent;
}

.btn.btn-info:active {
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}

.alert-info {
    --bs-alert-color: var(--app-blue);
    --bs-alert-bg: #E6F1FF;
    --bs-alert-border-color: #fff;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main-content {
    flex-grow: 1;
}

.validator-dl {
}

.validator-dl dt {
    font-weight: 400;
    color: var(--bs-secondary)
}

.validator-dl dd {
    font-weight: 600;
    font-size: 20px;
    color: var(--bs-primary)
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-label {
    font-size: 16px;
    font-weight: 500;
}

.form-check.form-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-control::file-selector-button {
    color: white;
    background-color: var(--bs-primary);
}

.form-control:hover:not(:disabled):not([readonly])::file-selector-button {
    background-color: var(--app-blue-darker);
}

.accordion {
    --bs-accordion-btn-color: var(--bs-primary);
    --bs-accordion-active-color: #e7f1ff;
    --bs-accordion-active-bg: var(--bs-primary);
}

/* Table search input*/
#search_bario {
    height: 100%;
    border-radius: 8px 0 0 8px;
}

#select_page_length {
    flex: 0 0 70px;
}

/* Upload progress bar */
.progress {
    --bs-progress-bar-bg: var(--app-red);
}

/* Table pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--app-blue);
    color: white!important;
    border-radius: 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--app-blue);
    color: white!important;
    border-radius: 8px;
}

/* Copied from validation_results.html file */

.hovertext {
    position: relative;
}

.hovertext:before {
    content: attr(data-hover);
    visibility: hidden;
    opacity: 0;
    width: 140px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 0;

    position: absolute;
    z-index: 1;
    left: auto;
    right: 0;
    bottom: 110%;
}

.hovertext:hover:before {
    opacity: 1;
    visibility: visible;
}

.hovertext_right {
    position: relative;
}

.hovertext_right:before {
    content: attr(data-hover);
    visibility: hidden;
    opacity: 0;
    width: 140px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 0;

    position: absolute;
    z-index: 1;
    left: 0;
    right: auto;
    bottom: 110%;
}

.hovertext_right:hover:before {
    opacity: 1;
    visibility: visible;
}

.lds-dual-ring.hidden {
    display: none;
}

/* Brankos no-wrap in table */
.geant-table {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/*Add an overlay to the entire page blocking any further presses to buttons or other elements.*/
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    z-index: 999;
    opacity: 1;
    transition: all 0.5s;
}

/*Spinner Styles*/
.lds-dual-ring {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 25% auto;
    border-radius: 50%;
    border: 6px solid #007bff;
    border-color: #007bff transparent #007bff transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.form-select {
    max-height: 146px;
    overflow: scroll;
    overflow-x: hidden;
    margin-top: 0;
}

.dropend .dropdown-toggle{
    color: black;
    margin-left: 0.5em;
}

.dropdown-item:hover{
    background-color: lightgray;
}

.dropdown .dropdown-menu{
    display: none;
}

.dropdown:hover > .dropdown-menu, .dropend:hover > .dropdown-menu{
    display: block;
    margin-top: .125em;
    margin-left: .125em;
}

@media screen and (min-width:796px){
    .dropend:hover > .dropdown-menu {
        position: absolute;
        top: 0;
        left: 100%;
    }
}