@font-face {
    font-family: 'PetitaMedium';
    src: url('fonts/PetitaMedium.woff2') format('woff2');
    font-display: swap;
}

html, body {
    font-family: 'PetitaMedium', sans-serif;
    height: 100%;
    margin: 0;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar styles */

#sidebar {
    display: flex;
    position: relative;
    width: 350px;
    height: 100%;
    overflow-y: auto;
    overflow-x: visible;
    background: #f5f5f5;
    transition: width 0.5s ease;
}

#sidebar.collapsed {
    width: 0;
}

#listFiles {
    width: 90%;
    transition: opacity 0.5s ease;
}

#listFiles.hidden {
    opacity: 0;
    visibility: hidden;
}

.toggle {
    position: fixed;
    left: 350px;
    top: 48%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    border-radius: 4px;
    transition: left 0.5s ease;
    z-index: 1000;
    opacity: 0.4;
}

.toggle:hover {
    opacity: 0.7;
    cursor: pointer;
}

#sidebar.collapsed ~ #content .toggle,
#sidebar.collapsed .toggle {
    left: 1px;
}

.pdf.active {
    background: #d0e6ff;
}

.folder {
    font-weight: bold;
    color: rgb(0, 126, 149);
    padding: 10px;
}

.folder:hover {
    cursor: default;
}

ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    margin-left: 5px;
}

li {
    padding: 10px;
    cursor: pointer;
}

.pdf {
    display: block;
    padding-inline: 3px;
    font-size: 0.8em;
}

.pdf:hover {
    color: #c4c4c4;
}

.folder > ul {
    color: dimgrey;
}

/* Content styles */

#content {
    z-index: 2;
    flex: 1;
    transition: flex 0.5s ease;
}

.title {
    height: 3%;
    background-color: #E3DEDF;
    font-size: 1.5em;
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #c4c4c4;
}

#frame {
    height: 97%;
    overflow-x: auto;
}

iframe {
    width: 100%;
    height: 97%;
    border: none;
}

