@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --mainColor: #FE2712;
    --hoverColor: #EA2113;
    --backgroundColor: #ffffff;
    --darkColorOne: #312f3a;
    --darkColorTwo: #45424b;
    --greyOne: #919191;
    --greyTwo: #aaa;
}

*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: red;
    animation: fadein 1s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

img {
    width: 100%;
}

a {
    text-decoration: none;
}

.big-wrapper {
    padding: 1.7rem 0 2rem;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--backgroundColor);
}

.logo img {
    width: 60px;
    margin-right: .6rem;
    margin-top: -0.6rem;
}

.container {
    max-width: 81rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
    z-index: 10;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header {
    position: relative;
    z-index: 70;
}

.logo  {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.links ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.links a {
    color: var(--mainColor);
    margin: 2rem;
    display: inline-block;
}

.links {
    display: flex;
    list-style: none;
    align-items: center;
}

.menu {
    position: relative;
    z-index: 99;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    display: none;
}

.menu .bar {
    position: relative;
    width: 100%;
    height: 3px;
    background-color: var(--darkColorTwo);
    border-radius: 3px;
    transition: .5s;
}

.menu .bar::before, 
.menu .bar::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--darkColorTwo);
    border-radius: 3px;
    transition: .5s;
}

.menu .bar::before {
    transform: translateY(-8px);
}

.menu .bar::after {
    transform: translateY(8px);
}

.big-wrapper.active .menu .bar {
    background-color: transparent;
    transform: translateX(-325px);
}

.big-wrapper.active .bar::before {
    transform: translateY(0) rotate(45deg);
}

.big-wrapper.active .bar::after {
    transform: translateY(0) rotate(-45deg);
}

.btn {
    display: inline-block;
    padding: .9rem 1.9rem;
    background-color: var(--mainColor);
    border-radius: 16px;
    text-transform: capitalize;
    transition: .3s;
    color: white !important;
}

.overlay {
    display: none;
}

@media screen and (max-width: 870px) {

    .menu {
        display: flex;
    }

    .links {
        position: fixed;
        top: 0;
        right: 0;
        max-width: 450px;
        width: 100%;
        height: 100%;
        background-color: var(--mainColor);
        z-index: 95;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: .5s;
    }

    .links ul {
        flex-direction: column;
    }

    .links a {
        color: #fff;
        margin-left: 0;
        padding: 2rem 0;
    }
    
    .links .btn {
        background: none;
    }

    .overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        opacity: 0;
        pointer-events: none;
    }

    .big-wrapper.active .links {
        transform: translateX(0);
        box-shadow: 0 0 50px 2px rgba(0, 0, 0, 0.4);
    }
}

h1 {
    margin: 0;
}

.news-container {
    display: grid;
    grid-gap: 20px;
}

.news-item {
    background-color: #f8f8f8;
    padding: 20px;
}

h2 {
    margin-top: 0;
}

.news-date {
    color: red;
    font-style: italic;
}

@media screen and (max-width: 410px) {
    .big-wrapper.active .menu .bar {
        background-color: transparent;
        transform: translateX(-270px);
    }
}
