html {
    margin: 0;
    padding: 0;
    background-image: url(background.webp);
    background-repeat: no-repeat;
    background-position: calc(50% + 14px) top;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    background-attachment: fixed;
}
body {
    width: 800px;
    padding: 0;
    margin: 0 auto;
    background-color: #1F1C25;
}
.links {
	display: flex;
    text-align: justify;
    font-size: 25px;
	font-weight: bold;
	justify-content: space-between;	
}
.links * {
    color: white;
    cursor: pointer;
}
.links a {
    text-decoration: none;
	padding: 10px;
}
.links > span {
    position: relative;
	padding: 10px;
	z-index: 10;
}
.links > span > span {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    border: 1px solid white;
    background-color: black;
    text-align: left;
	padding: 10px;
    
}
.links > span > span > a {
    display: block;
	white-space: nowrap;
	padding: 10px;
}
.links a:hover {
    background-color: gray;
}
.links > span:hover > span {
    display: block;
}
.banner {
    display: block;
    width: 800px;
    height: 100px;
    margin: 10px auto;
    background-image: url(banner.png);
    background-repeat: no-repeat;
    background-position: center center;
}
.pages {
    display: block;
    height: 32px;
    position: relative;
}
.pages > a {
    display: block;
    position: absolute;
    background-image: url(arrows.png);
    background-repeat: no-repeat;
}
.pages > a.first {
    width: 60px;
    height: 16px;
    background-position: 0px 0px;
    top: 8px;
    left: 10px;
}
.pages > a.prev {
    width: 42px;
    height: 16px;
    background-position: -60px 0px;
    top: 8px;
    left: 100px;
}
.pages > a.next {
    width: 42px;
    height: 16px;
    background-position: -60px -16px;
    top: 8px;
    right: 100px;
}
.pages > a.last {
    width: 60px;
    height: 16px;
    background-position: 0px -16px;
    top: 8px;
    right: 10px;
}
.maincontent {
    position: relative;
    background-position: top center;
    background-repeat: no-repeat;
	text-align: center;
	width: 840px;
	margin-left: -20px;
}
.comments {
    border: 1px solid white;
    margin: 10px;
    padding: 10px;
    color: white;
}
.comments a {
    color: white;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

#browser {
    position: absolute;
    left: 170px;
	right: 170px;
    border: 1px solid #67402C;
    color: silver;
	padding: 3px;
	background-color: black;
	cursor: pointer;
	text-align: center;
}
#browser::after {
    content: '';
    position: absolute;
    top: 5px;
    right: -8px;
    width: 16px;
    height: 15px;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAMAAADarb8dAAAAUVBMVEUAAAAbHCFnQCwzMTslJSwzJyW7oJEiIShCLieriXYsKjRZOSlONCg7KybApZezlIOwj36lgGuhe2abclwxLzm4m4y0loWfeWOWbFWWalNzUUAPMatXAAAAAXRSTlMAQObYZgAAAGZJREFUCNdNjVcOwDAMQklXmu697n/QNphI5cfwBDKiMglQ7BxVG2kZRQjoRfpUuNbVEFDyhnHi7ROohkobgjt8YFqIrLGM+xGiKQpNznl2BIDzdI8eA/CyWqii3CBqa/wvG8pN0b+hzgNRXpSTNgAAAABJRU5ErkJggg)
}
.browser-contents {
    position: absolute;
    top: 100%;
    left: 30px;
    right: 30px;
    border: 1px solid #643;
    height: 500px;
    background-color: #1b1c21;
    display: none;
    z-index: 10;
    overflow: auto;
    padding: 20px;
    color: silver;
}

.browser-contents div.link {
    margin-left: 60px;
    font-size: 15px;
    color: #909599;
}
.browser-contents a {
    cursor: pointer;
    color: #9391c0;
    text-decoration: none;
}
.browser-contents a.current-page {
    cursor: default;
    color: white;
    font-weight: bold;
    text-decoration: none;
}
.browser-contents h1 {
    margin: 0;
    font-size: 25px;
    font-weight: normal;
    cursor: pointer;
    color: #d39f78;
    text-decoration: underline;
}
.browser-contents h2 {
    margin: 0;
    font-size: 20px;
    margin-left: 20px;
    cursor: pointer;
    font-weight: normal;
    color: #d39f78;
}
.browser-contents h3 {
    margin: 0;
    font-size: 18px;
    margin-left: 40px;
    cursor: pointer;
    font-weight: normal;
    font-style: italic;
    color: #d39f78;
}

.browser-contents h1.collapsed::before,
.browser-contents h2.collapsed::before,
.browser-contents h3.collapsed::before {
    content: "\25BA  "; /* ► */
    font-size: 10px;
    position: relative;
    top: -3px;
    color: #d39f78;
    text-decoration: none;
    display: inline-block;
}
.browser-contents h1.expanded::before,
.browser-contents h2.expanded::before,
.browser-contents h3.expanded::before {
    content: "\25BC  "; /* ▼ */
    font-size: 10px;
    position: relative;
    top: -3px;
    color: #d39f78;
    text-decoration: none;
    display: inline-block;
}

.browser-contents div.collapsed {
    display: none;
}

img.browser-preview {
    position: absolute;
    top: calc(100% + 15px);
    right: 60px;
    border: 1px solid #643;
    max-width: 200px;
    max-height: 510px;
    z-index: 10;
}
.blog {
    width: 100%;
    height: 1000px;
    border: none;
    margin: 0;
    padding: 0;
}
#hub {
    position: fixed;
    display: flex;
    align-items: stretch;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 20;
}

#hub .hub-close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 50px;
    color: white;
    z-index: 10;
    cursor: pointer;
}

#hub.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility 0s .5s;
}

#hub.visible {
    visibility: visible;
    opacity: 1;
    transition: opacity .5s ease;
}

#hub a {
    position: relative;
    flex-grow: 2;
    z-index: 5;
    color: white;
    overflow: hidden;
    text-shadow: 0 0 5px black;
    transition: flex-grow .5s ease;
}

#hub a:hover {
    flex-grow: 3;
}

#hub a span {
    position: absolute;
    left: 0;
    right: 0;
    transition: left 0.5s ease, right 0.5s ease;
    text-align: center;
    z-index: 20;
}

#hub.hidden a span {
    left: 10%;
    right: -10%;
}

#hub a span.title {
    top: 50%;
    font-size: 1.8vw;
}

#hub a span.time {
    bottom: 50%;
    font-size: 1vw;
}

#hub a span.subtitle {
    top: calc(50% + 3vw);
    font-size: 1vw;
}

#hub a span.background {
    background-size: cover;
    background-position: top center;
    z-index: 15;
    top: 5%;
    bottom: -5%;
    left: 0;
    right: 0;
    opacity: 0;
    filter: saturate(50%);
}

#hub a:hover span.background {
    filter: saturate(100%);
}

#hub.hidden a span.background {
    left: 0;
    right: 0;
}

#hub a span.background.loaded-late {
    opacity: 1;
    transition:
        top .5s ease,
        bottom .5s ease,
        opacity .5s ease,
        filter .5s ease;
}

#hub a span.background.loaded-early {
    opacity: 1;
    transition:
        top .5s ease,
        bottom .5s ease,
        filter .5s ease;
}

#hub.visible a span.background.loaded-late,
#hub.visible a span.background.loaded-early {
    top: 0;
    bottom: 0;
}

#hub a:nth-child(1) span.background.activated {
    background-image: url(hub-dt.webp);
}

#hub a:nth-child(2) span.background.activated {
    background-image: url(hub-hel.webp);
}

#hub a:nth-child(3) span.background.activated {
    background-image: url(hub-dd.webp);
}

#hub a:nth-child(4) span.background.activated {
    background-image: url(hub-eld.webp);
}

@media (orientation: portrait) {
    #hub {
        flex-direction: column;
    }

    #hub a span.title {
        font-size: 2.5vh;
    }

    #hub a span.time {
        font-size: 1.5vh;
    }

    #hub a span.subtitle {
        font-size: 1.5vh;
        top: calc(50% + 3vh);
    }
}
html.nowebp {
    background-image: url(background.jpg);
}

html.nowebp #hub a:nth-child(1) span.background.activated {
    background-image: url(hub-dt.jpg);
}

html.nowebp #hub a:nth-child(2) span.background.activated {
    background-image: url(hub-hel.jpg);
}

html.nowebp #hub a:nth-child(3) span.background.activated {
    background-image: url(hub-dd.jpg);
}

html.nowebp #hub a:nth-child(4) span.background.activated {
    background-image: url(hub-eld.jpg);
}