/*---------- SIDEBAR MENU -----*/
*,
*::after,
*::before {
    box-sizing: border-box;
}

body {
    margin: 0;
}

:root {
    --bar-width: 60px;
    --bar-height: 8px;
    --hamburger-gap: 6px;
    --foreground: #D3D3D3;
    --background: #00468B;
    --hamburger-margin: 8px;
    --animation-timing: 200ms ease-in-out;
    --hamburger-height: calc(var(--bar-height) * 3 + var(--hamburger-gap) * 2);
}

.hamburger-menu {
    --x-width: calc(var(--hamburger-height) * 1.41421356237);
    display: flex;
    flex-direction: column;
    gap: var(--hamburger-gap);
    width: max-content;
    position: fixed; 
    z-index: 4;
    cursor: pointer;
    padding: 1%;
    top: 5%;
    left: var(--hamburger-margin); /* Keep it aligned to the left */
    transform: translateY(-50%);
}



.hamburger-menu:has(input:checked) {
    --foreground: #00468B;
    --background: #D3D3D3;
}

.hamburger-menu:has(input:focus-visible)::before,
.hamburger-menu:has(input:focus-visible)::after,
.hamburger-menu input:focus-visible {
    border: 1px solid var(--background);
    box-shadow: 0 0 0 1px var(--foreground);
}

.hamburger-menu::before,
.hamburger-menu::after,
.hamburger-menu input {
    content: "";
    width: var(--bar-width);
    height: var(--bar-height);
    background-color: var(--foreground);
    border-radius: 9999px;
    transform-origin: left center;
    transition: opacity var(--animation-timing), width var(--animation-timing),
        rotate var(--animation-timing), translate var(--animation-timing),
        background-color var(--animation-timing);
}

.hamburger-menu input {
    appearance: none;
    padding: 0;
    margin: 0;
    outline: none;
    pointer-events: none;
}



.hamburger-menu:has(input:checked)::before {
    rotate: 45deg;
    width: var(--x-width);
    translate: 0 calc(var(--bar-height) / -2);
}

.hamburger-menu:has(input:checked)::after {
    rotate: -45deg;
    width: var(--x-width);
    translate: 0 calc(var(--bar-height) / 2);
}

.hamburger-menu input:checked {
    opacity: 0;
    width: 0;
}

.sidebar {
    transition: transform var(--animation-timing);
    transform: translateX(-100%); /* Move it off-screen to the left */
    position: fixed;
    top: 0; /* Align the sidebar to the top of the screen */
    left: 0; /* Position it at the left side of the screen */
    padding: 0.5rem 1rem;
    padding-top: calc(var(--hamburger-height) + var(--hamburger-margin) + 1rem);
    height: 100%;
    width: 300px;
    background-color: var(--foreground);
    color: var(--background);
    min-height: 100vh; 
    z-index: 3;
}

.hamburger-menu:has(input:checked) + .sidebar {
    transform: translateX(0); 
}

/* Center and control the size of the logo */
#side-logo {
    display: flex;
    justify-content: center; /* Center horizontally */
    height: 100px;           /* Adjust the height to fit the sidebar space */
}

#small-logo {
    max-width: 100%;
    max-height: 100%;        /* Ensure the image scales properly */
    width: 100%;            /* You can adjust this to control the exact size */
    height: auto;
}

button.sibebar-text {
    font-size: 25px;
    color: #00468B;
    background-color: var(--foreground);
    margin-top: 15px;
    cursor: pointer;
    width: 250px;
    height: 50px;
    border: transparent;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar button.sibebar-text:hover {
    background-color: #00468B;
    /* Choose your highlight color */
    width: 100%;
    height: 50px;
    color: #D3D3D3;
}

.hamburger-menu:has(input:checked)+.sidebar {
    transform: translateX(0);
}

button.sidebar-text {
    font-size: 25px;
    color: #00468B;
    background-color: var(--foreground);
    margin-top: 15px;
    cursor: pointer;
    width: 250px;
    height: 50px;
    border: transparent;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar button.sidebar-text:hover {
    background-color: #00468B;
    width: 100%;
    height: 50px;
    color: #D3D3D3;
}
