body {
    max-width: 1100px;
    margin: auto;
    font-family: sans-serif;
    display: compact;
    background-color: #d1f3f8;
}

.input {
    line-height: 30px;
    width: 500px;
}

.form-control {
    border-radius: .150rem;
}

.btn {
    border-radius: .150rem;
}

h1 {
    font-size: 20px;
}

.card-body {
    padding: 3rem 18rem;
}

.input-group {
    display: block;
}

.bi {
    margin-left: 9.5rem;
}

.container-fluid {
    overflow: hidden;
    width: 100%;
}

.nav-item {
    margin-left: 0.5rem;
}

.navbar ul li a:not(.active) {
    background-image: linear-gradient(
        to right,
        #54b3d6,
        #54b3d6 50%,
        #7c7c7c 50%
    );
    background-size: 200% 100%;
    background-position: -100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease-in-out;
}

.bi:hover {
    background-image: linear-gradient(
        to right,
        #54b3d6,
        #54b3d6 50%,
        #7c7c7c 50%
    );
!important;
    background-size: 200% 100%;
    background-position: -100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease-in-out;
}

.bi:hover::before {
    width: 100%;
}

.bi:hover:not(.active) {
    background-position: 0;
}

a:hover::before {
    width: 100%;
}

.bi:hover {
    color: #54b3d6;
}

.check {
    margin-left: 11rem;
}

a:hover {
    color: #54b3d6;
}

ul li a:hover:not(.active) {
    background-position: 0;
}

/* TODO */

.navbar ul li a:active {
    color: #7c7c7c;
!important;
}


.navbar ul li a.active {
    color: #7c7c7c;
    border-bottom: 1px cornflowerblue solid;
!important;
}

p {
    /* padding-left: 20rem;*/
    float: right;
!important;
}

.nav.ul li {
    float: right;
}

#submit {
    padding-left: 10.5rem;
    padding-right: 10.5rem;
}

footer {
    margin: 10%;
}

@media (min-width: 310px) and (max-width: 890px) {

    body {
        max-width: 500px;
    }

    .card-body {
        margin: 5px;
        padding: 45px 5px 5px 5px;
        max-height: 550px;
        min-height: 250px;
    }

    #table-wrapper {
        position:relative;
    }
    #table-scroll {
        height:160px;
        overflow:auto;
        margin-top:20px;
    }

    #table-wrapper table thead th .text {
        position:absolute;
        top:-20px;
        z-index:2;
        height:20px;
        width:35%;
    }

    .bi {
        margin-left: 9.1rem;
    }

    .bi:hover {
        color: #54b3d6;
    }

    .check {
        margin-left: 6.9rem;
    }

    a:hover {
        color: #54b3d6;
    }

    .bi-exclamation-lg {
        margin-left: 2.5rem;
    }

    .nav-item {
        margin-left: 0.01rem;
    }

    p {
        padding-left: 0.1rem
    }

    #submit {
        padding-left: 7.5rem;
        /*padding-right: 7.5rem;*/
    }

    /*@media (min-width: 310px) and (max-height: 550px) {
        #submit {
            padding-left: 7.5rem;
            padding-right: 10.5rem;
            display: block;
            width: 85%;
            position: fixed;
            bottom: 20px;
        }
    }*/

    #navigation {
        padding: 2rem !important;
    }

    ul {
        margin-left: 0 !important;
        width: 20rem !important;
    }

    li {
        margin-right: auto;
    }

    img {
        display: none;
    }

    #logoutButton {
        padding-right: 1.5rem !important;
        padding-left: 1.5rem !important;
    }

    #case {
        padding: 1rem !important;
        max-height: 550px;
        min-height: 150px;
    }

}
