/* Show navbar fixed to the top and add padding for body */
body {
    min-height: 15rem;
    padding-top: 4.5rem;
    background-color: #e2e2e3;
}

.center-block {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.footer {
    position: sticky;
}

/*fixes background in light mode*/
@media (prefers-color-scheme: light) {
    footer {
        background: #e2e2e3;
    }

    nav .navbar-toggler {
        background: lightgray;
    }

    .btn-management {
        color: black;        
    }
}

/* fixes dark css navbar to non-transparent background */
@supports (background-color: #222222) {
    *.navbar {
        background-color: #3b3b3b;
    }
}

.profile {
    width: 70%;
    margin: 0 auto;
    border: none;
}

.profile .row {
    min-height: 5cap;
    align-items: center;
    padding: 8px;
}

.profile .row:nth-child(odd) {
    background-color: #e2e2e3;
    border-radius: 5px;
}

/* increases background contrast */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #151515;
    }

    svg {
        fill: #cacaca;
    }

    .dropdown-menu {
        background-color: #3b3b3b;
    }

    .navbar-link {
        color: #cacaca;
    }

    .navbar-link:hover {
        color: white;
    }

    .profile .row:nth-child(odd) {
        background-color: #2b2b2b;
        border-radius: 5px;
    }

    .btn-management {
        color: white;        
    }
}

/* style links */
a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

    a:hover, a:focus {
        text-decoration: none;
    }

/* copy paste */
.target {
    border: solid 1px #aaa;
    min-height: 200px;
    width: 30%;
    margin-top: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: 300ms all;
    position: relative;
}
/* validation error - show red text*/
.field-validation-error {
    color: red;
    font-size: smaller;
}

/* buttons */
.btn-label {
    position: relative;
    left: -3px;
    display: inline-block;
    padding: 3px 9px;
    border-radius: 3px 0 0 3px;
}

.btn-labeled {
    padding-top: 0;
    padding-bottom: 0;
}


.navbar-link {
    text-decoration: none;
}

.home .card {
    min-width: 260px;
    width: 49%
}

.product-name, .login-text {
    display: block;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 23px;
    width: 23px;
    background-color: lightgrey;
    color: black;
    font-weight: 600;
    font-size: 70%;
    border-radius: 50%;
    z-index: 5;
}

/*Collapsing Navbar into smaller chunks*/
.nav-link {
    display: inline-flex;
    gap: 8px;
    align-content: center;
    align-items: center;
}

.nav-item {
    align-content: center;
/*    margin-right: 12px;*/
}

.nav-link img {
    min-height: 20px;
    min-width: 20px;
}

.in-collapsed {
    display: none;
}

@media only screen and (max-width: 1380px) {
    .login-text {
        display: none;
    }

    .login-img {
        display: block;
    }
}

@media only screen and (max-width: 1030px) {
    .product-img {
        display: none;
    }
}

@media only screen and (max-width: 790px) {
    .product-name {
        display: none;
    }

    .product-img {
        display: block;
    }

    .profile {
        width: 100%;
    }
}
    
@media only screen and (max-width: 775px) {
    .home .card {
        min-width: 100%;
    }

    .nav-item {
        margin-right: 0px;
    }    
}

@media only screen and (max-width: 575px) {
    .login-text, .product-name {
        display: block;
    }

    .in-collapsed, .in-collapsed a, .in-collapsed button {
        display: block;
        padding-left: 0;
    }

    nav .dropdown, .login-user {
        display: none;
    }

    .nav-link {
        width: 100%;
        height: 46px;
    }

    .dropdown-item {
        height: 41px;
    }

    .nav-link:hover, nav .dropdown-item:hover {
        background: rgba(10,88,202,.1);
        border-radius: 0;
    }

}

.home .card:hover {
    background-color: rgba(204, 204, 204, 0.1);
}

.list-group svg {
    width: 20px;
    height: 20px;
}

.btn-management {
    display: inline-block;        
    text-decoration: none;
    text-align: left;
    padding: 0;    
}
.editableTextArea {    
    field-sizing: content;
    min-height: 300px;
}

#siteVersion {    
    font-size: 10px;   
    cursor: default;
    filter: opacity(.5);
}