/* ----- CSS Variables ----- */

:root {
    --heading-font: "Manrope", sans-serif;
    --body-font: "Roboto", sans-serif;

    --primary-color: #082841;
    --primary-offset-color: #407bb3;

    --secondary-color: #DEF5FF;

    --alt-color: #1a71f3;

    --highlight-color: #13633e;
    --highlight-offset-color: #3fb67e;

    --light-color: #FAFAFA;
    --dark-color: #070707;

    --grey-color: #5f676e;
    --grey-offset-color: #a8b2b9;
}

/* ----- General CSS ----- */

body {
    font-size: 1rem;
    font-family: var(--body-font);
    color: var(--dark-color);
}

h1,
h2,
h3 {
    font-family: var(--heading-font);
}

main {
    /* Compensate for fixed navbar */
    padding-top: 5.8rem;
    padding-bottom: 5rem;
    background-color: var(--light-color);
    min-height: 100vh;
}

.main-free {
    padding-top: 8rem;
}

.table {
    margin-bottom: 0;
}

.hidden {
    display: none;
}

/* Scroll Button */
#scroll-top {
    display: none;
    position: fixed;
    cursor: pointer;
    bottom: 20vh;
    right: 0.5rem;
    z-index: 999;
}

#scroll-top i {
    font-size: 2rem;
    color: var(--alt-color);
}

/* ----- General Buttons ----- */

.button {
    display: inline-block;
    padding: 0.3rem 1.1rem;
    text-decoration: none;
    box-sizing: border-box;
    margin: 0;
    border-radius: 1.5rem;
    box-shadow: 0px 2px 3px rgba(0, 0, 0, .4), inset 0px 1px 0px rgba(255, 255, 255, .7), inset 0px 0px 3px rgba(255, 255, 255, .5);
}

.button-primary {
    border: 2px solid var(--primary-color);
    background: linear-gradient(0deg,
            var(--primary-color),
            var(--primary-offset-color));
    color: var(--light-color);
}

.button-primary:hover {
    background-image: none;
    background-color: var(--light-color);
    color: var(--primary-color);
}

.button-save {
    border: 2px solid var(--highlight-color);
    background: linear-gradient(0deg,
            var(--highlight-color),
            var(--highlight-offset-color));
    color: var(--light-color);
}

.button-save:hover {
    background-image: none;
    background-color: var(--light-color);
    color: var(--highlight-color);
}

.button-cancel {
    border: 2px solid var(--grey-color);
    background: linear-gradient(0deg,
            var(--grey-color),
            var(--grey-offset-color));
    color: var(--light-color);
}

.button-cancel:hover {
    background-image: none;
    background-color: var(--light-color);
    color: var(--grey-color);
}

.cta {
    font-size: 0.9rem;
    width: fit-content;
    padding: 0 0.8rem;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, .4), inset 0px 1px 0px rgba(255, 255, 255, .7), inset 0px 0px 3px rgba(255, 255, 255, .5);
}

.language-btn {
    border: none;
    color: var(--primary-color);
    background-color: transparent;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

.language-btn img {
    height: 1.1rem;
    width: auto;
    margin-right: 0.4rem;
}

/* ----- Navbar ----- */

nav {
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
}

nav i {
    font-size: 1.25rem;
}

nav .burger-icon {
    font-size: 1.5rem;
}

nav a {
    text-decoration: none;
    color: white;
}

#logo {
    height: 2rem;
    width: auto;
}

.leave-notify {
    width: 0.9rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #FF0018;
    border: 1px solid var(--primary-color);
    z-index: 99;
}

.sub-nav {
    background-color: transparent;
    padding: 0.3rem 0;
}

/* ----- Side Navbar ----- */

.side-nav {
    display: none;
    position: fixed;
    top: 3.5rem;
    bottom: 0;
    left: 0;
    width: 9rem;
    background-color: var(--light-color);
}

.side-nav .list-group-item {
    background-color: var(--light-color);
}

.side-nav>div {
    margin-top: 2.8rem;
}

.side-nav .list-group-item.active {
    background-color: var(--primary-color);
}

/* Compensate for fixed side navbar */
.content-wrapper {
    flex: 1;
    min-width: 0;
}


/* ----- Django Messages ----- */

#messages {
    position: fixed;
    top: 5.6rem;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 9999;
    font-size: 1rem;
}

.alert-success {
    background-color: #198754;
    color: var(--light-color);
    border: none;
}

.alert-danger {
    background-color: #DC3545;
    color: var(--light-color);
    border: none;
}

.alert-warning {
    background-color: #FFC107;
    color: var(--dark-color);
    border: none;
}

.alert-info {
    background-color: #0DCAF0;
    color: var(--dark-color);
    border: none;
}

#messages .alert {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----- Crispy Forms ----- */

.form-label {
    color: var(--primary-color);
}

.form-control,
.form-select {
    padding: 0.2rem 0.7rem;
}

/* ----- Footer ----- */

footer {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.9rem;
    z-index: 99;
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.3);
}

footer a {
    text-decoration: none;
    color: var(--dark-color);
}

footer ul li {
    margin-top: 0.3rem;
}

.footer-heading {
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.footer-bottom {
    font-size: 0.85rem;
}

/* allauth */

.allauth a {
    text-decoration: none;
    font-weight: 700;
}

#id_password_helptext {
    margin-top: 1rem;
}

/* ----- Media Queries ----- */


/* Small screen sizes - 360px up*/
@media screen and (min-width: 360px) {
    .main-free {
        padding-top: 7rem;
    }
}

/* Small screen sizes - 420px up*/
@media screen and (min-width: 420px) {
    footer ul {
        display: inline-flex;
    }
}

/* Medium screen sizes - 768px up*/
@media screen and (min-width: 768px) {
    #messages {
        font-size: 1.2rem;
    }

    #messages i {
        font-size: 1.5rem;
    }
}

/* XX-Large screen sizes - 1600px up*/
@media screen and (min-width: 1600px) {
    #scroll-top {                                
        right: 5vw;        
    }
}