.dropdown-item {
    align-items: center;
}

.dropdown-item>img {
    width: 20px;
}

.dropdown-menu {
    min-width: 1rem;
}

.navbar {
    height: 100px;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99;
}

#masterPlayPauseBtn {
    color: var(--text-main);
}

.navbar .btn:focus-visible,
.dropdown-toggle:focus-visible,
#backToTopBtn:focus-visible,
#masterPlayPauseBtn:focus-visible {
    outline: 2px solid var(--bs-secondary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-secondary-rgb), 0.5);
}

/* Socials Styling */
#mobile-social-controls {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#mobile-social-controls a {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

#mobile-social-controls a:hover {
    filter: brightness(1.2);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.navbar .btn-realm-wide,
.footer .btn-realm-wide {
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

.navbar .btn-realm-wide .btn-text,
.footer .btn-realm-wide .btn-text {
    margin-left: 4px;
}

/* Theme Option Styles */
.theme-option-dark {
    background-color: #424242;
    color: #ffffff;
}

.theme-option-light {
    background-color: #ac956b;
    color: #000000;
}

/* IDs */
#actualHomeBtnWide,
#actualHomeBtnSmall {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.2s ease;
}

#actualHomeBtnWide.active,
#actualHomeBtnSmall.active {
    opacity: 1;
    pointer-events: auto;
}

#actualHomeBtnWide:hover,
#actualHomeBtnSmall:hover {
    opacity: 1;
    filter: brightness(1.05);
}

#backToTopBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 99;
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#backToTopBtn i.fa-arrow-up {
    font-size: 1.2rem;
    margin: 0;
}

#backToTopBtn:hover,
#masterPlayPauseBtn:hover,
#actualAboutBtnWide:hover,
#actualProductsBtnWide:hover,
#actualRegisterBtnWide:hover,
#actualRegisterBtnSmall:hover,
#actualLoginBtnWide:hover,
#actualLoginBtnSmall:hover {
    filter: brightness(1.2);
    transition: filter 0.2s ease, transform 0.2s ease;
}

#fixed-controls-container {
    position: fixed;
    top: 85px;
    left: 33px;
    z-index: 98;
    display: flex;
    flex-direction: column;
    gap: 0;

    animation: dropIn 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 4.5s;
    opacity: 0;
}

/* Chain Visual - Hanging effect */
#fixed-controls-container::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    width: 100vh;
    height: 28px;
    background-repeat: repeat-x;
    background-position: center;
    background-size: contain;

    transform-origin: 0 50%;
    transform: rotate(90deg) translate(-50%, -50%);
    margin-left: -14px;

    z-index: -1;
    pointer-events: none;
    filter: brightness(0.8);
}

@keyframes dropIn {
    0% {
        transform: translateY(-300px);
        opacity: 0;
    }

    1% {
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

#fixed-controls-container>* {
    transition: opacity 0.3s, visibility 0.3s, max-width 0.3s, margin 0.3s, padding 0.3s;
    max-width: 50px;
}

#fixed-controls-container>*:hover,
#fixed-controls-container>*:has(.show) {
    opacity: 1;
}

#languageDropdown.dropdown-toggle::after,
#bd-theme.dropdown-toggle::after {
    display: none;
}



#fixed-controls-container:not(.settings-open):not(.ui-hidden-mode)>*:not(#mobileSettingsBtn):not(#backToTopBtn):not(#mobile-social-controls) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-width: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    border: none;
}

#fixed-controls-container.ui-hidden-mode #uiToggleBtn {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    max-width: 50px !important;
    max-height: 50px !important;
    display: flex !important;
}

#fixed-controls-container.ui-hidden-mode #mobileSettingsBtn {
    display: none !important;
}

#mobileSettingsBtn {
    display: flex !important;
    z-index: 99;
}

#backToTopBtn {
    position: relative;
}

#navbar-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

#navbar-content-wrapper {
    margin: 0 30px;
    width: 100%;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#navbarWide,
#navbarSmall {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
}

#navbarWide {
    display: none;
}

#navbarSmall {
    display: flex;
}

/* Media Queries */
@media (max-width: 775px) {

    #actualAboutBtnWide,
    #actualProductsBtnWide {
        display: none !important;
    }
}

@media (min-width: 576px) {
    #navbarWide {
        display: block;
    }

    #navbarSmall {
        display: none;
    }
}

@media (max-width: 576px) {

    #navbarSmall {
        width: 100%;
    }

    #navbarSmall>div:last-child {
        display: flex;
        justify-content: flex-end;
    }
}