/* Button hover pop-out effect */
.btn.ecsa-blue-background,
.btn.ecsa-green-background {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 6px;
}

.btn.ecsa-blue-background:hover,
.btn.ecsa-green-background:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.ecsa-blue-background {
    background-color: #5aaadc !important;
    color: white !important;
    border-bottom: rgb(77, 147, 184) 2px solid;
}

/* --- ECSA Navbar - START --- */
.nav-socials-text-size {
    font-size: 0.8rem;
}
.nav-social-emote-size {
    font-size: 1rem;
}

.navbar-social-container {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.nav-social-container-desktop {
    justify-content: space-between;
}

.nav-social-container-mobile {
    justify-content: center;
}

.margin-left-1 {
    margin-left: 1rem;
}

.margin-right-1 {
    margin-right: 1rem;
}

.navbar-social-item {
    margin-right: 1.2rem;;
}

.navbar-border-line {
    border-bottom: 1px solid #dee2e6;
    margin-left: 1rem;
    margin-right: 1rem;
}

.navbar-navigation-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
}

.navbar-nav-selection-items {
    display: flex;
    flex-direction: row;
}

.navbar-nav-items-margin { margin-right: 1rem;}

/* drop down menus */
.dropbtn {
    background-color: #f5f5f5;
    color: black;
    font-weight: bold;
    padding: 16px;
    font-size: 16px;
    border: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    width: max-content;
    white-space: nowrap;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    transition: all 0.4s ease;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content i {
    color: #007bff;
    visibility: hidden;
}
/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    transition: all 0.4s ease;
    color: #007bff;
}

.dropdown-content a:hover i {
    visibility: visible;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}

.navbar-academy-button {
    transition: all 0.4s ease;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 1rem;
    border-bottom: solid 0.2rem #016de0;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-right: 1rem;
    margin-left: 1rem;
    box-shadow: 0px 4px 16px 0px rgba(0,0,0,0.2);
}

.navbar-academy-button i {
    color: white;
}

.navbar-academy-button:hover {
    transition: all 0.4s ease;
    background-color: #369cfc;
}

.navbar-academy-button:active {
    transform: scale(0.90);
}

.nav-color-black {
        color: black;
    }
.nav-color-blue:hover {
    color: #007bff;
}
.nav-space-imitation {
    width: 100%;
    height: 4rem;
    background-color: #f5f5f5;
}
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-submenu-content {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.dropdown-submenu-content a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: black;
    white-space: nowrap;
}

.dropdown-submenu-content a:hover {
    color: #007bff;
}

.dropdown-submenu:hover .dropdown-submenu-content {
    display: block;
}

.submenu-icon {
    margin-left: auto;
    padding-left: 8px;
    color: #007bff;
    transition: transform 0.3s ease;
}
@media (min-width: 1161px) {
    .navbar-mobile {
        display: none;
    }
    .navbar-desktop {
        position: fixed;
        top: 0;
        z-index: 1000;
        width: 100%;
        background-color: #f5f5f5;
        box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.1);
        display: block;
    }
}
@media (max-width: 1160px) {
    .navbar-desktop {
        display: none;
    }
    .navbar-mobile {
        position: fixed;
        top: 0;
        z-index: 1000;
        width: 100%;
        background-color: #f5f5f5;
        box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.1);
        display: block;
        
    }
    .mobile_navbar_pos{
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(25em, 100%);
        z-index: 10;
        border-left: 1px solid #dee2e6;
        box-shadow: 0px 4px 16px 0px rgba(0,0,0,0.2);
        background-color: white;
        transition: right 300ms ease-out;
        overflow-y: auto;
        scrollbar-width: none; /* Firefox scroll bar hide */
        padding-bottom: 20rem;
    }
    .mobile_navbar_pos::-webkit-scrollbar {
        width: 0;
        background: transparent;
    }
    .mobile_navbar_pos.show {
        right: 0;
    }
    
    #open-sidebar-button {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 1rem;
    }
    #close-sidebar-button {
        background: none;
        border: none;
        cursor: pointer;
        padding: 1rem;
    }
    .mobile-nav-logo-container {
        display: flex;
        justify-content: space-between;
    }
    .navbar-navigation-container {
        flex-direction: column;
        align-items: center;
    }
    .navbar-nav-selection-items {
        flex-direction: column;
        align-items: center;
    }
    /* drop down menus */
    .mobile-dropdown-button {
        background-color: white;
        color: black;
        font-weight: bold;
        padding: 16px;
        font-size: 16px;
        border: none;
        width: 310px;
        height: 50px;
        margin-top: 5px;
        border-bottom: 1px solid #dee2e6;
    }

    /* Dropdown Content (Hidden by Default) */
    .mobile-dropdown-content {
        max-width: 310px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 500ms ease-out, opacity 500ms ease;
        flex-direction: column;
    }
    .mobile-dropdown-content.active {
        max-height: 1000px;  /* You can adjust this to a value that fits your content */
        opacity: 1;
        
    }
    .mobile-submenu-dropdown-content {
        max-width: 310px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 500ms ease-out, opacity 500ms ease;
        flex-direction: column;
    }
    .mobile-submenu-dropdown-content.active {
        max-height: 1000px;  /* You can adjust this to a value that fits your content */
        opacity: 1;
        
    }
    .mobile-dropdown-button:hover {
        color: #007bff;
    }
    .mobile-buttons-borders {
        background-color: white;
        border: none;
        border-bottom: 1px solid #dee2e6;
    }

    .mobile-dropdown-button i {
        position: absolute;
        left: 70px;
        transition: transform 0.3s ease;
    }

    .mobile-dropdown-button.active i {
        transform: rotate(90deg);
    }

    .navbar-academy-button{
        margin-top: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    .nav-space-imitation {
        height: 2.3rem;
    }
}
.navbar-button-account-related {
    background-color: #007bff;
    color: white;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0.4rem;
    border-radius: 0.7rem;
    border: none;
    border-bottom: solid 0.2rem #016de0;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    }
    .navbar-button-account-related:hover {
    background-color: #369cfc;
    color: white;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    }
    
    /* Active effect */
    .navbar-button-account-related:active {
    transform: scale(0.90);
    }

    .buttons-container-margin-desktop {
    margin-right: 2.6rem;
    }

    .asd123 {
    display: inline-block;
    }

    .nav-logout-margin-mobile {
    margin-top: 6rem;
    }
/* --- ECSA Navbar - END --- */