/****************************/
/******GENERAL***************/
/****************************/

body {
    background-color: #000;
    color: #fff;
    margin: 0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    font-family: 'Open Sans', sans-serif;
}

a {
    text-decoration: none;
    color: #fff;
}

/****************************/
/****SUBREDDIT-BANNER********/
/****************************/


.subreddit-banner {
    /*background-color: rgb(30, 30, 30);*/
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, .7),
                rgba(0, 0, 0, 0.1) 80%),
                rgb(40, 40, 40);
    height: 30px;
    display: flex;
    align-items: flex-end;
    align-content: space-around;
    margin-bottom: 5px;
    overflow-x: scroll;
}



li.sub a {

    font-weight: 100;
    font-size: .8em;
    padding: 5px;
    margin: 0;
    display: inline-block;
    text-transform: lowercase;
    transition: all 300ms ease-in-out;

}

/****************************/
/******HEADER****************/
/****************************/
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    border-bottom: 1px solid #000;
    border-top: 1px solid #000;
    background-color: rgb(30, 30, 30);
    margin: 0;

}

.header-container nav {
    flex: 3;
    margin-bottom: 10px;
}

h1 {
    letter-spacing: 2px;
    /*font-weight: 400;*/
    flex: 1;
}

nav, h1 {
    align-self: flex-end;
    margin: 0;
}



nav a {

    padding: 15px;
    margin: 0;

    transition: all 300ms ease-in-out;
    letter-spacing: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);

}

a:hover {
    color: rgb(130, 130, 130);

}

.clicked a {
    color: rgb(130, 130, 130);
}


ul {
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    text-transform: uppercase;
}



/****************************/
/******POST-CONTAINER********/
/****************************/

.post-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    padding-top: 60px;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, 0.4) 3%), rgb(50, 50, 50);
    /*background-color: ;*/
}

.post {
    position: relative;
    text-align: center;
    color: #fff;
    flex: 1;
    display: flex;
    padding: 2.5px;
    width: 280px;
    height: 280px;



}

@media screen and (max-width: 550px) {
    .post {
        width: 300px;
        height: 300px;
    }
}

.post-image {
    width: 100%;
    background-size: cover;
    filter: brightness(70%);

}



.upper-text {
    position: absolute;
    top: 0;
    width: 100%;

}

.score {
    text-align: right;
    position: absolute;
    right: 10px;
    top: 10px;
}

.author {
    position: absolute;
    top: 10px;
    left: 10px;
    margin: 0;
}

.lower-text {
    position: absolute;
    bottom: 0;
    text-align: left;
    padding: 10px;
}

.title {
    font-size: 1.3em;
    text-align: left;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-weight: 100;
}
