@keyframes hover {
    0% {transform: scale(1);}
    50% {transform: scale(1.1);}
    100% {transform: scale(1);}
}

@keyframes hover2 {
    0% {transform: scale(1);}
    50% {transform: scale(1.03);}
    100% {transform: scale(1);}
}

.mainflex {width: 1050px}

.flex2 {
    display: flex;
    height: 720px;
}

p {
    color: var(--lightorange);
}

h1 {
    padding: 0;
    margin: 0;
    height: 100%;
    text-align: center;
}

.left {
    width: 690px;
    position: relative;
}

.left > div, .left > nav, .right > nav {
    position: absolute;
    background-image: var(--gradientbg);
    border-radius: 5px;
    border-color: var(--purple);
    border-width: 1px;
    border-style: solid;
}

.right {
    width: 250px;
    position: relative;
    display: flex;
    margin-left: 10px;
}

.titlebox {
    width: 500px;
    height: 120px;
    z-index: 2 !important;
    top: 0;
}

.titlecontent {
    width: 480px;
    height: 85px;
    bottom: 6px;
    display: flex;
    align-items: center;
    overflow-y: auto;
}

.titlecontent > h1 {
    height: auto;
    width: 100%;
}

.bodybox {
    width: 650px;
    height: 680px;
    bottom: 0;
    right: 0;
}

#content {
    background-color: var(--black);
    border-color: var(--purple);
    border-width: 1px;
    border-style: solid;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.bodycontent {
    width: 630px;
    height: 643px;
    bottom: 9px;
    overflow-y: scroll;
    overflow-x: hidden;
    
}

.bodycontent > p, .bodycontent > img {
    padding: 15px;
    padding-top: 0;
    padding-bottom: 0;
}

#textborder {
    width: 100%;
    height: 55px;
}

#topbar {
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: none;
    user-select: none;
}

.bottomnav {
    width: 400px;
    height: 120px;
    z-index: 2;
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(100px, 50px);
    display: none;
}

.bottomnav > .navcontent {
    width: 380px;
    height: 87px;
    bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.bottomnav a {
    font-size: 20px;
    margin: 10px;
}

.bottomnav h1 {
    margin-left: 11px;
    text-align: left;
}

.mainnav {
    width: 100%;
    height: /*600px;*/ 435px;
    position: relative !important;
    top: 55px;
}

.mainnav h1 {
    margin: 15px;
    margin-top: 35px;
    text-align: left;
}

.mainnav > .navcontent {
    width: 93%;
    height: /*520px;*/ 355px;
    bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    flex-direction: column;
}

.mainnav > .navcontent a {
    width: 65%;
    height: auto;
    margin: 2px;
    margin-bottom: 5px;
    margin-top: 10px;
}

.mainnav > .navcontent div:hover {
    animation: hover2 1.1s infinite;
    animation-timing-function: linear;
}

#nav_icon {
    width: 100%;
}

#nav_subtitle {
    margin: 0;
    width: 100%;
    color: var(--orange);
    text-align: center;
}

.lightbox {
    position: fixed;
    background-color: rgba(8, 4, 16, 0.85);
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    visibility: hidden;
}

.lightbox > #image {
    z-index: 100;
    position: relative;
    object-fit: cover;
    max-width: 95%;
    max-height: 60%;
}

.lightbox > #caption {
    font-style: italic;
    text-align: center;
    width: 50%;
}

.lightbox > #exit {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    z-index: 101;
}

.lightbox > #exit:hover {
    animation: hover 1.1s infinite;
    animation-timing-function: linear;
}

.zoom.enabled {
    cursor: pointer;
}

.hidden {
    visibility: hidden;
}

.share {
    bottom: -47px;
    position: absolute;
    display: flex;
    background-image: none !important;
    border: none !important;
    align-items: center;
    align-content: center;
    z-index: 5;
}

.share p {
    margin-left: 7px;
    visibility: hidden;
    user-select: none;
}

#share {
    height: 40px;
    width: 40px;
    cursor: pointer;
    background: url("/res/asset/blog/share.png") 0 0;
    background-size: 200%;
}

.share_hover {
    background: url("/res/asset/blog/share.png") 40px 0 !important;
    background-size: 200%;
}

#sharebox {
    background-color: rgba(8, 4, 16, 0.85);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 99;
    align-items: center;
    justify-content: center;
    display: none;
}

#sharebox > div {
    height: 160px;
    width: 500px;
    border-radius: 5px;
    background-image: var(--gradientbg);
    border-color: var(--purple);
    border-width: 1px;
    border-style: solid;
    position: relative;
}

#sharebox > div h1 {
    text-align: left;
    padding-left: 13px;
    padding-top: 2px;
    height: auto;
}

#sharebox label {
    margin: 0;
    margin-left: 13px;
}

#sharebox textarea {
    background-color: var(--black);
    margin: auto;
    display: block;
    margin-top: 5px;
    height: 50px;
    width: 400px;
    color: var(--yellow);
    font-family: "perfectdos", monospace;
    text-align: center;
    border-color: var(--purple);
    resize: none;
}

#sharebox button {
    border-width: 1px;
    border-radius: 5px;
    margin-left: 33px;
    margin-top: 7px;
}

#sharebox #topbar {
    user-select: auto;
    pointer-events: auto;
    cursor: pointer;
}

#rss {
    position: absolute;
    bottom: -50px;
    background: url("/res/asset/blog/rss.png") 0 0;
    background-size: 200%;
    height: 40px;
    width: 40px;
}

.rss_hover {
    background: url("/res/asset/blog/rss.png") 40px 0 !important;
    background-size: 200%;
}

/* MOBILE CSS */
@media screen and (max-width: 629px) {
    .mainflex {
        width: 100%;
        flex-direction: column;
    }
    
    .flex2 {
        flex-direction: column;
        height: auto;
    }
    
    .left {
        width: 100%;
    }
    
    .right {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .titlebox {
        position: relative !important;
        width: 100%;
        margin-bottom: 5px;
    }
    
    .titlecontent {
        width: 97%;
    }
    
    .bodybox {
        width: 100%;
        position: relative !important;
    }
    
    .bodycontent {
        width: 97%;
        height: 94%;
    }
    
    #textborder {
        display: none;
    }
    
    .mainnav {
        top: auto;
        height: auto;
        width: 70%;
        display: block;
        margin: auto;
    }
    
    .mainnav h1, .bottomnav h1 {
        height: auto;
    }
    
    .right .navcontent {
        position: relative !important;
        height: auto !important;
    }
    
    #nav_icon {
        max-width: 200px;
        margin: auto;
        display: block;
    }
    
    #nav_subtitle {
        margin-top: 8px;
    }
    
    #sharebox > div {
        width: 85%;
        height: auto;
    }
    
    #sharebox label {
        display: block;
    }
    
    #copy {
        margin-bottom: 5px;
        margin-left: 13px !important;
    }
    
    #shareurl {
        width: 92% !important;
    }
    
    .lightbox > #caption {
        width: 80%;
    }
    
    .bottomnav {
        width: 80%;
        position: relative !important;
        transform: none;
        margin: auto;
        margin-top: 10px;
        display: block;
        height: 140px;
    }
    
    .bottomnav h1 {
        margin-top: 5px;
    }
    
    .bottomnav > .navcontent {
        position: relative !important;
        width: 97%;
        margin-top: 15px;
        height: 93px;
    }
}

@media screen and (max-width: 400px) {
    .mainnav {
        width: 100%;
    }
    
    #sharebox > div {
        width: 95%;
    }
    
    .share {
        bottom: 10px;
        left: 8px;
    }
}

@media screen and (max-width: 965px) and (min-width: 631px) {
    .mainflex {
        width: 100% !important;
    }
    
    .titlebox {
        position: relative !important;
        margin: auto;
        width: 100%;
    }
    
    .titlecontent {
        width: 97%;
    }
    
    .flex2 {
        margin-top: 40px;
    }
    
    .left {
        width: 65%;
    }
    
    .bodybox {
        width: 100%;
        height: 580px;
        position: relative !important;
        margin-top: 5px;
    }
    
    .bodycontent {
        width: 97%;
        height: 93.5%;
    }
    
    .mainnav {
        top: 0px;
    }
    
    .bottomnav {
        width: 80% !important;
        transform: none;
        position: relative !important;
        margin: auto;
        margin-top: 5px;
    }
    
    .bottomnav h1 {
        margin-top: 5px;
        height: auto;
    }
    
    .bottomnav > .navcontent {
        position: relative !important;
        width: 97%;
        margin-top: 5px;
        height: 87px;
    }
    
    .bottomnav > .navcontent > a:nth-child(2) {
        text-align: right;
    }
}