/* TODO: Test out the todo feature */

body {
    margin: 0;
}

main {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: auto;
    justify-content: center;
}

nav {
    width: 100%;
    background-color: hsla(0, 0%, 10%, 0);
    position: fixed;
    opacity: 0.5;
    animation-name: navFade;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

nav,
.photoset_text {
    text-align: center;
}

nav,
.navLinks {
    transition: all 0.3s ease-out;
    animation-delay: 0.6s;
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
    animation-duration: 0.3s;
    animation-fill-mode: backwards;
}

nav:hover,
nav:hover .navLinks {
    opacity: 1;
}

nav .navLinks {
    opacity: 0;
}

nav:hover {
    background-color: hsla(0, 0%, 10%, 0.7);
}

h1 {
    font-size: 3em;
    font-weight: normal;
    line-height: 0.9em;
}

.navTitle {
    padding: 0;
    margin: 0;
}

.navDescription {
    
}

.navLinks {
    display: flex;
    justify-content: center;
    animation-name: linksFade;
}

.notes a,
.navLinks > a,
.notecount > a,
.timestamp > a,
.navTitle > a,
footer > a,
.photoset_text > a,
.text .title > a{
    text-decoration: none;
}

.navLinks > a {
    display: inline-block;
    margin: 0 0.3em;
}

.notes a:hover,
.navLinks > a:hover,
.notecount > a:hover,
.timestamp > a:hover,
footer > a:hover,
.photoset_text > a:hover
.text .title > a:hover{
    text-decoration: underline;
}

article {
    transition: max-height 1s 0.2s ease-out;
    overflow: hidden;
    background-color: hsla(0, 0%, 30%, 1);
    align-self: flex-start;
}

article:hover {
    max-height: 100em;
    transition: max-height 1.2s ease;
}

.caption {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}



article:hover .content {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.content,
.photo > a {
    width: 100%;
    height: 25em;
}

.content,
.photo > a,
.photosetcontent {
    background-position: center;
    background-size: cover;
}

.caption_top {
    padding: 0 1em;
}

.caption_bottom {
    position: relative;
    display: inline-flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.1em 0.3em;
    box-sizing: border-box;
    transition: all 0.5s ease;
}

.caption_bottom,
.text .title{
    background-color: hsla(0, 0%, 0%, 0.4);
}

.text .title{
text-align: center;
font-size: 1.2em;
}

.text .body{
    padding: 0 1em;
}

.notecount {
    float: left
}

.timestamp {
    float: right;
}

.photoset .content {
    display: flex;
    flex-wrap: wrap;
}

.photo_2 .photosetcontent {
    height: 50%;
    width: 100%;
}

.photo_3 .photosetcontent:first-of-type {
    height: 50%;
    width: 100%;
}

.photosetcontent,
.photo_3 .photosetcontent:nth-of-type(1n+2) {
    height: 50%;
    width: 50%;
}

.photosetcontent:nth-of-type(1n+5) {
    display: none;
}

footer {
    display: block;
    padding: 1em;
	width:100%;
	position: fixed;
	box-sizing: border-box;
	bottom: 0;
}

.prev_button {
    float: left;
}

.next_button {
    float: right;
}

article:hover .photoset_text {
    opacity: 1;
}

.photoset_text {
    width: 100%;
    height: 1.2em;
    display: inline-block;
    background-color: hsla(0, 0%, 0%, 0.8);
    position: relative;
    bottom: 1.2em;
    opacity: 0;
    
}

.index_page .photoset .caption
{
    top: -1.1em;
    margin-bottom: -1.1em;
}

.photoset_text, .content{
    transition: all 0.3s 0.3s ease-out;
}

article:hover .photoset_text, article:hover .content{
    transition: opacity 0.3s ease-out;
}

@keyframes navFade {
    from {
        opacity: 1;
        background-color: hsla(0, 0%, 10%, 0.7);
    }
    to {
        opacity: 0.5;
        background-color: hsla(0, 0%, 10%, 0);
    }
}

@keyframes linksFade {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.notes {
    width: inherit;
    box-sizing: border-box;
    padding-top: 0.5em;
}

footer{
    pointer-events: none;
}
footer > *
{
    pointer-events: all;
}

.permalink_page .photoset{
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: hsla(0,0%,0%,0)
}
