
/* Basic styling */
.actions {
    margin-top: 1rem;
}

.meta .answers, .meta .votes {
    font-size: 0.8em;
    color: #666;
    margin-right: 1rem;
}

.stats li a {
    text-decoration: none;
}

.stats li a:hover {
    color: #3498db;
}

.vote-link {
    text-decoration: none;
    transition: color 0.2s;
}

.vote-link:hover {
    color: #3498db;
}

.vote-link.voted {
    color: #3498db;
}

.author {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.profile-circle-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 10px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: inline-block;
}

/* Button styling from template */
.button {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
    -moz-transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    -webkit-transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    -ms-transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    background-color: transparent;
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(160, 160, 160, 0.3);
    color: #3c3b3b !important;
    cursor: pointer;
    display: inline-block;
    font-family: "Raleway", Helvetica, sans-serif;
    font-size: 0.6em;
    font-weight: 800;
    height: 4.8125em;
    letter-spacing: 0.25em;
    line-height: 4.8125em;
    padding: 0 2.5em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-page .button {
    height: 4.8125em;
    line-height: 4.8125em;
}

body:not(.main-page) .button {
    height: auto;
    line-height: normal;
    padding: 0.6em 1.2em;
}

.button:hover {
    box-shadow: inset 0 0 0 1px #2ebaae;
    color: #2ebaae !important;
}

.button:hover:active {
    background-color: rgba(46, 186, 174, 0.05);
}

.button:before, .button:after {
    color: #aaaaaa;
    position: relative;
}

.button.large {
    font-size: 0.7em;
    padding: 0 3em;
}

body:not(.main-page) .button.large {
    padding: 0.8em 3em;
}

.button.small {
    font-size: 0.5em;
}

.button.disabled, .button:disabled {
    -moz-pointer-events: none;
    -webkit-pointer-events: none;
    -ms-pointer-events: none;
    pointer-events: none;
    color: rgba(160, 160, 160, 0.3) !important;
}

.button.disabled:before, .button:disabled:before {
    color: rgba(160, 160, 160, 0.3) !important;
}

/* Posts */
ul.posts {
    list-style: none;
    padding: 0;
}

ul.posts li {
    border-top: dotted 1px rgba(160, 160, 160, 0.3);
    margin: 1.5em 0 0 0;
    padding: 1.5em 0 0 0;
}

ul.posts li:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

ul.posts article {
    display: -moz-flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -moz-align-items: -moz-flex-start;
    -webkit-align-items: -webkit-flex-start;
    -ms-align-items: -ms-flex-start;
    align-items: flex-start;
    -moz-flex-direction: row-reverse;
    -webkit-flex-direction: row-reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
}

ul.posts article .image {
    display: block;
    margin-right: 1.5em;
    min-width: 4em;
    width: 4em;
}

ul.posts article .image img {
    width: 100%;
}

ul.posts article header {
    -moz-flex-grow: 1;
    -webkit-flex-grow: 1;
    -ms-flex-grow: 1;
    flex-grow: 1;
    -ms-flex: 1;
}

ul.posts article header h3 {
    font-size: 0.7em;
    margin-top: 0.125em;
}

ul.posts article header .published {
    display: block;
    font-family: "Raleway", Helvetica, sans-serif;
    font-size: 0.6em;
    font-weight: 400;
    letter-spacing: 0.25em;
    margin: -0.625em 0 1.7em 0;
    text-transform: uppercase;
}

ul.posts article header > :last-child {
    margin-bottom: 0;
}

/* Post  */
.post {
    padding: 3em 3em 1em 3em !important;
    background: #ffffff !important;
    border: solid 1px rgba(160, 160, 160, 0.3) !important;
    margin: 0 0 3em 0 !important;
    position: relative !important;
}

.post > header {
    display: -moz-flex !important;
    display: -webkit-flex !important;
    display: -ms-flex !important;
    display: flex !important;
    border-bottom: solid 1px rgba(160, 160, 160, 0.3) !important;
    left: -3em !important;
    margin: -3em 0 3em 0 !important;
    position: relative !important;
    width: calc(100% + 6em) !important;
}

.post > header .title {
    -moz-flex-grow: 1 !important;
    -webkit-flex-grow: 1 !important;
    -ms-flex-grow: 1 !important;
    flex-grow: 1 !important;
    -ms-flex: 1 !important;
    padding: 3.75em 3em 3.3em 3em !important;
}

.post > header .title h2 {
    font-weight: 900 !important;
    font-size: 1.5em !important;
}

.post > header .title > :last-child {
    margin-bottom: 0 !important;
}

.post > header .meta {
    padding: 3.75em 3em 1.75em 3em !important;
    border-left: solid 1px rgba(160, 160, 160, 0.3) !important;
    min-width: 17em !important;
    text-align: right !important;
    width: 17em !important;
}

.post > header .meta > * {
    margin: 0 0 1em 0 !important;
}

.post > header .meta > :last-child {
    margin-bottom: 0 !important;
}

.post > header .meta .published {
    color: #3c3b3b !important;
    display: block !important;
    font-family: "Raleway", Helvetica, sans-serif !important;
    font-size: 0.7em !important;
    font-weight: 800 !important;
    letter-spacing: 0.25em !important;
    margin-top: 0.5em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.post > footer {
    display: -moz-flex !important;
    display: -webkit-flex !important;
    display: -ms-flex !important;
    display: flex !important;
    -moz-align-items: center !important;
    -webkit-align-items: center !important;
    -ms-align-items: center !important;
    align-items: center !important;
}

.post > footer .actions {
    -moz-flex-grow: 1 !important;
    -webkit-flex-grow: 1 !important;
    -ms-flex-grow: 1 !important;
    flex-grow: 1 !important;
}

.post > footer .stats {
    cursor: default !important;
    list-style: none !important;
    padding: 0 !important;
}

.post > footer .stats li {
    border-left: solid 1px rgba(160, 160, 160, 0.3) !important;
    display: inline-block !important;
    font-family: "Raleway", Helvetica, sans-serif !important;
    font-size: 0.6em !important;
    font-weight: 400 !important;
    letter-spacing: 0.25em !important;
    line-height: 1 !important;
    margin: 0 0 0 2em !important;
    padding: 0 0 0 2em !important;
    text-transform: uppercase !important;
}

.post > footer .stats li:first-child {
    border-left: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.post > footer .stats li .icon {
    border-bottom: 0 !important;
}

.post > footer .stats li .icon:before {
    color: rgba(160, 160, 160, 0.3) !important;
    margin-right: 0.75em !important;
}


.main-page .post:first-of-type {
    padding: 2em 3em 1em 3em !important;
}

.main-page .post:first-of-type .title h2 {
    margin-bottom: 0.5em !important;
}

.guest-actions p {
    margin-bottom: 1em !important;
}


.main-page section h3 {
    color: #3c3b3b;
    font-family: "Raleway", Helvetica, sans-serif;
    font-weight: 800;
    letter-spacing: 0.25em;
    line-height: 1.65;
    margin: 0 0 1em 0;
    text-transform: uppercase;
}

/* Media query adjustments from the original template */
@media screen and (max-width: 980px) {
    .post {
        border-left: 0 !important;
        border-right: 0 !important;
        left: -3em !important;
        width: calc(100% + 6em) !important;
    }

    .post > header {
        -moz-flex-direction: column !important;
        -webkit-flex-direction: column !important;
        -ms-flex-direction: column !important;
        flex-direction: column !important;
        padding: 3.75em 3em 1.25em 3em !important;
        border-left: 0 !important;
    }

    .post > header .title {
        -ms-flex: 0 1 auto !important;
        margin: 0 0 2em 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .post > header .meta {
        -moz-align-items: center !important;
        -webkit-align-items: center !important;
        -ms-align-items: center !important;
        align-items: center !important;
        display: -moz-flex !important;
        display: -webkit-flex !important;
        display: -ms-flex !important;
        display: flex !important;
        -moz-justify-content: center !important;
        -webkit-justify-content: center !important;
        -ms-justify-content: center !important;
        justify-content: center !important;
        border-left: 0 !important;
        margin: 0 0 2em 0 !important;
        padding-top: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        width: 100% !important;
    }

    .post > header .meta > * {
        border-left: solid 1px rgba(160, 160, 160, 0.3) !important;
        margin-left: 2em !important;
        padding-left: 2em !important;
    }

    .post > header .meta > :first-child {
        border-left: 0 !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .post > header .meta .published {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }

    .post > header .meta .author {
        -moz-flex-direction: row-reverse !important;
        -webkit-flex-direction: row-reverse !important;
        -ms-flex-direction: row-reverse !important;
        flex-direction: row-reverse !important;
        margin-bottom: 0 !important;
    }

    .post > header .meta .author .name {
        margin: 0 0 0 1.5em !important;
    }
}

@media screen and (max-width: 736px) {
    .post {
        padding: 1.5em 1.5em 0.1em 1.5em !important;
        left: -1.5em !important;
        margin: 0 0 2em 0 !important;
        width: calc(100% + 3em) !important;
    }

    .post > header {
        padding: 3em 1.5em 0.5em 1.5em !important;
        left: -1.5em !important;
        margin: -1.5em 0 1.5em 0 !important;
        width: calc(100% + 3em) !important;
    }

    .post > header .title h2 {
        font-size: 1.1em !important;
    }
}

@media screen and (max-width: 480px) {
    .post > header .meta {
        -moz-align-items: center !important;
        -webkit-align-items: center !important;
        -ms-align-items: center !important;
        align-items: center !important;
        -moz-flex-direction: column !important;
        -webkit-flex-direction: column !important;
        -ms-flex-direction: column !important;
        flex-direction: column !important;
    }

    .post > header .meta > * {
        border-left: 0 !important;
        margin: 1em 0 0 0 !important;
        padding-left: 0 !important;
    }

    .post > header .meta .author .name {
        display: none !important;
    }

    .post > .image.featured {
        margin-left: -1.5em !important;
        margin-top: -1.5em !important;
        width: calc(100% + 3em) !important;
    }

    .post > footer {
        -moz-align-items: stretch !important;
        -webkit-align-items: stretch !important;
        -ms-align-items: stretch !important;
        align-items: stretch !important;
        -moz-flex-direction: column-reverse !important;
        -webkit-flex-direction: column-reverse !important;
        -ms-flex-direction: column-reverse !important;
        flex-direction: column-reverse !important;
    }

    .post > footer .stats {
        text-align: center !important;
    }

    .post > footer .stats li {
        margin: 0 0 0 1.25em !important;
        padding: 0 0 0 1.25em !important;
    }
} 