

:root{
    --shadow: 0 0 5em rgba(0, 0, 0, .1);
    --shadow-thin: 0 0 1em rgba(0, 0, 0, .3);
    --shadow-thick: 0 0 5em rgba(0, 0, 0, .2);

    --font-color: #666;
    --font-shadow: 0 0 5px #fff, 0 2px 5px #fff;
}

html, body{
    height: 100%;
}

body{
    display: flex;
    flex-direction: column;
}
body.dark{
    --font-color: #fff;
    --font-shadow: 0 0 5px #000, 0 2px 5px #000;
}

.iconfont{
    font: inherit;
}

h3{
    font-weight: lighter;
}

article h3{ margin-top: 2em }
article h3:first-child{ margin-top: 0 }

article img{ border-radius: 1em }

header{
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: flex;
    position: fixed;
    justify-content: flex-end;
}

header .action-btn{
    padding: 1em;
    cursor: pointer;
    padding-bottom: 0;
}
header .action-btn:hover .fa{
    transform: scale(1.2);
}

header .action-btn.updated:not(.active){
    display: none;
}

header .action-btn.updated.active .fa{
    animation: shiny .5s alternate infinite;
}

@keyframes shiny {
    from { opacity: 0 }
    to { opacity: 1 }
}

header .fa{
    font-size: 1.5em;
    transition: transform .3s;
    color: var(--font-color);
}

main{
    width: 100%;
    margin: auto;
    padding: 1em 1.5em;
    max-width: 60em;
}

.input-box{
    display: flex;
    position: relative;
    padding: .5em 2em;
    border-radius: 3em;
    background: #fff;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, .2);
    box-shadow: var(--shadow);
    transition: box-shadow .3s;
}
.input-box:hover{
    box-shadow: var(--shadow-thick);
}

.input-box input{
    flex: 1 1 auto;
    max-width: 100%;
    border-radius: 0;
    border: none;
    margin: 0 1em;
}

.navi-items{
    display: grid;
    grid-gap: 1.5em;
    text-align: center;
    grid-template-columns: repeat(auto-fill, minmax(5em, 333fr));
}

@media screen and (max-width: 1600px) {
    .navi-items {
        grid-gap: 1em;
        grid-template-columns: repeat(auto-fill, minmax(4em, 333fr));
    }
}
}

.navi-items .item{
    color: inherit;
    display: block;
}

.navi-search{
    margin:6% auto;
}

.search-select{
    cursor: pointer;
}

.search-select .iconfont{
    font-size: 1.5em;
    line-height: 3.5rem;
}

.search-selector{
    top: 3em;
    opacity: 0;
    padding: .75em 0;
    overflow: hidden;
    visibility: hidden;
    position: absolute;
    background: #fff;
    border-radius: 1em;
    box-shadow: var(--shadow);
    transform: scale(1, 0);
    transform-origin: top center;
    transition: opacity .3s, transform .3s, visibility .3s;
}

.search-selector.active{
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.search-selector .item{
    cursor: pointer;
    padding: .5em 1em;
    transition: color .3s, background .3s;
}
.search-selector .item:hover{
    color: #fff;
    background: #3498db;
}

.navi-icon{
    color: #fff;
    background: #666;

    width: 5rem;
    height: 5rem;
    font-size: 1.75em;
    line-height: 5rem;

    margin: auto;
    overflow: hidden;
    border-radius: 2em;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .85);
    transition: box-shadow .3s;
}

.navi-icon i{
    display: inline-block;
    transition: transform .3s;
}
.navi-icon:hover i{
    transform: scale(1.3);
}

.navi-icon img{ vertical-align: top }

.navi-title{
    color: aliceblue;
    padding: 0 .5em;
    font-size: .8em;
    margin-top: .1em;
}



@media screen and (max-width: 1600px){
    .navi-icon{
        width: 3.75rem;
        height: 3.75rem;
        font-size: 1.3em;
        line-height: 3.75rem;
    }
    .content {
        transform: scale(0.6);
        height: 12rem;
    }
    main {
        width: 100%;
        margin: -1em auto;
        padding: 1em 1.5em;
        max-width: 60em;
    }
}

.background{
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    position: fixed;

}


footer {
    left: 0;
    right: 0;
    bottom: 0;
    color: #ffffff;
    padding: 1em 0;
    position: static;
    font-size: .875em;
    text-align: center;
}

    footer a {
        color: #ffffff;
    }

@media screen and (max-width: 2000px) {



    footer {
        position: static;
    }
}

window{
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: 1;
    display: flex;
    overflow: auto;
    position: fixed;
    padding: 2em 1em;
    pointer-events: none;
    background: rgba(0, 0, 0, .3);
    transition: opacity .3s;
}
window::-webkit-scrollbar{ width: 0 }

window.active{
    opacity: 1;
    pointer-events: auto;
}

.the-window{
    margin: auto;
    display: none;
    min-width: 15em;
    max-width: 40em;
    background: #fff;
    border-radius: 1em;
    box-shadow: var(--shadow-thick);
}
.the-window.active{
    display: block;
    animation: fade-small-large .3s forwards;
    
}
.the-window.closed{
    animation: fade-large-small .3s forwards;
}

.the-window .window-head{
    padding: 1em 1.5em;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
}
.the-window .window-head button{
    top: 1rem;
    right: 1rem;
    position: absolute;

    border: none;
    color: #fff;
    padding: 0;
    width: 1.5em;
    cursor: pointer;
    font-size: 1.17em;
    border-radius: 1em;
    background: rgb(255, 86, 86);
}

.the-window .window-body{
    padding: 1.5em;
}

.svgBg {
    position: absolute;
    z-index: -1;
    height: 100%;
    width: 100%;
    bottom: 0;
}

    .svgBg svg {
        position: absolute;
        z-index: -1;
        width: 100%;
        bottom: 0;
    }

.content {
    position: relative;
    z-index: 1;
    text-align: center;
}