/* Color Variables really cool to use when working with a color scheme */
:root {
    --klar-sidebar-bg: #FDFEFF;
    --klar-sidebar-text: #3D4752;
    --klar-sidebar-active-text: #3A70B2;
    --klar-sidebar-link-hover-bg: #E9EEF5;
    --klar-logout-text: #C82333;
    --klar-main-bg: #FFFFFF;
    --klar-heading-color: #2C3E50;
    --klar-body-text-color: #343A40;
    --klar-primary-blue: #3A70B2;
    --klar-button-text-color: #FFFFFF;
    --klar-focus-outline-color: #0056b3;

    --libre-franklin: 'Libre Franklin', sans-serif;
    --source-sans-pro: 'Source Sans Pro', sans-serif;
    --base-font-size: 1.4rem;
}

/* Bigger text on the tippy toolyt */
.tippy-box .tippy-content {
    font-size: 1.5em;
}

body {
    font-family: var(--source-sans-pro);
    font-weight: 400;
    line-height: 1.7;
    background-color: var(--klar-main-bg);
    color: var(--klar-body-text-color);
    font-size: var(--base-font-size);
}

h1, h2, h3, h4, h5, h6, .logo-text, .hero-title, .hero-subtitle {
    font-family: var(--libre-franklin);
    font-weight: 700;
    color: var(--klar-heading-color);
}

h1, .display-4 {
    font-size: calc(var(--base-font-size) * 2.2);
}

h2, .hero-title {
    font-size: calc(var(--base-font-size) * 1.9);
}

h3, .hero-subtitle {
    font-size: calc(var(--base-font-size) * 1.6);
}

.logo-text {
    color: var(--klar-primary-blue);
    font-size: calc(var(--base-font-size) * 1.8);
}

/* SIDE BAR STUFF */
.sidebar {
    background-color: var(--klar-sidebar-bg);
    max-height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dee2e6;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    overflow-y: auto;
}

.sidebar .logo-container {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.sidebar .nav-menu {
    padding-left: 1rem;
    padding-right: 1rem;
}

.sidebar .nav-link {
    color: var(--klar-sidebar-text);
    padding: 0.75rem 1.125rem;
    font-family: var(--source-sans-pro);
    font-weight: 600;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    font-size: calc(var(--base-font-size) * 0.95);
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
    background-color: var(--klar-sidebar-link-hover-bg);
    color: var(--klar-sidebar-active-text);
    text-decoration: none;
    box-shadow: 0 0 0 0.125rem var(--klar-focus-outline-color);
}

.sidebar .nav-link.active {
    color: var(--klar-sidebar-active-text);
    background-color: var(--klar-sidebar-link-hover-bg);
    font-weight: 700;
}

.sidebar .sidebar-footer {
    margin-top: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

.sidebar .sidebar-footer .nav-link {
    font-size: calc(var(--base-font-size) * 0.9);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.sidebar .sidebar-footer .nav-link.logout {
    color: var(--klar-logout-text);
    font-weight: 700;
}

.sidebar .sidebar-footer .nav-link.logout:hover,
.sidebar .sidebar-footer .nav-link.logout:focus {
    color: #a71d2a;
    background-color: #f8d7da;
    box-shadow: 0 0 0 0.125rem var(--klar-focus-outline-color);
}

/* BANNER */
.hero-video {
    display: block;
    width: 100%;
    min-height: 300px;
    max-height: 65vh;
    object-fit: cover;
    position: relative;
    z-index: 1;
}


.overlay-svg-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;

    height: 50%;

    object-fit: cover;
    z-index: 2;
}

.hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
    z-index: 3;
}

/* TEXT CONTAINER */
.hero-content h1 {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


.hero-description {
    margin-bottom: 2rem;
}

/* BUTTON VARIABLE */
.btn-klar-primary {
    background-color: var(--klar-primary-blue);
    border: 2px solid var(--klar-primary-blue);
    color: var(--klar-button-text-color);
    font-family: var(--source-sans-pro);
    font-weight: 700;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
    font-size: calc(var(--base-font-size) * 1.0);
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.btn-klar-primary:hover,
.btn-klar-primary:focus {
    background-color: #2F5A90;
    border-color: #2A5080;
    color: var(--klar-button-text-color);

    box-shadow: 0 0 0 0.125rem var(--klar-focus-outline-color);
}


/* Image Wrapper for Robot Portal */
.image-wrapper {
    position: relative;
    max-width: 500px;
    width: 70%;
    aspect-ratio: 500 / 300;

}

.robot-img {
    position: absolute;
    bottom: -115px;
    right: 0;
    width: 80%;
    height: auto;
    transform: translateX(-15%);
    z-index: 5;
    animation-name: robotHover;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}


/* Footer */
.site-footer {
    background-color: var(--klar-sidebar-bg);
    color: var(--klar-sidebar-text);
    font-size: 0.95rem;

    position: relative;
    z-index: 10;
    margin-top: -15px;
}

/* Hover effect for robot */
@keyframes robotHover {
    0% {
        transform: translateX(-15%) translateY(0);
    }
    50% {
        transform: translateX(-15%) translateY(-15px);
    }
    100% {
        transform: translateX(-15%) translateY(0);
    }
}

.portal-img {
    position: absolute;
    bottom: -125px;
    right: 0;
    width: 60%;
    height: auto;
    transform: translateX(-10%);
    z-index: 4;
}


/* Mobile Responsiveness Defineret */
@media (max-width: 991.98px) {
    .sidebar {
        height: auto;
        position: static;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .robot-img, .portal-img {
        z-index: -1;
    }

    .portal-img {
        z-index: -2;
    }
}


@media (max-width: 767.98px) {
    /* Bootstrap's md breakpoint */
    .hero-content h1 {
        font-size: calc(var(--base-font-size) * 1.8);
    }

    .hero-content p {
        font-size: calc(var(--base-font-size) * 0.95);
    }

    .sidebar .logo-container,
    .sidebar .nav-menu,
    .sidebar .sidebar-footer {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .btn-klar-primary {
        padding: 0.5rem 1.25rem;
        font-size: calc(var(--base-font-size) * 0.9);
    }

}