@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap");
* {
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
}

html,
body {
    height: 100%;
}

main {
    min-height: 100%;
    background-color: rgb(221, 221, 221);
}


/* HEADER */

header {
    padding: 15px 5%;
}

.search-box input[type="text"] {
    width: 100%;
    padding: 10px;
    padding-right: 30px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 12px;
    color: limegreen;
    outline: none;
}

.logo img {
    width: 100%;
}

.fa-search {
    position: absolute;
    margin-top: 10%;
    margin-left: 80%;
}

.fa-bars {
    color: limegreen;
}


/* .feedback-section{
    margin-top: 100%;
} */

.card {
    margin-bottom: 4%;
}

.card-post:hover {
    border: 1.3px solid grey;
}

.card a:hover {
    text-decoration: none;
}

.votesNumber,
.feedback-section {
    font-size: 13px;
}

.votes-div:hover {
    background-color: lightgrey;
}


/* Add header code here. Incase anything breaks. We are coming for your head Karen!!!!! */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 1%;
    padding-top: 3%;
    padding-bottom: 3%;
    height: 20vh; */
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header ul li {
    float: left;
}

header ul li a {
    display: inline;
    padding: 12px;
    font-size: 1.1em;
    text-decoration: none;
    color: #000000;
}

header ul li a:hover {
    background-color: limegreen;
    color: #fff;
    text-decoration: none;
    transition: .5s;
}

.menu-toggle {
    display: inline;
}

.dropdown-content {
    display: none;
}

.search-box input[type="text"] {
    width: 100%;
    padding: 10px;
    padding-right: 30px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 15px;
    color: limegreen;
    outline: none;
}

.fa-caret-up,
.fa-caret-down,
.fa-comment,
.fa-star {
    color: #dddddd;
}

.fa-caret-up:hover {
    color: limegreen;
}

.fa-caret-down:hover {
    color: red;
}

.fa-comment:hover,
.fa-star:hover {
    color: white;
    background-color: #dddddd;
    padding: 3px;
    border-radius: 4px;
}

.feedback-section {
    margin-top: 2.5%;
}


/* START of css style for CAROUSEL of trendingProjects */

.slider {
    position: relative;
}

.all-posts {
    width: 80%;
    height: 300px;
    margin: 0px auto;
    padding: 10px 0px 10px 0px;
    overflow: hidden;
}

.all-posts .post {
    background-color: #fff;
    border-radius: 5px;
    display: inline-block;
    margin: 0px 10px;
    width: 300px;
    height: 330px;
    box-shadow: 1rem 1rem 1rem 1rem lightgray;
}

.all-posts .post img {
    width: 100%;
    height: 200px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.all-posts .post .post-info {
    height: 130px;
}

.all-posts .post .post-info h4 {
    margin: 5px;
    padding: 10px 5px;
}

.sub {
    padding-left: 3%;
}

.all-posts .post .post-info a {
    text-decoration: none;
    color: inherit;
}

.all-posts .post .post-info a:hover {
    color: limegreen;
}

.slider-title {
    text-align: center;
    margin: 30px auto;
    color: #2b2d2f;
}

.slider .next {
    position: absolute;
    top: 50%;
    right: 30px;
    font-size: 2em;
    color: limegreen;
    cursor: pointer;
}

.slider .prev {
    position: absolute;
    top: 50%;
    left: 30px;
    font-size: 2em;
    color: limegreen;
    cursor: pointer;
}


/* MAIN */

.post1 {
    border: 2px solid rgb(128, 128, 128);
}

.owner {
    color: #808080;
    font-size: 13px;
}

ul {
    list-style-type: none;
}

ul li {
    display: inline-block;
}

.views {
    font-size: 15px;
    padding-top: 60px;
}

.card-header {
    background: url("../images/cute-lime.jpg") rgba(0, 0, 0, 0.2);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
    color: white;
}

.communities {
    display: none;
}

.hidden {
    display: none;
}

.sidebar {
    background-color: blueviolet;
    height: 50%;
    width: 200px;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    overflow-x: hidden;
    text-align: center;
}


/* FOOTER */

footer {
    background-color: limegreen;
    color: #fff;
    height: 62vh;
}

.foot-content {
    width: 100%;
    display: flex;
}

.foot-content,
.footer-section {
    flex: 1;
}

footer {
    background-color: limegreen;
    color: #fff;
    height: 62vh;
}

.foot-content {
    width: 100%;
    display: flex;
}

.foot-content,
.footer-section {
    flex: 1;
}

.footer-section img,
.footer-section p,
.footer-section a,
.contact-info span,
.socials a {
    padding-left: 8%;
}

.fa-facebook,
.fa-twitter,
.fa-instagram,
.fa-youtube {
    color: #fff;
}

.about .contact-info span {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.about .socials a {
    border: 1px solid limegreen;
    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 0.3s;
}

.about .socials a:hover {
    border: 1px solid white;
    transition: all 0.3s;
    color: #fff;
}

.terms {
    color: white;
}

.terms:hover {
    margin-left: 15px;
    color: #2b2d2f;
    transition: all 0.3s;
}

.foot-content .footer-section {
    padding-left: 3%;
    padding-right: 20%;
    padding-bottom: 2%;
}

.foot-content .footer-section img {
    padding-top: 5%;
    padding-bottom: 2%;
}

.foot-content .contact h2 {
    color: #fff;
    text-align: center;
    padding-top: 7%;
}

.foot-content .contact form {
    border-radius: 10px;
    padding: 20px;
    padding-left: 20%;
    width: 100%;
}

.foot-content .contact .text-input {
    align-self: center;
    width: 100%;
    line-height: 1.5rem;
    padding: 0.9rem 1.2rem;
    margin: 5px 0;
    display: inline-block;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
}

.foot-content .contact .text-input:hover {
    border: 1px solid #2b2d2f;
}

.btn {
    background-color: #2b2d2f;
    color: white;
    padding: 10px 15px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.upload-form {
    display: none;
}


/* MEDIA QUERIES */

@media only screen and (min-width: 500px) {
    .fa-search {
        position: absolute;
        margin-top: 4%;
        margin-left: 50%;
    }
    .logo img {
        width: 60%;
    }
}

@media only screen and (min-width: 1000px) {
    .communities {
        display: inline;
    }
    .menu-toggle {
        display: none;
    }
    .dropdown-content {
        display: block;
    }
}

@media only screen and (max-width: 934px) {
    footer {
        height: auto;
    }
    footer .foot-content {
        height: auto;
        flex-direction: column;
    }
}