:root {
    font-family: "Source Code Pro", monospace;
}

u {
    text-decoration: underline;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

main {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

aside {
    height: 100%;
    background-color: rgb(240, 240, 240);
    display: flex;
    flex-direction: column;
    border-right: 3px solid rgb(180, 180, 180);
}

aside h1 {
    margin: 0.75rem 3rem 1rem 0.75rem;
    padding: 0rem 0rem 0.3rem 0.5rem;
    border-bottom: 2px solid rgb(20, 20, 20);
}

aside>ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

aside>ul::-webkit-scrollbar-track {
    background-color: rgb(230, 230, 230);
}

aside>ul::-webkit-scrollbar {
    width: 10px;
}

aside>ul::-webkit-scrollbar-thumb {
    background-color: rgb(177, 177, 177);
}

aside>ul::-webkit-scrollbar-thumb:hover {
    background-color: rgb(87, 87, 87);
}

aside>ul ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 10rem;
    transition: max-height 0.5s ease-in-out;
}

aside li {
    cursor: pointer;
}

aside li:not(:has(ul)) {
    padding: 0.7rem 1.25rem;
    padding-right: 1rem;
}

aside li:not(:has(ul)):hover {
    background-color: rgb(220, 220, 220);
}

aside li:has(ul) div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

aside li:has(ul)>div {
    padding: 0.7rem 1.25rem;
    padding-right: 1rem;
}

aside li:has(ul)>div:hover {
    background-color: rgb(220, 220, 220);
}

aside li:has(ul)>div svg {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 5px;
    transition: transform 0.25s ease-in-out;
}

aside li:has(ul)>div svg:hover {
    background-color: rgb(200, 200, 200);
}

aside li:has(ul)>div svg.dropdown-closed {
    transform: rotate(-90deg);
}

aside li:has(ul) li {
    padding-left: 3rem;
    padding-right: 2rem;
}

.sidebar-selected {
    background-color: rgb(162, 220, 243);
}

.sidebar-selected:hover {
    background-color: skyblue;
}

aside #cv {
    background-color: rgb(245, 245, 245);
    margin-top: auto;
    padding: 1rem 0 2rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

aside #cv #cv-download {
    font-weight: bold;
    font-size: 1.25rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

aside #cv #cv-download svg {
    width: 1.25rem;
    height: 1.25rem;
}

aside #cv #cv-lang {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
}

aside #cv #cv-lang a {
    color: black;
    text-decoration: none;
    background-color: rgb(210, 210, 210);
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-weight: normal;
    font-size: 1rem;
    cursor: pointer;
}

section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    background-color: rgb(230, 230, 230);
    width: 100%;
    overflow-x: auto;
}

header::-webkit-scrollbar-track {
    background-color: rgb(230, 230, 230);
}

header::-webkit-scrollbar {
    height: 6px;
}

header::-webkit-scrollbar-thumb {
    background-color: rgb(121, 121, 121);
}

header::-webkit-scrollbar-thumb:hover {
    background-color: rgb(50, 50, 50);
}

header ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    list-style: none;
}

header li {
    text-align: center;
    padding: 0.6rem 0.8rem;
    background-color: rgb(210, 210, 210);
    display: flex;
    flex-direction: row;
    border-bottom: 3px solid rgb(180, 180, 180);
    border-right: 3px solid rgb(180, 180, 180);
    cursor: pointer;
}

header li:hover {
    background-color: rgb(230, 230, 230);
}

header li span {
    margin: 0 0.5rem 0 0.25rem;
}

header li svg {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 5px;
}

header li svg:hover {
    background-color: rgb(220, 220, 220);
}

.tab-selected {
    background-color: white;
    border-bottom: none;
}

.tab-dragging {
    opacity: 0.2;
}

#main-content {
    position: relative;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow: hidden;
}

#page-intro {
    display: flex;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

#tab-pages {
    display: none;
    width: 100%;
    height: 100%;
}

.page {
    display: none;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.page::-webkit-scrollbar-track {
    background-color: rgb(230, 230, 230);
}

.page::-webkit-scrollbar {
    width: 15px;
}

.page::-webkit-scrollbar-thumb {
    background-color: rgb(121, 121, 121);
}

.page::-webkit-scrollbar-thumb:hover {
    background-color: rgb(50, 50, 50);
}

#copyright {
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 0;
    padding: 0.75rem;
    background-color: rgb(242, 242, 242);
    border-top-left-radius: 15px;
    z-index: 99;
}

#copyright svg {
    height: 1rem;
    width: 1rem;
}

.decorative {
    position: absolute;
    z-index: -1;
    animation: float 8s ease-in-out infinite;
    color: rgba(90, 170, 224, 0.3);
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    33% {
        transform: translateY(-1rem);
    }

    66% {
        transform: translateX(-1rem);
    }

    100% {
        transform: translateY(0);
    }
}

@media screen and (max-width: 1300px) {
    :root {
        font-size: 14px;
    }
}