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

:root {
    --background: rgba(0, 0, 0, 0.9);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    outline: none;
}



/* Navigation styles start */

header {
    background: var(--background);
    text-align: center;
    position: fixed;
    z-index:999;
    width: 100%;
    height: 5rem;
}

.home-img {
    width: 17em;
    padding: .7em;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    position: absolute;
    top: 0;
    left: 0;
    margin-left: 1em;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: white;
    height: 2px;
    width: 2em;
    border-radius: 2px;
    position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    bottom: 7px;
}

.nav-toggle-label span::after {
    top: 7px;
}

nav {
    position: absolute;
    text-align: left;
    top: 100%;
    background: var(--background);
    width: 100%;
    transform: scale(1,0);
    transform-origin: top;
    transition: transform 400ms ease-in-out;
}

nav ul {
    
    margin: 0;
    padding: 0;
    list-style: none;
}

nav li {
    margin-bottom: 2em;
    margin-left: 1em;
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: .8rem;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
}

nav a:hover {
    color: red;
}

.nav-toggle:checked ~ nav {
    transform: scale(1,1);
}

.nav-toggle:checked ~ nav a {
    opacity: 1;
    transition: opacity 250ms ease-in-out 250ms;
}

#dropdown-button {          /*      nav ul li       */
    position: relative;
    text-align: left;
}


#dropdown-button ul {       /*      nav ul li ul      */
    display: block;
    position: static;
    background: ;
    padding: 40px 14px 0px 0px;
    margin: 0;
}



.spacer {
    background-color: black;
    width: 100vw;
    height: 5em;
}

/* Main styles start here */

#main-section {
    background-color: black;
    background-image: url(../assets/images/background/bg-03.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100vw;
    height: fit-content;
    color: white;
}

.news h1 {
    text-align: center;
    padding: 2em; 
    color: rgb(231, 0, 0)   
}
#news-article {
    position: grid;
    place-content: center;
  	letter-spacing: 1px;
}
article img {
    width: 90%;
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
article {
    padding: 0 0 3rem 0;
}
article p {
    margin: 2rem;
}
article p a {
    color: red;
}
article blockquote {
    margin: 4rem;
}
/* Footer styles start here */

footer {
    background-color: black;
    width: 100vw;
    height: fit-content;
    color: white;
}

.footer-container {
    display: grid;
    place-items: center;
    padding: 8em 3em 2em 3em;
}
.fab1 { 
  	color: rgb(255, 0, 0); 
  	font-size: .8rem; 
 	padding: 1rem;
}
.footer-container p {
    text-align: left;
    padding: 12px;
    text-align: center;
    font-size: .8rem;
    position: relative;
    bottom: 3rem;
}
.footer-container p a {
    color: red;
}



/* ~~~ MEDIA QUERY BELOW ~~~ */

@media screen and (min-width: 700px) {
    header {
        display: grid;
        grid-template-columns: 1fr 1fr auto minmax(300px, 3fr);
        padding-right: 50px;
    }

    .nav-toggle-label {
        display: none;
    }

    nav {
        all: unset;
        grid-column: 4 / 5;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-right: 3em;
    }

    nav a {
        opacity: 1;
        position: relative;
        font-size: .7rem;
        letter-spacing: 3px;
    }

    nav a:before {
        content: '';
        display: block;
        height: 2px;
        background: red;
        position: absolute;
        top: -3.2em;
        left: 0;
        right: 0;
        transform: scale(0,1);
        transition: transform ease-in-out 150ms;
    }
    #dropdown-button ul li a:before {
        content: '';
        display: block;
        height: 0px;
        background: red;
        position: absolute;
        top: -2.7em;
        left: 0;
        right: 0;
        transform: scale(0,1);
        transition: transform ease-in-out 150ms;
    }

    nav a:hover::before {
        transform: scale(1,1);
    }

    nav ul {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    nav li {
        margin: 0 1.25rem;
        margin-bottom: 0;
    }

    #dropdown-button:hover ul {       /*      nav ul li ul      */
        display: block;
    }
    #dropdown-button ul {       /*      nav ul li ul      */
        background: var(--background);
        width: 10em;
        position: absolute;
        left: 0;
        display: none;
        padding: 12px;
        list-style: none;
    }
    #dropdown-button ul li {
        padding: 10px 0 10px 0;
        
    }

    #dropdown-button ul li a {   /*      nav ul li ul li a     */
        
    }
    #dropdown-button ul li a:hover {   /*      nav ul li ul li a     */
        padding: 12px 0px;
    }



    #main-section {
        padding: 0 10rem;
    }
    
    .news {
        font-size: 1.2rem;
        padding: 2rem;
        margin: 2 0rem;
    }

    .news h1 {
        font-size: 2.5rem;
    }
    article img {
        width: initial;
        max-width: 60%;
    }

    article p {
        padding: 0 2rem;
    }

    article blockquote {
        margin: 4rem 6rem;
    }
  .fab1 { 
  	font-size: 1.2rem; 
 	padding: 1.2rem;
}
}