/* global */

* {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: obviously, sans-serif;
    background-color: #f4f4f4;
    color: var(--font-color);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: obviously-wide, sans-serif;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* end of global */

@media(min-width: 1366px) {
    .blogs-grid {
        margin: 50px 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 50px;
    }
    .blog-item {
        padding: 0;
        background: var(--primary-color);
        border-radius: 3px;
        overflow: hidden;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .blog-image {
        min-width: 300px;
        max-width: 300px;
        height: 100%;
        background-size: cover;
        background-position: 50% 50%;
        background-repeat: no-repeat;
    }
    .blog-texts {
        padding: 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
    .blog-title {
        font-family: obviously, sans-serif;
        margin: 25px auto 0 auto;
        font-size: 20px;
        font-weight: 600;
        color: var(--secondary-color);
        text-decoration: none;
        text-align: center;
    }
    .blog-title:hover {
        text-decoration: underline;
    }
    .blog-item p {
        margin: 10px auto;
        font-size: 15px;
        font-weight: 500;
        color: var(--font-color);
        text-align: center;
    }
    .blog-button {
        font-family: pirulen, sans-serif;
        text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
        display: inline-block;
        border-radius: 2px;
        margin: 10px auto;
        padding: 15px;
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        background: var(--font-color);
        color: var(--secondary-color);
        text-decoration: none;
        text-align: center;
    }
    .blog-button:hover {
        opacity: 0.9;
    }
    .pagination-container {
        margin: 50px auto;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .previous-next {
        text-transform: uppercase;
        font-size: 30px;
        font-weight: 500;
        color: var(--primary-color);
        text-decoration: none;
    }
    .pagination-container span {
        text-transform: uppercase;
        font-size: 30px;
        font-weight: 500;
        color: var(--font-color);
        opacity: 0.5;
    }
    .page-number-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .page-number-container a {
        text-transform: uppercase;
        font-size: 30px;
        font-weight: 500;
        color: var(--primary-color);
        margin: 0 10px;
    }
    .page-number-container span {
        text-transform: uppercase;
        font-size: 30px;
        font-weight: 500;
        color: var(--font-color);
        opacity: 0.5;
        margin: 0 10px;
    }
}

@media(max-width: 1366px) and (min-width: 1024px) {
    .blogs-grid {
        margin: 50px 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 50px;
    }
    .blog-item {
        padding: 0;
        background: var(--primary-color);
        border-radius: 3px;
        overflow: hidden;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .blog-image {
        min-width: 240px;
        max-width: 240px;
        height: 100%;
        background-size: cover;
        background-position: 50% 50%;
        background-repeat: no-repeat;
    }
    .blog-texts {
        padding: 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
    .blog-title {
        font-family: obviously, sans-serif;
        margin: 25px auto 0 auto;
        font-size: 18px;
        font-weight: 600;
        color: var(--secondary-color);
        text-decoration: none;
        text-align: center;
    }
    .blog-title:hover {
        text-decoration: underline;
    }
    .blog-item p {
        margin: 10px auto;
        font-size: 15px;
        font-weight: 500;
        color: var(--font-color);
        text-align: center;
    }
    .blog-button {
        font-family: pirulen, sans-serif;
        text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
        display: inline-block;
        border-radius: 2px;
        margin: 10px auto;
        padding: 15px;
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        background: var(--font-color);
        color: var(--secondary-color);
        text-decoration: none;
        text-align: center;
    }
    .blog-button:hover {
        opacity: 0.9;
    }
    .pagination-container {
        margin: 50px auto;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .previous-next {
        text-transform: uppercase;
        font-size: 30px;
        font-weight: 500;
        color: var(--primary-color);
        text-decoration: none;
    }
    .pagination-container span {
        text-transform: uppercase;
        font-size: 30px;
        font-weight: 500;
        color: var(--font-color);
        opacity: 0.5;
    }
    .page-number-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .page-number-container a {
        text-transform: uppercase;
        font-size: 30px;
        font-weight: 500;
        color: var(--primary-color);
        margin: 0 10px;
    }
    .page-number-container span {
        text-transform: uppercase;
        font-size: 30px;
        font-weight: 500;
        color: var(--font-color);
        opacity: 0.5;
        margin: 0 10px;
    }
}

@media(max-width: 1024px) and (min-width: 769px) {
    .blogs-grid {
        margin: 50px 0;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 50px;
    }
    .blog-item {
        padding: 0;
        background: var(--primary-color);
        border-radius: 3px;
        overflow: hidden;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .blog-image {
        min-width: 300px;
        max-width: 300px;
        height: 100%;
        background-size: cover;
        background-position: 50% 50%;
        background-repeat: no-repeat;
    }
    .blog-texts {
        padding: 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
    .blog-title {
        font-family: obviously, sans-serif;
        margin: 25px auto 0 auto;
        font-size: 17px;
        font-weight: 600;
        color: var(--secondary-color);
        text-decoration: none;
        text-align: center;
    }
    .blog-title:hover {
        text-decoration: underline;
    }
    .blog-item p {
        margin: 10px auto;
        font-size: 15px;
        font-weight: 500;
        color: var(--font-color);
        text-align: center;
    }
    .blog-button {
        font-family: pirulen, sans-serif;
        text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
        display: inline-block;
        border-radius: 2px;
        margin: 10px auto;
        padding: 15px;
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        background: var(--font-color);
        color: var(--secondary-color);
        text-decoration: none;
        text-align: center;
    }
    .blog-button:hover {
        opacity: 0.9;
    }
    .pagination-container {
        margin: 50px auto;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .previous-next {
        text-transform: uppercase;
        font-size: 30px;
        font-weight: 500;
        color: var(--primary-color);
        text-decoration: none;
    }
    .pagination-container span {
        text-transform: uppercase;
        font-size: 30px;
        font-weight: 500;
        color: var(--font-color);
        opacity: 0.5;
    }
    .page-number-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .page-number-container a {
        text-transform: uppercase;
        font-size: 30px;
        font-weight: 500;
        color: var(--primary-color);
        margin: 0 10px;
    }
    .page-number-container span {
        text-transform: uppercase;
        font-size: 30px;
        font-weight: 500;
        color: var(--font-color);
        opacity: 0.5;
        margin: 0 10px;
    }
}

@media(max-width: 769px) {
    .blogs-grid {
        margin: 50px 0;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 50px;
    }
    .blog-item {
        padding: 0;
        background: var(--primary-color);
        border-radius: 3px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    .blog-image {
        min-width: 100%;
        max-width: 100%;
        height: 200px;
        background-size: cover;
        background-position: 50% 50%;
        background-repeat: no-repeat;
    }
    .blog-texts {
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
    .blog-title {
        font-family: obviously, sans-serif;
        margin: 0 auto 0 auto;
        font-size: 17px;
        font-weight: 600;
        color: var(--secondary-color);
        text-decoration: none;
        text-align: center;
    }
    .blog-title:hover {
        text-decoration: underline;
    }
    .blog-item p {
        margin: 15px auto;
        font-size: 15px;
        font-weight: 500;
        color: var(--font-color);
        text-align: center;
    }
    .blog-button {
        font-family: pirulen, sans-serif;
        text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
        display: inline-block;
        border-radius: 2px;
        margin: 0 auto 15px auto;
        padding: 15px;
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        background: var(--font-color);
        color: var(--secondary-color);
        text-decoration: none;
        text-align: center;
    }
    .blog-button:hover {
        opacity: 0.9;
    }
    .pagination-container {
        margin: 50px auto;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .previous-next {
        text-transform: uppercase;
        font-size: 25px;
        font-weight: 500;
        color: var(--primary-color);
        text-decoration: none;
    }
    .pagination-container span {
        text-transform: uppercase;
        font-size: 25px;
        font-weight: 500;
        color: var(--font-color);
        opacity: 0.5;
    }
    .page-number-container {
        display: none;
        flex-direction: row;
        justify-content: space-between;
    }
    .page-number-container a {
        text-transform: uppercase;
        font-size: 25px;
        font-weight: 500;
        color: var(--primary-color);
        margin: 0 10px;
    }
    .page-number-container span {
        text-transform: uppercase;
        font-size: 25px;
        font-weight: 500;
        color: var(--font-color);
        opacity: 0.5;
        margin: 0 10px;
    }
}
