:root {
    --bgcolor: #666;
    --accentcolor: #E3F7FF;
    --lightcolor: #FFF;
    --darkcolor: #051F45;
    --mainfont: consolas, monospace;
    --headerfont: georgia;

    --viewerheight: 500px;
}

* {
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

body {
  background: url(https://i.imgur.com/EvAewxN.jpeg);
  background-size: cover;
    background-color: var(--bgcolor);
    font-family: var(--mainfont);
    margin: 0;
}

a {
  color: var(--lightcolor);
}

#container {
    display: flex;
}

main, #reel {
    padding: 10px;
}

main {
    height: 100vh;
    background-color: var(--mainbgcolor);
    flex-grow: 1;
    overflow-y: auto;
}

#reel {
    background-color: var(--darkcolor);
    height: 100vh;
    width: 100px;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

#reel div {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 100px;
    width: 100%;
    border-radius: 5px;
    transition: 0.4s;
    font-size: 0px;
    margin-bottom: 5px;
    border: 1px solid var(--accentcolor);
    overflow: hidden;
    cursor: pointer;
}

#reel div:last-child {
    margin-bottom: 0;
}

#reel div img {
    display: none;
}

#reel>article {
    display: none;
    flex-direction: column;
}

.cw>section {
    background-color: rgba(0, 0, 0, 0.9);
    font-size: 10px;
    width: 100%;
    height: 100%;
    color: var(--lightcolor);
    text-align: center;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#reel div:hover {
    filter: drop-shadow(0 0 5px var(--accentcolor));
    transform: scale(1.1);
}

.focus {
    filter: drop-shadow(0 0 5px white);
    transform: scale(1.1);
} 

#cat {
    height: 100vh;
    min-width: 25px;
    overflow-y: auto;
}

#cat button {
    display: block;
    background-color: var(--darkcolor);
    width: 25px;
    border: none;
    border-radius: 0 10px 10px 0;
    margin: 5px 0;
    padding: 15px 5px 15px 0;
    font-family: var(--headerfont);
    font-weight: bold;
    writing-mode: vertical-lr;
    text-orientation: sideways;
    letter-spacing: 2px;
    font-variant: small-caps;
    color: var(--accentcolor);
    cursor: pointer;
    transition: 0.4s;
}

#cat button:focus {
    background-color: var(--accentcolor);
    color: var(--darkcolor);
}

#viewer {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: 100%;
    height: var(--viewerheight);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: var(--asidebgcolor);
    padding: 50px;
    cursor: auto;
}

#imgtitle {
    font-family: var(--headerfont);
    text-align: center;
    font-variant: small-caps;
    color: var(--lightcolor);
    margin: 5px 0;
}

#imgdate {
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 1rem;
}

#imgdesc {
    text-align: center;
}

#cred {
    font-size: 10px;
}

#enlarge {
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    padding: 20px;
    z-index: 99;
    display: none;
}

#enlarge img {
    margin: auto;
    display: block;
    filter: drop-shadow(0 0 5px var(--grey));
    cursor: pointer;
    max-width: 100%;
    cursor: zoom-out;
}

#cred {
    z-index: 10;
    font-size: 10px;
    position: fixed;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--lightcolor);
    border: none;
    border-radius: 50px 0 0 0;
    padding: 10px 5px 5px 10px;
    transition: 0.3s;
    cursor: pointer;
}

#cred:hover {
    background-color: var(--darkcolor);
    color: var(--accentcolor);
}

@media all and (max-width: 600px) {
  
    #container {
      flex-direction: column;
    }

    #reel {
        height: 100px;
        width: 100vw;
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
    }

    #reel div {
        height: 80px;
        width: 80px;
        margin-right: 5px;
        margin-bottom: 0;
    }

    #reel div:last-child {
        margin-right: 0;
    }

    #reel>article {
        display: none;
        flex-direction: row;
    }

    .cw>section {
        font-size: 9px;
    }

    #cat {
        height: auto;
        width: 100vw;
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
    }
  
    #cat button {
        width: auto;
        height: 25px;
        vertical-align: top;
        display: inline;
        writing-mode: horizontal-tb;
        text-orientation: upright;
        margin: 0 3px 0 3px;
        padding: 5px 10px;
        border-radius: 0 0 10px 10px;
    }

    #enlarge img {
        max-width: unset;
    }
  }

