/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
    background: #e9f5f9;
    text-align: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: #2f3031;
}

#headline {
    margin: 32px auto 16px auto;
    width: 60%;
    text-align: left;
    font-size: 30px;
    min-width: 340px;
}

#category-tile {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    overflow-x: auto;
    flex-shrink: 0;
    padding: 4px;
    margin: auto auto 16px auto;
    width: 60%;
    min-width: 340px;
    height: 26px;
}

#category-tile .category-item {
    font-size: 18px;
    color: #afafaf;
    cursor: pointer;
    transition: 0.5s ease-in-out;
    border-bottom: 4px solid #e9f5f9;
}

#category-tile .category-item:hover {
    color: #2f3031;
    border-bottom: 4px solid #afafaf;
}

.cate-sel span {
    color: #2f3031;
}

.cate-sel {
    border-bottom: 4px solid #589336!important;
}

#play-button {
    min-width: 340px;
    width: 60%;
    margin: auto;
    height: 30px;
    color: #acb2b5;
    text-align: left;
}

#play-button span {
    display: inline-block;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #d2d6d8;
    padding: 4px;
    border-radius: 6px;
}

#play-button span:hover {
    color: #2f3031;  
}


#footer, #footer a {
    margin-top: 16px;
    font-size: 14px;
    color: #acb2b5;
    text-decoration: none;
}

#nav-tile {
    margin: 0 auto 16px auto;
    width: 60%;
    min-width: 340px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

#nav-tile #pic-rolls {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    overflow-x: auto;
    flex-shrink: 0;
    padding: 4px;
    transition: 0.3s ease-in-out;
}

#nav-tile #pic-rolls .thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    cursor: pointer;
    filter: grayscale(30%);
    opacity: 0.8;
    transition: 0.5s ease-in-out;
    background-size: 100px;
    background-position: center;
}

#nav-tile #pic-rolls .thumbnail:hover {
    filter: grayscale(0);
    opacity: 1;
    background-size: 110px;
}

#lightbox {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 8, 0.9);
    backdrop-filter: blur(10px);
    top: -100vh;
    left: 0;
    transition: 0.2s ease-in-out;
    text-align: center;
}

#picture-box {
    position: absolute;
    margin: auto;
    top: 16px;
    left: 5vw;
    width: 90vw;
    height: 90vh;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    transition: 0.5s ease-in-out;
}

.desc {
    position: absolute;
    right: 0;
    width: 100%;
    height: 22px;
    bottom: 56px;
    color: #f1f9e9;
    font-size: 15px;
    text-shadow: #2f3031 1px 0 1px;
    opacity: 0.9;
}

#counter {
    position: absolute;
    width: 90%;
    left: 10px;
    top: 36px;
    font-size: 14px;
    text-align: left;
}
#counternum {
    display: inline-block;
    color: #f1f9e9;
    background-color: #2f3031;
    padding: 3px 10px 3px 10px;
    opacity: 0.7;
    border-radius: 9px;
}


#description {
    background: #2f3031;
}

.buttons {
    opacity: 0.4;
    width: 30px;
    height: 30px;
    color: #fff;
    font-size: 28px;
    position: absolute;
    top: calc(50vh - 30px);
    transform: translateY(-50%);
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

#left {
    left: 10px;
}

#right {
    right: 10px;
}

#close {
    right: 10px;
    top: 50px;
    font-weight: bold;
    font-size: 30px;
}

.buttons:hover {
    opacity: 1!important;
}

#progress {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    text-align: left;
    z-index: 100;
    background: #b2e0a6;
    display: none;
    animation: progressing 5s linear infinite;
}

@keyframes progressing {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

@media screen and (min-aspect-ratio: 1/1) {
    .desc {
        bottom: -36px;
    }
    #progress {
        top: auto;
        bottom: 0;
    }
}