* {
    box-sizing: border-box;
}

html, 
body {
    height: 100%;
    padding: 0px;
    margin: 0px;
    background: #f6f6f6;
    font-family: 'Lora', serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Verdana', serif;
    margin: 5px;
}

a {
    text-decoration: none;
    color: inherit;
}

.clearfix::after {
    content: '';
    display: block;
    clear: both;
}

.msg {
    width: 100%;
    margin: 5px auto;
    padding: 8px;
    border-radius: 5px;
    list-style: none;
  }
  
  .success {
    color: #3a6e3a;
    border: 1px solid #3a6e3a;
    background: #bcf5bc;
  }
  
  .error {
    color: #884b4b;
    border: 1px solid #884b4b;
    background: #f5bcbc;
  }

/* BUTTON */
.btn {
    padding: .5rem 1rem;
    background: #8b0000;
    color: white;
    border: 1px solid transparent;
    border-radius: .25rem;
}

.btn-big {
    padding: .8rem 1.4rem;
    line-height: 1.4rem;
    font-size: 1.1rem;
}

.btn:hover {
    color: white;
    background: #610303;
}

/* TEXT INPUT */
.text-input {
    padding: .7rem 1rem;
    display: block;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    outline: none;
    color: #444;
    line-height: 1.5rem;
    font-size: 1.2em;
    font-family: 'Lora', serif;
}

.login-form .login-form {
    background: #272727;
    color: #bebdbd;
    margin-bottom: 10px;
    line-height: 1.5rem;
    padding: .9rem 1.4rem;
}

/* HEADER */
header {
    background: #8b0000;
    height: 66px;
}

header * {
    color: white;
}

header .logo {
    float: left;
    height: inherit;
    margin-left: 2em;
}

header .logo-text {
    margin: 12px;
    font-family: 'Verdana', serif;
}

header .logo-text span {
    color: #d15757;
}

header ul {
    float: right;
    padding: 0px;
    margin: 0px;
    list-style: none;
}

header ul li {
    float: left;
    position: relative;
}

header ul li ul {
    position: absolute;
    top: 66px;
    right: 0px;
    width: 205px;
    display: none;
}

header ul li:hover ul {
    display: block;
}

header ul li ul li {
    width: 100%;
}

header ul li ul li a {
    padding: 10px;
    background: white;
    color: #444;
}

header ul li ul li a.logout {
    color: red;
}

header ul li ul li a:hover {
    background: #dddada;
}

header ul li a {
    display: block;
    padding: 21px;
    font-size: 1.1em;
    text-decoration: none;
}

header ul li a:hover {
    background: #610303 ;
    transition: 0.5s;
}

header .menu-toggle {
    display: none;
}

/* WRAPPER */
.page-wrapper {
    min-height: 100%;
}

.page-wrapper a:hover {
    color: #610303;
}


/* LOGIN */
.login-form {
    background: white;
    padding: 20px 50px;
    margin: 120px auto;
    width: 30%;
    text-align: center;
    border-radius: 5px;
}

.login-form a {
    display: block;
    padding-top: 15px;
    text-decoration: underline;
}

.login-form .login-title {
    margin-bottom: 30px;
}

/* CONTENT MAIN*/
.content .main-content .post-title{
    font-family: 'Verdana', serif;
}

.content .main-content .post-title.index {
    padding: .4em .6em;
    margin: 30px;
    background: #8b0000;
    color: white;
    border-radius: 5px;
}

.content .main-content.detail .post-title {
    text-align: center;
    margin-bottom: 40px;
}

.content {
    width: 90%;
    margin: 30px auto 30px;
}

.content .main-content {
    width: 70%;
    float: left;
}

.content .main-content.detail {
    background: white;
    padding: 20px 50px;
    font-size: 1.1em;
    border-radius: 5px;
}

.content .main-content .post {
    width: 95%;
    height: 270px;
    margin: 20px auto;
    border-radius: 5px;
    background: white;
    position: relative;
}

.content .main-content .post .read-more {
    color: white;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.content .main-content .post .post-image {
    width: 30%;
    height: 100%;
    float: left;
    border-radius: 5px;
}

.content .main-content .post .post-preview {
    width: 70%;
    padding: 10px;
    float: right;
}

.content .popular .post {
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
    padding-top: 10px;
}
.content .popular .post img {
    height: 75px;
    width: 90px;
    float: left;
    margin-right: 10px;
}

/* CONTENT SIDEBAR*/
.content .sidebar {
    position: raltive;
    width: 30%;
    float: left;
    height: 300px;
}

.content .sidebar.detail {
    padding: 0px 10px;
}

.content .sidebar .section {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.content .sidebar .section .section-title{
    margin: 10px 0px 10px 0px;
    font-family: 'Verdana', serif;
}


.content .sidebar .section.search {
    margin-top: 125px;
}

.content .sidebar .section.topics ul {
    display: block;
    margin: 0px;
    padding: 0px;
    list-style: none;
    border-top: 1px solid #e0e0e0;
}

.content .sidebar .section.topics ul li a {
    display: block;
    padding: 15px 0px 15px 0px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.content .sidebar .section.topics ul li a:hover {
    padding-left: 10px;
    transition: all 0.3s;
}

/* FOOTER */
.footer {
    background: #303036;
    color: #d3d3d3;
    height: 400px;
    position: relative;
}

.footer .footer-content {
    height: 350px;
    display: flex;
}

.footer .footer-content .footer-section {
    flex: 1;
    padding: 25px;
}

.footer .footer-content .about .contact span {
    display: block;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.footer .footer-content .about .socials a {
    border: 1px solid gray;
    width: 45px;
    height: 41px;
    padding-top: 5px;
    margin-right: 5px;
    text-align: center;
    display: inline-block;
    font-size: 1.3em;
    border-radius: 5px;
    transition: all .3s;
}

.footer .footer-content .about .socials a:hover {
    border: 1px solid white;
    color: white;
    transition: all .3s;
}

.footer .footer-content .links ul li a {
    display: block;
    padding: 8px 0px 8px 0px;
    font-size: 1.2em;
    transition: all 0.3s;
}

.footer .footer-content .links ul li a:hover {
    color: white;
    padding-left: 15px;
    transition: all 0.3s;
}

.footer .footer-content .contact-form .contact-input {
    background: #272727;
    color: #bebdbd;
    margin-bottom: 10px;
    line-height: 1.5rem;
    padding: .9rem 1.4rem;
}

.footer .footer-content .contact-form .contact-input:focus {
    background: #1a1a1a;
}

.footer .footer-content .contact-form .contact-btn{
    float: right;
}

.footer .footer-bottom {
    background: #343a40;
    color: #686868;
    height: 50px;
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 0px;
    left: 0px;
    padding-top: 20px;
}

/* MEDIA QUERIES */
@media only screen and (max-width: 750px){
    header {
        position: relative;
    }

    header ul {
        width: 100%;
        background: #ad0202;
        max-height: 0px;
        overflow: hidden;
    }

    .showing {
        max-height: 100em;
    }

    header ul li {
        width: 100%;
    }

    header ul li ul {
        position: static;
        display: block;
        width: 100%;
    }

    header ul li ul li a {
        background: #ad0202;
        color: white;
        padding-left: 50px;
    }
    
    header ul li ul li a:hover {
        background: #610303;
    }

    header ul li ul li a.logout {
        color: white;
    }

    header .menu-toggle {
        position: absolute;
        display: block;
        right: 20px;
        top: 20px;
        font-size: 1.9em;
    }

    header .logo {
        margin-left: .5em;
    }

}
