html,
body {
    height: 100%;
    margin: 0;
    width: 100vw;
    padding: 0;
    overflow-x: hidden;
    background-color: hsl(224, 10%, 10%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsl(224, 10%, 10%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    z-index: 9999;
}

.navbar, .phoneNavbar {
    background-color: hsl(224, 14%, 16%);
    border-bottom: 1px solid hsl(224, 10%, 10%);
    height: 100px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.page {
    display: flex;
    flex-direction: row;
    padding-top: 100px;
    height: calc(100vh - 100px);
}

.left {
    width: 23rem;
    position: fixed;
    top: 100px;
    left: 0;
    height: calc(100vh - 100px);
    background-color: hsl(224, 14%, 16%);
    border-inline-end: 1px solid hsl(224, 10%, 10%);
    transition: transform 0.3s ease-in-out;
}

.right {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: hsl(224, 10%, 10%);
    margin-left: 23rem; 
    padding: 20px;
}

.menu-button {
    display: none;
}


.main {
    display: flex;
    justify-content: center;
}

.texteDoc {
    color: white;
    font-size: 1.3em;
}

.texteDoc p {
    color: hsl(224, 6%, 77%);
}

.texteDoc a {
    color: hsl(224, 100%, 85%);
}

.texteDoc td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}


/* Mode mobile (max 768px) */
@media (max-width: 768px) {
    .left {
        width: 18rem; 
        transform: translateX(-100%); 
        position: fixed;
        height: calc(100vh - 100px);
    }

    .sidebar {
        width: 18rem;
    }

    .right {
        margin-left: 0; 
        width: 100%; 
        padding: 20px;
    }

    .menu-button {
        display: block;
        position: fixed;
        left: 0;
        top: 100px;
        color: white;
        background-color: transparent;
        border: none;
        padding: 10px 15px;
        font-size: 30px;
        cursor: pointer;
        z-index: 1001;
        transition: left 0.3s ease-in-out; 
    }

    .left.open + .menu-button {
        left: calc(100% - 64px); 
    }

    .left.open {
        transform: translateX(0);
    }
}