:root {
    --primary-light-color: #F9F9F9;
    --secondary-light-color: #65A98F;
    --secondary-light-color-dark: #266A50;

    --primary-dark-color: #222;
    --secondary-dark-color: #0f261f;

    --font-size-title: 64px;
    --font-size-subtitle: 36px;
    --font-size-subsubtitle: 24px;
}

.themed {
    transition: background-color 1s;
}

.icon {
    stroke: var(--secondary-light-color);
}

.primary__light {
    background-color: var(--primary-light-color);
    color: black;
}

.primary__dark {
    background-color: var(--primary-dark-color);
    color: #999;
}

.secondary__light {
    background-color: var(--secondary-light-color);
    color: white;
}

.secondary__dark {
    background-color: var(--secondary-dark-color);
    color: white;
}

.secondary__light--text {
    color: var(--secondary-light-color)
}

.secondary__dark--text {
    color: var(--secondary-dark-color)
}

body {
    margin: 0px;
    padding: 0px;

    font-family: "Inter", sans-serif;

    overflow: hidden;
}

sup {
    font-family: "Roboto Mono", monospace
}

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.semi-bold {
    font-weight: 600;
}

.extra-light {
    font-weight: 200;
}

.main {
    display: flex;

    height: 100lvh;
    width: 100lvw;

    z-index: -3
}

.main__left {
    display: flex;

    justify-content: space-around;
}

.main__progress {
    height: 50%;
    width: 5px;

    background-color: red;

    border-radius: 15px
}

.main__toc {
    display: flex;
    flex-direction: column;
    flex: 0 0 33%;
    align-items: center;
    gap: 10px;

    padding: 15px 0px 10px 0px;

    font-size: 32pt;

    /*
    overflow-x: hidden;
    overflow-y: scroll;
    */
}

.main__nightmode {
    display: flex;
    align-items: center;
    gap: 5px;

    width: min-content;

    padding-inline: 5px;

    border-radius: 15px;

    border: solid 2px black;
}

#nightmode {
    cursor: pointer;
}

#nightmode path {
    transition: fill 1s;
}

#lightmode {
    cursor: pointer;
}

#lightmode path {
    transition: fill 1s;
}

.main__chapter-container {
    display: flex;
    flex-direction: column;

    gap: 25px;

    width: 100%;

    padding: 0px 0px 0px 25px;

    overflow-x: hidden;
    overflow-y: scroll;
}

.main__chapter {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.chapter {
    display: flex;
}

.chapter:hover {
    cursor: pointer;
}

.chapter:hover > .extra-light {
    text-decoration: wavy var(--secondary-light-color-dark) underline;
}

.main__chapter-number {
    width: 50px;

    color: var(--secondary-light-color-dark);
}

.subchapter-number {
    width: 75px;
}

.subsubchapter-number {
    width: 90px;
}

.subchapter-name {
    text-wrap: nowrap;
}

.subchapter-container {
    display: flex;
    flex-direction: column;

    gap: 25px;

    margin-left: 25px;
}

.main__body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 15px;

    overflow-x: hidden;
    overflow-y: scroll;
}

.main__bar {
    position: sticky;
    top: 0;

    text-align: center;
}

.main__bar img {
    height: 250px;
    width: 250px;
}

/*
.main__section p {
    margin-left: 15px;
}
*/

.footnotes {
    border-top: solid thin var(--secondary-light-color);
    padding-top: 15px;
    font-size: small;
}

.main__section a {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.main__section a:hover {
    text-decoration: solid underline var(--secondary-light-color);
}

.section {
    margin-left: 15px;
}

.section--special {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section--special img {
    height: 75vh;
    width: 75%;
}

.subsection {
    margin-left: 15px;
}

.section__title {
    font-size: var(--font-size-title);
    margin: 30px 0px;
    font-weight: 600;

    scroll-margin-top: 25vh;
}

.thanks__aws {
    font-size: 12px;
}

.section__title--sub {
    font-size: var(--font-size-subtitle);
}

.section__title--subsub {
    font-size: var(--font-size-subsubtitle);
}

.self {
    border-radius: 15px;
}

.fig {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;

    width: 40%;
}

.section__image {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.section__image img {
    width: 40%;
}

.image {
    cursor: pointer;
}

.section__socials {
    display: flex;
    gap: 50px;
    align-items: center;
}

.section__socials img {
    width: 50px;
    height: 50px;
}

.clipboard {
    max-width: 45%;
    
    cursor: pointer;
}

.copied {
    opacity: 0;
    color: var(--secondary-light-color-dark);
    font-size: x-small;

    transition: opacity 1s;
}

.copied--visible {
    opacity: 1;

    transition: opacity 1s;
}

.bulge {
    animation: hey 0.5s ease-in-out infinite alternate;
}

.resume {
    text-decoration: solid var(--secondary-light-color-dark) underline !important;
}

.p__flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

@keyframes hey {
    0% {
        transform: translate(0px);
    }
    100% {
        transform: translate(15px);
    }
}

/*
@keyframes ahover {
    from {
        color: inherit;

        background-color: none;

        transform: scale(1)
    }
    to {
        color: white;
        
        background-color: var(--secondary-light-color);

        transform: scaleY(1.2);
    }
}
*/

@media screen and (max-width: 768px) {
    .main__toc {
        display: none;
    }
}