@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    margin: 0;
    padding: 0;
}

nav {
    display: flex;
    height: 5vh;
    align-items: center;
    justify-content: center;
    background-color: #111;
    box-shadow: #161616 0px 0px 20px;
    position: fixed;
    z-index: 1;
    top: 0;
    width: 100%;
}

nav a {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
    text-decoration: none;
    color: rgb(114, 114, 114);
    margin-left: 1rem;
    margin-right: 1rem;
    transition: 0.2s;
}

nav a:hover {
    text-decoration: underline;
    color: transparent;
    background: linear-gradient(to right, rgb(160, 160, 160), rgb(232, 232, 232));
    background-clip: text;
    transition: 0.2s;
}

footer {
    position: fixed;
    bottom: 0;
    height: 4vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, white, black);
    width: 100%;
}

footer a {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
    text-decoration: none;
    color: transparent;
    background: linear-gradient(to right, rgb(41, 41, 41), rgb(71, 71, 71));
    background-clip: text;
    margin-left: 1rem;
    margin-right: 1rem;
    transition: 0.2s;
}

footer a:hover {
    color: rgb(28, 28, 28);
    transition: 0.2s;
}

.sidepanel {
    width: 27vw;
    height: 100vh;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;

    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;

    background: linear-gradient(to right, #d4d4d4, rgb(155, 155, 155));
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 60px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidepanel */
}
.sidepanel[data-hidden="true"] {
    width: 0;
}
.sidepanel[data-hidden="false"] {
    width: 27vw;
}
.sidepanel *[data-content] {
    padding: 8px 8px 8px 32px;
}
.sidepanel a {
    text-decoration: none;
    padding: 8px 8px 8px 32px;
    font-size: 25px;
    color: #221717;
    display: block;
    transition: 0.3s;
}
.sidepanel a:hover {
    color: #ab8989;
    
}  
.sidepanel .closeBtn {
    position: absolute;
    top: 2vh;
    right: 25px;
    font-size: 36px;
    margin-left: 0;   
    padding: 0;
    height: auto;
    width: auto;
    line-height: 24.13px;
}
.sidepanel .closeBtn:hover { 
    line-height: 24.13px;
    /* transform: rotate(-360deg); */
    transform-origin: center;
}

.openBtn {
    font-size: 20px;
    cursor: pointer;
    background-color: #111;
    color: white;
    padding: 10px 15px;
    border: none;
    position: fixed;
    left: 0;
    bottom: 0;
    margin-bottom: 10px;
    margin-left: 10px;
}

.openbtn:hover {
    background-color: #444;
}

main {
    margin-top: 4vh;
    display: flex;
    height: 100vh;
}
.sidepanelDiv {
    width: 27vw;
    display: flex;
    transition: 0.5s;
    
}
.sidepanelDiv[data-hidden="true"] {
    transition: 0.5s;
    width: 0;
}

.app {
    background: linear-gradient(to right, grey, white);
    left: 0;
    padding: 0;
    margin: 0;
    height: auto;
    transition: 0.5s;

}
.app[data-desplaced="true"] {
    width: calc(100% - 27vw);
    /* background-color: #e0e0e0; */
}
.app[data-desplaced="false"] {
    width: 100%;
    left: 0;
    transition: 0.5s;
}

.app > * {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media only screen and (max-width:768px) {
    .sidepanel {
        width: 0;
    }
    .sidepanel[data-hidden="true"] {
        width: 0;
    }
    .sidepanel[data-hidden="false"] {
        width: 100%;
    }
    .sidepanelDiv {
        display: flex;
        position: absolute;
        background-color: #444;
    }
    .app {
        width: 100%;
    }
}