@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Spinnaker&display=swap');


:root{
    --primary-color: black;
    --background-color: white;
    --third-color: deeppink;
    --fourth-color:  gray;
    --notches-font-size: 16px;
    --secondary-font-family: 'Audiowide', sans-serif;
    --primary-font-family: 'Spinnaker', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: white;
        --background-color: black;
    }
}

* {
    box-sizing: border-box;
}

html{
    height: 100vh;
    min-width: 425px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-style:solid;
    border-color: var(--background-color);
    border-width: 5px;
    color: var(--primary-color);
}

body{
    height: 100%;
    min-width: 425px;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    border-style: solid;
    border-color: var(--second-color);
    border-width: 5px;
    clip-path: polygon(
        0 calc((var(--notches-font-size)*2)),
        calc((var(--notches-font-size)*2)) 0,
        calc(100% - (var(--notches-font-size)*2)) 0,
        100% calc((var(--notches-font-size)*2)),
        100% calc(100% - (var(--notches-font-size)*2)),
        calc(100% - (var(--notches-font-size)*2)) 100%,
        calc((var(--notches-font-size)*2)) 100%,
        0 calc(100% - (var(--notches-font-size)*2)),
        0 calc((var(--notches-font-size)*2))
    );
}

a{
    color: var(--third-color);
    text-decoration: none;
}

a.stealth{
    color: var(--primary-color);
}

a.notmine {
    color: inherit;
    display: inline-block;
    position: relative;
    text-decoration: underline;
    text-decoration-color: var(--third-color);
    cursor: url('public/svg/internet.html'), pointer;
}

/* padding-right: 1.2em;
a.notmine::after {
    content: "";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('./public/svg/internet.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: .8em;
    height: .8em;
    pointer-events: none;
} */

li {
    text-align: left;
}



/* main layout */
header{
    width: 100%;
    height: 64px;
    display: flex;
    justify-content: space-between;
    position: relative;
    overflow: visible; 
    cursor: pointer;
}


main{
    flex: 1;
    width: 100vw;
    margin: 32px;
    margin-top: 56;
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: auto;
    justify-content: flex-start;
}

section{
    width: 60vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

footer{
    width: 100%;
    bottom: 0;
    height: calc(var(--notches-font-size)* 3);
    display: flex;
    justify-content: space-between;
    align-items:end;
    z-index: 1;
    position:relative
}


/* header  with responsive menu*/
#name-clip{
    content: "";
    height: 96px;
    width: 96px;
    background-color:var(--primary-color);
    clip-path: polygon(
        0 100%,
        calc(100% - 32px) 100%,
        100% calc(100% - var(--notches-font-size) * 2),
        100% 0,
        0 0
    );
}

#myName{
    font-family: var(--secondary-font-family);
    text-transform: uppercase;
    width: 32%;
    min-width: 300px;
    height: 100%;
    position: relative;
    justify-content: center;
    display: flex;
    border-bottom: 2px solid var(--third-color);
    margin: 0;
    padding-top: 24px;
}


h1, h2, h3,h4{
    font-family: var(--secondary-font-family);
}

h1, h2{
    text-align: center;
    width: 100%;
}

h3{
    text-align: left;
    width: 100%;
}
h3::before{
    content: "> ";
}

#menu-clip{
    content: "";
    padding: 0px;
    width: 24px;
    min-width: 24px;
    height: 100%;
    background-color: var(--primary-color);
    clip-path: polygon(
        0 calc(100% - 24px),
        24px 100%,          
        100% 100%,
        100% 0,
        0 0
    );
    margin-left: auto;
}

#menu {
    height: 100%;
    height: 64;
    padding-top: 20px;
}

#menu nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: baseline;
    height: 100%;
    align-items: baseline;
}


.menu-details > summary {
    color: var(--background-color);
    font-size: var(--notches-font-size);
    text-align: center;
    position: relative;
    list-style: none;
    width: 140px;
    cursor: pointer;
}

.sub-menu{
    font-size: 16px;
    top: 100%;
    right: 0;
    background-color: var(--primary-color);
    width: 120px;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    padding-bottom: 20px;
    clip-path: polygon(
        0 calc(100% - 24px),
        24px 100%,
        calc(100% - 24px) 100%,
        100% calc(100% - 24px),
        100% 0,
        0 0
    );
}

.sub-menu div{
    text-align: center;
    font-size: 12;
}
.sub-menu div:hover{
    background-color: var(--third-color);
    border-radius: 5%;
}

.open-menu-button{
    display: none;
}


/* footer & friends */

#quicklinks-notch > div, #news-notch > div{
    text-align: center;
    padding-top: var(--notches-font-size);
    padding-bottom: var(--notches-font-size);
    display: flex;
    flex-direction: row;
}


/* quick links */
#quicklinks-notch{
    width: 20%;
    min-width: 184px;
    height: 100%;
    z-index: 10;
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    align-items: center;
    clip-path: polygon(
        0 0,
        calc(100% - 24px) 0%,
        100% 24px,
        100% 100%,
        0% 100%
    );
    transition: 0.3s ease-out;
    height: auto;
    max-height: 50vh;
    translate: 0 calc(100% - 3*(var(--notches-font-size)));
    padding-bottom: var(--notches-font-size);
}

#quicklinks-checkbox:checked ~ #quicklinks-overlay, #newsbar-checkbox:checked ~ #news-overlay{
    height: 100%;
    width: 100%;
    position: fixed;
    padding: 0;
    top: 0;
    left: 0;
    z-index: 9;
}

#quicklinks-notch:hover, 
#quicklinks-checkbox:checked ~ #quicklinks-notch{
    background-color: var(--third-color);
    color : var(--primary-color);
    translate: 0 0;
    z-index: 10;
    padding-right: 0;
}

#qlSection, #newsSection{
    width: 100%;
    line-break: auto;
    padding: 0px;
    height: auto;
    overflow-y: auto;
    justify-content: unset;
}
#newsSection::-webkit-scrollbar {
    display: none;
}

#qlSection ul{
    margin-top: 0px;
}

#qlSection li {
    list-style-type: '\261E';
    font-size: 12px;
}

#qlSection a{
    color: var(--primary-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#news-notch{
    width: 30%;
    min-width: 184px;
    z-index: 10;
    align-items: center;
    display: flex;
    flex-direction: column;
    clip-path: polygon(
        24px 0,
        100% 0, 
        100% 100%,
        0% 100%,
        0% 24px
    );
    transition: 0.5s ease-out;
    height: auto;
    max-height: 75vh;
    translate: 0 calc(100% - 3*(var(--notches-font-size)));
    padding-bottom: var(--notches-font-size);
}


#newsbar-checkbox:checked ~ #news-notch, 
#news-notch:hover{
    background-color: var(--third-color);
    color : var(--primary-color);
    translate: 0 0;
    z-index: 10;
    padding-right: 0;
}




.notch{
    font-family: var(--secondary-font-family);
    background-color: var(--primary-color);
    color: var(--background-color);
    font-size: var(--notches-font-size);
    text-transform: uppercase;
}

.stealth-checkbox {
    display: none;
}


/* news*/

.newsCounter {
    width: calc(var(--notches-font-size));
    height: 12px; 
    clip-path: polygon(
        5px 0,
        100% 0,
        calc(100% - 5px) 100%,
        0 100%,
        5px 0
    );
    background-color: var(--background-color);
    cursor:help;
    margin-top: 4px;
    margin-left: 4px;
}


.news{
    width: 80%;
    border : 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 12px;
    margin-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: var(--background-color);
    text-transform: none;
    text-align: left;
}

.news > h3{
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news > p{
    font-family: var(--primary-font-family);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.newsDate{
    font-size: 10px;
    text-align: right;
    color: var(--fourth-color);
    margin-top: 0px;
}



#MLButtonPannel{
    margin: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#MLButtonPannel  button{
    cursor: pointer;
    color: var(--background-color);
    margin: 0px 20px;
    width: 50px;
    text-align: center;
    clip-path: polygon(
        25% 0%,
        75% 0%,
        100% 50%,
        75% 100%,
        25% 100%,
        0% 50%
    );
    border: none;
    background-color: var(--primary-color);
    padding: 10px;
}


details summary{
    font-family: var(--secondary-font-family);
    width: 100%;
    display: block;
    color: var(--primary-color);
    cursor: help;
    font-size: 20px;
    text-align: center;
}

details{
    font-size: var(--notches-font-size);
    height: auto;
    /* text-align: center; */
    align-content: center;
    width: 70%;
}

details ul{
    text-align: left;
}

hr{
    width: 70%;
    height: 4px;
    background-color: #111;
    flex-shrink: 0;
}

hr.short{
    width: 50%;
    height: 1px;
    background-color: #111;
}

.flag{
    display: none;
}



/* scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: deeppink ;
    border-radius: 10px;
    cursor: grab;
}

::-webkit-scrollbar-thumb:hover {
    cursor: grabbing;
}




.hippoChengeLanguage{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 40%;
    font-family: var(--secondary-font-family);
    font-size: 16px;
    background-color: var(--primary-color);
    color:var(--third-color);
    height: calc(4*var(--notches-font-size));
    margin: 20px;
    padding: 20px;
    font-size: var(--notches-font-size);
    clip-path: polygon(
        var(--notches-font-size) 0%,
        calc(100% - var(--notches-font-size)) 0%,
        100% 50%,
        calc(100% - var(--notches-font-size)) 100%,
        var(--notches-font-size) 100%,
        0% 50%
    );
}

.hippoDescription{
    text-align: left;
}

#PosterList{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#PosterList img{
    max-width: 100%;
    height: auto;
    display: block;
}

#homeSection{
    display: flex; 
    flex-direction: row; 
    flex-wrap: wrap; 
    justify-content: space-evenly; 
    box-sizing: border-box;
}

#thesisSection{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    box-sizing: border-box;
}

#thesisSection > img {
    width: 242px;
    height: 324px;
    margin: 10px;
}


#scheduleTable{
    width: 100%;
    border: 1px solid var(--third-color);
}

#scheduleTableContent th{
    border: 1px solid var(--third-color);
}




.course {
    align-items: flex-start;
}

.course > p, ul {
    margin: 0px;
}

#coursesList > div{
    width: 100%;
    text-align: left;
    /* align-content: flex-start; */
}

#bio > ul{
    width: 100%;
}

#bio > ul > li{
    margin-bottom: 5px;
    /* border-bottom: solid 1px var(--third-color); */
}

#papersHeader{
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-direction: row;
}





@media(max-width: 980px){
    html{
        height: 100vh;
        width: 100vw;
    }
    body{
        height: 100%;
        width: 100%;
    }

    #menu{
        display: flex;
        flex-direction: column;
        padding : 0px;
        padding-top: 20px;
        width: 180px;
        height: auto;
        position: absolute;
        top: 0;
        right: 0;
        translate: calc(100% - 64px) calc(64px - 100% );
        transition: 0.3s ease-out;
        align-items: flex-start;
        clip-path: polygon(
            0 calc(100% - 24px),
            24px 100%,
            calc(100% - 24px) 100%,
            100% 100%,
            100% 0,
            0 0
        );
        z-index: 10 ;
    }

    #menu nav{
        flex-direction: column;
        align-items: start;
        width: 100%;
        height: 100%;
        padding-left: 24px;
    }

    #menu nav summary{
        text-align: left;
    }

    .sub-menu{
        clip-path: none;
        font-size: 16px;        
        /* padding-left: 10px; */
    }
    .sub-menu div{
        text-align: left;
    }

    .open-menu-button{
        display: block;
        margin: 20px;
    }
    #menu-checkbox:checked ~ #menu {
        translate: 0 0;
        /* background-color: var(--third-color); */
    }

    #menu-checkbox:checked ~ #menu-overlay{
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 7;
    }
    
}


@media(max-width: 512px) {
    #myName{
        writing-mode: vertical-lr;
        text-orientation: upright;
        width: 1px;
        min-width: calc(var(--notches-font-size) * 3.5);
        height: 240px;
        margin-left: 0;
        padding: calc(var(--notches-font-size)/2 );
        padding-top: calc(var(--notches-font-size) * 2);
        text-align: left;
        background-color: var(--primary-color);
        color: var(--background-color);
        clip-path: polygon(
            0 100%,
            32px 100%,
            calc(100% - 32px) 100%,
            100% calc(100% - 32px), 
            100% 0,
            0 0
        );
        font-size: var(--notches-font-size);
        border: none;
    }
    
    #name-clip{
        display: none;
    }
}
