@import url('./webfont.css');

@import url('./global/scrollbar.css');
@import url('./animations/fade.css');

@import url('./components/scroller.css');
@import url('./components/navbar.css');
@import url('./components/sidebar.css');
@import url('./components/collapsible.css');
@import url('./components/searchbar.css');

@import url('./pages/home.css');
@import url('./pages/research.css');


:root {
    --load-time: 500ms;

    --background-color: rgb(213, 213, 213);
    --scroller-height: 0;

    --header-padding-top: 4vmin;
    --header-padding-bottom: 5vmin;
    --content-padding: 15vmin;

    --section-top: 0;
    --section-bottom: 0;
    --section-height: 0;

    --track-top: 0;
    --track-bottom: 0;
}

html,body,img,.colormode {
    transition: filter 1.0s ease;
}

html,body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: var(--background-color);
}

.content {
    position: fixed;

    overflow: hidden;

    box-sizing: border-box;
    height: 100%;
    width: 100%;

    padding: 0 var(--content-padding) !important;
}

div.header, div.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    position: fixed;
    box-sizing: border-box;
    background-color: var(--background-color);

    margin: 0;
    width: calc(100% - 2*var(--content-padding));
    padding-top: var(--header-padding-top);
    padding-bottom: var(--header-padding-bottom);

    z-index: 100;

    color: black;
    font-family: degular-display, sans-serif;
    font-weight: 400;
    font-style: normal;
}

div.footer {bottom: 0;}
.copyright {font-size: min(2vh, 3vmin)}

div.section {
    display: inline-block;
    position: relative;
    width: 100%;
    height: var(--section-height);

    padding-top: var(--section-top);
    padding-bottom: var(--section-bottom);

    margin: 0;
    z-index: 1;
    opacity: 0;

    scroll-snap-align: start;
    overflow-y: scroll;
}

.flex {
    display: flex !important;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: flex-start;
    overflow-y: scroll;
}

div.active, div.prev {
    opacity: 1 !important;
}

p, h1 {
    z-index: 3;
    animation: fadeIn-left-gap calc(var(--load-time)*2) ease-in-out;
}


h1 {
    font-family: century-old-style-std, serif;
    font-weight: 700;
    font-style: normal;
}

a.anchor {
    color: darkslateblue;
    font-size: 2.5vmin;
    font-family: degular, sans-serif;
    font-weight: 400;
    font-style: normal;
}

p {
    margin-bottom: 2vmin;
    font-size: 2.5vmin;

    font-family: degular, sans-serif;
    font-weight: 400;
    font-style: normal;

    display: block;
    overflow: auto;
    text-align: justify;
}

p.tight {
    font-family: degular-display, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2vmin;
}



@media only screen and (max-width: 600px) {
    img.pfp {
        clear: none;
        float: top;
        width: 100%;
        height: 50%;
        margin-right: 0;
        margin-bottom: 4vmin;
    }

    div.content {
        padding: 0 6vmin !important;
    }

    div.header, div.footer {
        width: calc(100% - 12vmin);
    }


    div.sidebar.opened {border-radius: 0; width: 100%;}

    h1 {font-size: 5vmin;}

    p, a.anchor {font-size: 3.5vmin;}

    .collapsible > .summary {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .year {width: 30%;}
    .degree {width: 70%;}
    .location {width: 100%;}


}

