body {
    font-family: Work Sans;
    margin: 0;
    border: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: rgb(221, 116, 116);
}

.breaker {
    display: none;
}
.desktop-view-logo {
    display: none;
}
nav {
    display: none;
}

footer {
    font-size: .6em;
    box-sizing: border-box;
    text-align: center;
    margin: 20px;
}

footer a {
    color: rgb(51, 114, 233);
}

/* Mobile first development */
header {
    display: flex;
    justify-content: center;
    margin: 10px 20px;
}
h1 {
    align-self: center;
    color: rgb(107, 106, 105);
}

.logo {
    width: 80px;
    height: 80px;
    margin-right: 10px;
}

h2 {
    padding-left: 10px;
    border-left: 4px solid rgb(214, 116, 116);
}

h3 {
    padding-left: 10px ;
    border-left: 3px solid rgb(214, 116, 116);
}
p {
    line-height: 1.5;
}
/* main news */
.main-news {
    background-color: rgba(199, 199, 199, 0.205);
    padding: 1vw;
}
.main-news-img {
    width: 100%;
}
.main-news-content p {
    padding: 10px;
    text-align: justify;
}

/* other news */
.other-news {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: auto;
}
.other-news img {
    display: flex;
    justify-self: center;
    width: 100%;
}

article {
    padding: 2vw;
}
article p, article a {
    padding-left: 5px;
}

.other-news-polaroid {
    padding: 10px;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 2px 2px rgba(136, 130, 130, 0.4);
} 

/* Animation part (Demo)
If there's no forwards, the header will disappear after it has expanded!
tranfrom-origin 0 0 otherwise the header will start to expand from the center.
So I set it at 0 0 so it starts from the left of the x axis */

.logo, .desktop-view-logo {
    animation: expandLogo 2s forwards;
    transform: scaleX(0);
    transform-origin: 0 0;
}
a:hover {
    font-weight: 600;
    color:rgb(223, 138, 117);
}

@keyframes expandLogo {
    to {
        transform: scaleX(1)
    }
}

/* tablet view */
@media (min-width: 668px) {

    .logo {
        display: none;
    }
    h1 {
        display: none;
    }

    header {
        display: flex;
        flex-direction: column;
        margin: auto;
    }
    .desktop-view-logo {
        display: flex;
        align-self: center;
        width: 200px;
    }
    nav {
        display: flex;
        align-self: center;
    }
    li {
        display: inline-block;
    }

    nav a {
        margin-right: 20px;
        text-decoration: none;
        color: black;
        font-weight: 600;   
    }
    .social-icons {
        display: none;
    }
    .main-news {
        display: flex;
        gap: 20px;
    }
    .main-news-img {
        width: 50%;
        margin: auto;
    }
    .main-news-content {
        align-self: center;
    }
    .other-news {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
/* Desktop view */
@media (min-width: 1024px) {
    header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    nav {
        align-self: flex-end;
        padding: 0;
    }
    .other-news {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}