body{
    margin: auto;
    font-family: sans-serif;
    font-size: 20px;
    text-align: left;
    width: 70%;
    height: 100vh;
    background-color: #ffffff;
}

#darkmode-mask{
    position:fixed;
    width: 200vw;
    height: 200vh;
    background-color: #ffffff;
    top: 0px;
    left: 0px;
    z-index: 50;
    mix-blend-mode: difference;
    pointer-events: none;
    visibility: visible;
    opacity: 0;
    transition-duration: 0.5s;
}

p {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 18px;
}

a { 
    color: #000000;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
}
a:visited { color: #000000}
a:hover { 
    color: #777;
    text-decoration: none;
}

::-webkit-scrollbar{
    width: 8px;
    height: 8px;
    background-color: #ccc;
}

::-webkit-scrollbar-corner{
    background-color: #ccc;
}

::-webkit-scrollbar-thumb{
    background-color: black;
}

@keyframes fadein
{
    from {opacity:0;}
    to {opacity:1;}
}
 
/*Safari 和 Chrome:*/
@-webkit-keyframes fadein
{
    from {opacity:0;}
    to {opacity:1;}
}

@keyframes fadeout
{
    from {opacity:1;}
    to {opacity:0;}
}
 
/*Safari 和 Chrome:*/
@-webkit-keyframes fadeout
{
    from {opacity:1;}
    to {opacity:0;}
}

@keyframes invert
{
    from {filter:invert(0);}
    to {filter:invert(1);}
}
 
/*Safari 和 Chrome:*/
@-webkit-keyframes invert
{
    from {filter:invert(0);}
    to {filter:invert(1);}
}

@keyframes devert
{
    from {filter:invert(1);}
    to {filter:invert(0);}
}
 
/*Safari 和 Chrome:*/
@-webkit-keyframes devert
{
    from {filter:invert(1);}
    to {filter:invert(0);}
}

@keyframes fullscreen
{
    from {
        width: 70%;
        height: 80%;
        top: 10%;
        left: 15%;
    }
    to {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
}
 
@-webkit-keyframes fullscreen
{
    from {
        width: 70%;
        height: 80%;
        top: 10%;
        left: 15%;
    }
    to {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
}

@keyframes window
{
    from {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
    to {
        width: 70%;
        height: 80%;
        top: 10%;
        left: 15%;
    }
}

@-webkit-keyframes window
{
    from {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
    to {
        width: 70%;
        height: 80%;
        top: 10%;
        left: 15%;
    }
}

#header{
    position:fixed;
    top:40%;
    left: 25%;
    font-size: 18px;
    line-height: 100%;
}

#header h1 {
    margin: 0;
    margin-bottom: 2px;
}

#name {
    font-size: 30px;
    margin-left: -2px;
}

#languages{
    margin-bottom: 5px;
}

#language_label {
    font-size: 16px;
}

.language_button {
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    line-height: 16px;
    padding: 2px;
    margin-right: 4px;
    cursor: pointer;
}

#language_button_2 {
    display: none;
    background-color: #aaa;
}

#language_button_3 {
    display: none;
    background-color: #ddd;
}

.tray {
    display: flex;
    flex-direction: row;
    margin-left: -4px;
}

.icon{
    margin-left: 1px;
    margin-right: 1px;
    cursor: pointer;
}
.icon:hover{
    color: #777;
}

#blog-icon {
    color: #d31919;
}

#github{
    font-size: 28px;
}

#space{
    float: left;
    width: 60%;
    height: 100%;
}

#contents{
    float: left;
    width: 35%;
    padding-left: 2.5%;
    padding-right: 2.5%;
}

#works{
    margin-top: 25vh;
}

.work{
    margin-top: 15px;
    margin-bottom: 15px;
}

#misc {
    margin-top: 150px;
    margin-bottom: 150px;
}

#fades{
    opacity: 0;
}

#about{
    margin-top: 150px;
}

#about p{
    font-size: 20px;
}

#about a{
    font-weight: normal;
    text-decoration: underline;
}

#link{
    margin-top: 150px;
}


#booter{
    margin-top: 150px;
}

.non_important{
    color:#777;
    font-size: 18px;
    line-height: 150%;
}

#windows {
    z-index: 10;
}

.fake_window{
    visibility: hidden;
    position: fixed;
    width: 70%;
    height: 80%;
    top: 10%;
    left: 15%;
    z-index: 1;
    background-color: #fff;
    box-shadow: 0px 2px 2px 1px #ccc;
    border-style: solid;
    border-color: #eee;
    border-width: 1px;
    border-top-width: 20px;
    border-bottom-width: 10px;
    border-radius: 6px;
}

.fake_close{
    position: absolute;
    right: 10px;
    top: -18px;
    width: 15px;
    height: 15px;
    background-color: #d31919;
    border-radius: 8px;
}

.fake_close:hover{
    background-color: #a30000;
}

.fake_full{
    position: absolute;
    right: 30px;
    top: -18px;
    width: 15px;
    height: 15px;
    background-color: #377cf1;
    border-radius: 8px;
}

.fake_full:hover{
    background-color: #175cd1;
}

.fake_min{
    position: absolute;
    right: 50px;
    top: -18px;
    width: 15px;
    height: 15px;
    background-color: #fd7d00;
    border-radius: 8px;
}

.fake_min:hover{
    background-color: #cd4d00;
}

.fake_title{
    position: absolute;
    left: 10px;
    top: -18px;
    font-size: 16px;
}

.drag_mask {
    display: none;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
}

.fake_window_contents{
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
}

@media screen and (max-width: 950px) {
    body{
        width: 100%;
        padding: 10%;
    }
    #header{
        position: inherit;
        grid-area: A;
        top: 0px;
        left:0px;
        width: 90%;

    }
    #space{
        width: 0px;
    }
    #contents{
        width: 90%;
        margin: auto;
        padding: 0;
    }
    .fake_window{
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
}

@media (prefers-color-scheme: dark) {
    #darkmode-mask{
        opacity: 1;
    }
    .non_dark{
        filter: invert(1);
    }
}
