@import url('https://fonts.googleapis.com/css?family=Nunito&display=swap');

body {
    background-color: #0AFFED;
    font-family: 'Nunito', sans-serif;
}

.content-wrapper {
    width: 90%;
    margin: 0 auto;
}

header {
    border-bottom: 1px solid #fff;
    background-color: #19dbe2;
}

header .content-wrapper {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    width: 200px;
    height: 100%;
    min-height: 100px;
}

.right-part-header {
    width: 30%;
    height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.right-part-header a {
    color: #f9f9f9;
    font-weight: bold;
}

ul.socials {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
}

ul.socials li:first-child {
    margin-right: 50%;
}

.navigation ul {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
}

.navigation a {
    text-transform: uppercase;
    text-decoration: none;
}

.navigation a:hover {
    transition: color .5s;
    color: #eeeeee;
}

.hamburger-menu {
    display: none;
}

.main-content {
    margin: 10px auto;
    display: grid;
    grid-gap: 10px;
    grid:
        "main main author"
        "main main aside"
        "main main ."
        / 2fr 2fr 1fr;
}

main {
    grid-area: main;
}

.cards {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 300px));
    align-items: start;
    grid-gap: 10px;
    justify-content: space-around;
}

.card {
    width: 100%;
    padding: 5px;
    background-color: #f9f9f9;
}

.card-img-wrapper {
    width: 100%;
    height: 200px;  
    overflow: hidden;
}

.card-img{
    display: block;
    width: 100%;
    height: 100%;
    transition: transform .5s;
}

.card:hover .card-img {
    transform: scale(1.2);
}

.card .title {
   font-weight: normal;
   text-transform: uppercase;
   margin: 10px 0;
}

.card .description {
   margin-bottom: 10px;
   text-align: justify;
}

.fa-star:hover {
    color: red;
    cursor: pointer;
}

.author {
    padding: 10px;
    border: 2px dashed #fff;
    border-radius: 4px;    
}

aside {
    grid-area: aside;
}

aside section {
    margin-bottom: 10px;
    padding: 10px;
    border: 2px dashed #fff;
    border-radius: 4px;
}

aside section:last-child {
    margin-bottom: 0;
}

.author {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-area: author;
}

.author h3 {
    margin-bottom: 10px;
}

.author h3::first-letter {
    color: red;
}

.author img {
    width: 150px;
    height: auto;
    border-radius: 50%;
    transition: filter .5s;
    border: 1px solid #fff;
}

.author img:hover {
    filter: hue-rotate(40deg);
}

.author .name {
    margin: 10px 0;
    text-transform: uppercase;
    font-weight: bold;   
}

.author .description {
    text-align: justify;
}

.social-list-wrap h3 {
    margin-bottom: 10px;
    text-align: center;
}

.social-list-wrap h3::first-letter {
    color: red;
}

.social-list {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.social-list a {
    font-size: 24px;
    color: #111;
}

.subscribe form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.subscribe h3 {
    margin-bottom: 10px;
}

.subscribe h3::first-letter {
    color: red;
}

.subscribe input {
    width: 100%;
    height: 40px;
    margin-bottom: 2px;
    border: none;
    background: linear-gradient(to right, #ffefba, #ffffff);
    text-align: center;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    border-radius: 4px;
}

.subscribe input:last-child {
    margin-bottom: 0;
}

.subscribe input[type="submit"] {
    margin-top: 5px;
    cursor: pointer;
    background: linear-gradient(to right, #78ffd6, #a8ff78);
}

.subscribe input[type="submit"]:hover {
    background: linear-gradient(to right, #63f8cc, #9dfd69);
}

.search h3 {
    text-align: center;
    margin-bottom: 5px;
}

.search h3::first-letter {
    color: red;
}

.search form {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search i {
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

.search input {
    height: 40px;
    border: none;
    border-radius: 4px;
    text-align: center;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
}

.search input[type="search"] {
    width: 70%;
    margin-right: 5px;
    background: linear-gradient(to right, #ffefba, #ffffff);
}

.search input[type="submit"] {
    width: 30%;
    padding: 5px;
    cursor: pointer;
    background: linear-gradient(to right, #78ffd6, #a8ff78);
}

.search input[type="submit"]:hover {
    background: linear-gradient(to right, #63f8cc, #9dfd69);
}

.tag-cloud-wrap h3 {
    text-align: center;
    margin-bottom: 5px;
}

.tag-cloud-wrap h3::first-letter {
    color: red;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.tag-cloud span {
    display: block;
    margin: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #eee;
}

.tag-cloud span:hover {
    background-color: #f9f9f9;
}

.comments-wrap h3 {
    margin-bottom: 10px;
    text-align: center;
}

.comments-wrap h3::first-letter {
    color: red;
}

.comments {
    list-style-type: none;
}

.comments li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    padding: 5px;
    border: 1px dotted #fff;
    border-radius: 4px;
}

.comments li:last-child {  
    margin-bottom: 0;
}

.comments .user-face {
    display: block;
    width: 20%;
    height: auto;
    margin-right: 5px;
    border-radius: 4px;
}

.comments .user-name {
    font-weight: bold;
}

.comments .user-info-wrap {
    width: 79%;
}

.comments .user-info-wrap .user-msg {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

footer {
    background-color: #19dbe2;
    border-top: 1px solid #fff;
}

footer .content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    padding: 10px 0;
}

.site-name {
    text-transform: uppercase;
}

.additional-contacts span {
    user-select: all;
}

@media screen and (max-width: 1007px) {
    .cards {
        grid-template-columns: auto;
    }
}

@media screen and (max-width: 800px) {
    .right-part-header {
        width: 40%;
    }

    .main-content {
        grid:
            "author"
            "main"
            "aside"
        ;
    }

    .cards {
        grid-template-columns: repeat(auto-fill, minmax(200px, 300px));
    }

    footer .content-wrapper {
        flex-direction: column;
    }

    .copyright {
        margin: 40px 0;
    }
}

@media screen and (max-width: 695px) {
    .hamburger-menu {
        display: block;
    }

    .right-part-header {
        display: none;
    }

    .cards {
        grid-template-columns: repeat(auto-fill, minmax(200px, 250px));
    }
}

@media screen and (max-width: 584px) {
    .cards {
        grid-template-columns: auto;
    }
}
