* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
}

:root {
    --main: rgb(255, 255, 255);
    --main-text: rgb(0, 0, 0);
}

body {
    background-image: url("https://images.pexels.com/photos/1072179/pexels-photo-1072179.jpeg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-clip: border-box;
    min-height: 100vh;
}

img {
    max-width: 100%;
}

@font-face {
    font-family: 'Poppins';
    src: url(https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700&display=swap);
}

.container {
    margin: 0;
    width: 100%;
}

.header {
    margin-bottom: 1rem;
    padding: 1rem 0 1rem 4rem;
    width: 100%;
    background-color: var(--main);
    transition: background-color .25s;
}

h1 {
    color: var(--main-text);
    font-size: 2.5rem;
    font-weight: 600;
    display: inline;
}

.header>span {
    font-size: 1.2rem;
    font-weight: 400;
    display: inline;
    padding: 0.3rem;
    background-color: #4700cc;
    color: #fff;
    border-radius: 0.5rem;
}

.logo {
    right: 0;
    top: 0;
    position: absolute;
    font-size: 2.5rem;
    font-weight: 600;
    display: inline;
    padding: 1rem 4rem 1rem 0;
}

.icon {
    width: 2.5rem;
    fill: var(--main-text);
}

#theme {
    cursor: pointer;
    margin-left: 2.5rem;
}

.content {
    margin: 1rem auto;
    padding: 1rem;
    max-width: 1200px;
}

ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 1.5rem;
    margin: 1rem 0;
    padding: 0;
}

@media screen and (max-width: 768px) {
    ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 576px) {
    ul {
        grid-template-columns: minmax(0, 1fr);
    }
}

li {
    list-style: none;
    padding: 2rem;
    border-radius: 1.5rem;
    background-color: var(--main);
    transition: background-color .25s;
    color: var(--main-text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

a.site-title {
    text-decoration: none;
    color: var(--main-text);
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
}

a {
    display: block;
    text-decoration: none;
    color: #4700cc;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    margin: 1rem 0;
}

.tag {
    font-size: 1rem;
    font-weight: 400;
    display: inline;
    padding: 0.3rem;
    background-color: #4700cc;
    color: #fff;
    border-radius: 0.5rem;
    margin: 0 0.5rem;
}

.visit {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    width: 100%;
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 0.5rem;
    transition: 200ms;
}

.visit:hover {
    /* color switch from left to right */
    background-color: #4700cc;
    color: #fff;
}