body {
    --bs-font-sans-serif: 'Comfortaa', sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

main {
    /*margin-top: 50px;*/
}

nav {
    background-color: #1a1a1a;
}

#hslu-logo {
    display: none;
}

#nav-top {
    max-height: 59px !important;
}

.nav-link {
    border-radius: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    color: lightgrey !important;
}

.nav-item, .dropdown-item {
    color: lightgrey !important;
}

#sai-nav-top {
    z-index: 9999999;
}

ul.navbar-nav {
    text-align: right;
    background-color: #1a1a1a;
}

.nav-link:hover {
    background-color: #2b3035;
    color: #80b821 !important;
    /*transform: scale(1.05);*/
}

.dropdown-item:hover {
    background-color: #2b3035;
    color: #80b821 !important;
}

li {
    padding-bottom: 3px;
}

/* comfortaa-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/comfortaa-v45-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ url('../fonts/comfortaa-v45-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* comfortaa-500 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/comfortaa-v45-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* comfortaa-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/comfortaa-v45-latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ url('../fonts/comfortaa-v45-latin-600.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* comfortaa-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/comfortaa-v45-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */

}

#index-main {
    min-height: 90vh;
    height: 90vh;
    position: absolute;
    top: 0;
    left: 0;
    background: #0d1117;
}

#video-div {
    top: 0;
    left: 0;
    position: relative;
    background: #0d1117;
}

#video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 500px;
    background: #0d1117;
}

#intro {
    top: auto;
    left: auto;
    width: 580px;
    position: absolute;
}

#profile-pic {
    width: 100%;
}

/* Typing effect */
#typed::after {
    content: "|";
    display: inline;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Settings for small screens */
@media only screen and (max-width: 600px) {
    html {
        font-size: 14px;
    }

    #intro {
        top: calc(100vh / 5);
        left: auto;
        width: 90vw;
        position: absolute;
    }

}

@media only screen and (max-width: 400px) {
    html {
        font-size: 12px;
    }

}

@media only screen and (max-width: 300px) {
    html {
        font-size: 10px;
    }
}

/* Background video */
#video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    display: none;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-wrapper::before {
    content: "";
    display: block;
    padding-top: 31%; /* 16:9 aspect ratio */
    overflow: hidden;
}

iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

/* transitions */

.fade-out {
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Login and Sign Up Forms */
.form-signin {
    max-width: 330px;
    padding: 1rem;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.logo_sai {
    display: none;
}

[data-bs-theme="dark"] {
    .logo_sai {
        content: url("/static/logo/Logo-color-white.svg");
    }

    #start-chat-msg, #offcanvasNavbarLabel, .offcanvas-header, .bi-list {
        color: white !important;
    }
}

[data-bs-theme="light"] {
    .logo_sai {
        content: url("/static/logo/Logo-color-black.svg");
    }

    #start-chat-msg {
        color: black !important;
    }

    #offcanvasNavbarLabel, .offcanvas-header, .bi-list {
        color: white !important;
    }

}

.offcanvas .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    --bs-btn-close-white-filter: invert(false);
}

/* Logo Animations */
#logo-color-white-u-chwank {
    animation-name: logo-color-white-u-chwank_f_o, logo-color-white-u-chwank_s_do;
    animation-duration: 6500ms;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
    animation-direction: normal;
    animation-iteration-count: 1;
}

@keyframes logo-color-white-u-chwank_f_o {
    0% {
        fill-opacity: 0
    }
    35.384615% {
        fill-opacity: 0
    }
    60% {
        fill-opacity: 1
    }
    100% {
        fill-opacity: 1
    }
}

@keyframes logo-color-white-u-chwank_s_do {
    0% {
        stroke-dashoffset: 2532.8
    }
    40% {
        stroke-dashoffset: 0
    }
    100% {
        stroke-dashoffset: 0
    }
}

#logo-color-white-S-blue {
    animation: logo-color-white-S-blue_f_o 6500ms linear 1 normal forwards
}

@keyframes logo-color-white-S-blue_f_o {
    0% {
        fill-opacity: 0
    }
    33.846154% {
        fill-opacity: 0
    }
    46.153846% {
        fill-opacity: 1
    }
    100% {
        fill-opacity: 1
    }
}

#logo-color-white-S-green {
    animation: logo-color-white-S-green_f_o 6500ms linear 1 normal forwards
}

@keyframes logo-color-white-S-green_f_o {
    0% {
        fill-opacity: 0
    }
    44.615385% {
        fill-opacity: 0
    }
    55.384615% {
        fill-opacity: 1
    }
    100% {
        fill-opacity: 1
    }
}

#logo-color-white-u-i {
    animation: logo-color-white-u-i_c_o 6500ms linear 1 normal forwards
}

@keyframes logo-color-white-u-i_c_o {
    0% {
        opacity: 0
    }
    87.692308% {
        opacity: 0
    }
    100% {
        opacity: 1
    }
}

#logo-color-white-u-a {
    animation: logo-color-white-u-a_c_o 6500ms linear 1 normal forwards
}

@keyframes logo-color-white-u-a_c_o {
    0% {
        opacity: 0
    }
    80% {
        opacity: 0
    }
    100% {
        opacity: 1
    }
}

#logo-color-white-u-dot {
    animation: logo-color-white-u-dot_c_o 6500ms linear 1 normal forwards
}

@keyframes logo-color-white-u-dot_c_o {
    0% {
        opacity: 0
    }
    67.692308% {
        opacity: 0
    }
    81.538462% {
        opacity: 1
    }
    100% {
        opacity: 1
    }
}

.dropdown-menu {
    min-width: 190px;
    text-align: right;
}

#chat-message-submit {
    font-size: 1rem;
}

#chat-message-input {
    height: 100px;
}

#statusForm {
    height: calc(100vh - 100px);
}

#profile-name {
    padding-bottom: 0;
    padding-top: 0.8rem;
}

.hide-if-small {
    display: block;
}


.show-if-small {
    display: none;
}


.sai-100 {
    height: calc(100vh - 50px);
}

.sai-text-white {
    color: lightgrey !important;
}

.sai-navbar-toggler-icon {
    color: lightgrey !important;
    border: 1px solid lightgrey !important;
    border-radius: 5px;
    padding: 0.25rem;
}

.sai-nav-button {
    background-color: #1a1a1a;
    appearance: unset !important;
}

#sai-nav-top {
    color: lightgrey;
    --bs-offcanvas-color: lightgrey;
    height: 60px !important;
}

footer {
    z-index: 9999 !important;
}

.nav-link {
    line-height: 1.3;
}

.nav-link br {
    margin-bottom: -0.5rem; /* Adjust this value to reduce the space */
    display: block;
    line-height: 0;
}

#hslu-logo-long {
    margin-top: 5px;
    margin-left: 20px;
    margin-right: 50px;
    height: 38px;
}

#servicesDropdown {
    margin-top: 20px;
}