#menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 50%;
    z-index: 9997;
    background-color: rgba(218, 218, 218, 0.6);
    border-right: 2px solid #bdbdbd;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 2px 0 12px -2px rgba(72, 72, 72, 0.35);
}
.menu-bar-extended {
    width: 235px !important;
}
#menu-table {
    margin-left: 3px;
    margin-top: 7px;
}
#menu-table td {
    vertical-align: middle;
}
.menu-row {
    height: 4.8vh;
}
.menu-text {
    display: none;
    font-size: 16px;
    font-weight: bold;
    padding-left: 12px;
}
.menu-icon {
    margin-bottom: 4px;
}
#button-menu {
    cursor: pointer; 
    width: 26px;
}
#button-final-gallery{
    cursor: pointer; 
    width: 28px;
}
#button-achievements{
    cursor: pointer; 
    width: 28px;
}
#leaderboard-screen {
    display: none;
}
#button-settings{
    cursor: pointer; 
    width: 28px;
}
#button-progress{
    cursor: pointer; 
    width: 28px;
}
#button-challenges{
    cursor: pointer; 
    width: 28px;
}
#button-user-support{
    cursor: pointer; 
    width: 28px;
}
#settings-screen {
    display: none;
}
#settings-table {
    margin-left: 40px;
}
/* Slider Checkbox */
.slider-checkbox {
    position: relative;
    width: 46px;
    height: 24px;
        display: inline-flex;
    align-items: center;
    gap: 8px;
}

.label-text {
    margin-left: 40px;
    white-space: nowrap;
}

.slider-checkbox input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-checkbox .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: background-color 0.3s;
    border-radius: 24px;
}

.slider-checkbox .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: transform 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.slider-checkbox input:checked + .slider {
    background-color: #5900FF;
}

.slider-checkbox input:checked + .slider:before {
    transform: translateX(22px);
}

#button-leaderboard{
    cursor: pointer; 
    width: 28px;
}
#settings {
    width: 80%;
    max-width: 400px;
    height: fit-content;
    position: absolute;
    top: 51%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    padding-bottom: 50px;
}
#button-settings-close {
    font-size: 17px;
    background-color: rgb(105, 105, 105);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}
#btn-reset-game-popup {
    font-size: 17px;
    border: none;
    background-color: transparent;
    text-decoration: underline;
    color: #ae3636;
}
#reset-game-confirmation {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #828282;
}



#bottom-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    position: absolute;
    background-color: white;
    width: 100%;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 8888;
}

/* POPUP MESSAGES */
#img-popup-challenge {
    display: none;
    position: absolute;
    z-index: 99999;
    height: 140px;
    left: 10%;
}

@media (orientation: landscape) {
    #menu-bar {
        height: 100%;
        top: 0;
        left: 0;
    }
}
@media (orientation: portrait) {
    #settings {
        position: absolute;
        padding: 10px;
        padding-bottom: 40px;
    }
    #button-menu {
        padding-top: 27px;
    }
}