* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html,
body {
    width: 100vw;
    padding: 0;
    margin: 0;
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: justify;
    overflow-x: hidden;
    background: #f2f2f2;
    color: #222;

}


/* ------------------------------------------------------               NAV BAR ------------------*/


header{
    width: 100vw;
    border-bottom: 2px solid red;
    position: fixed;
    top: 0;
    z-index: 1000; /* Keeps it above other content */
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

.navbar {
    display: flex;    
    justify-content: space-between;
    align-items: center;
    padding: 1.5px 2px;
    padding-right: 2.5%;
    padding-left: 2.5%;
    background-color: #1C1B1B;
    color: white;

}

.navbar a{
    color: white;
    font-size: 2em;

}

.navbar img{
    width: 1em;
}


.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1C1B1B;

}

#no-border{
    border-bottom: none; 
}

.nav-item {
    margin-left: 2em;    
}

/*----------------------------- menu links -----------------*/

.nav-item a{
    color: white;    
    font-weight: bold;
    text-decoration: none;
    font-size: .8em;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
}

.nav-item a:hover {
    color: red;
}


.nav-item img{
    display: block;
    margin: auto;
    width: 30%;
}

.nav-link{
    font-size: .8em;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    color: white;
}

.nav-link:hover{
    color: black;
}

.nav-logo {
    font-size: 2.1em;
    font-weight: 500;
    letter-spacing: 5px;
}

#red{
    color: red;
    font-size: .5em;
}

#red-heading{
    color: black;
    font-size: 1em;
}

#logo-text{
    font-size: .5em;
}

#hilight{
    color: red;
}

p {
  margin-bottom: 1.5em; /* Adjust this number to change the gap */
}

/*----------------------------------------------    M A I N   C O N T A I N E R ------------*/

.grid-container {
    display: grid;
    margin-bottom: 20%;
    grid-column-gap: 10px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-areas: 
    'middle middle middle middle'
    'middle middle middle middle';
}


/* main content */
.middle {
  grid-area: middle;
  padding-left: 20%;
  padding-right: 20%; 
  font-size: 1rem; 
}

.middle img {    
    width: 100%;
    display: block;
    margin: auto;
    margin-top: 5%;
    padding-left: 15%;
    padding-right: 15%;
}


.middle h1{
  margin-top: 10%;
  margin-bottom: 0;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.article-meta{
    color: gray;
    text-transform: uppercase;
    font-size: .6em;
    letter-spacing: 3px;
    margin-top: 0;
}

.article-meta a{
    color: gray;    
 }

 #full-image{
    width: 100%;
    padding: 0;
    margin: 0;
    margin-top: 2.5%;
}

/*-------------- QUIZ CSS ------------------------------------*/

#quiz{
    max-width:100vw;
    margin:auto;
    background:#fff;
    padding:25px;
    border-radius:8px;
    box-shadow:0 0 10px rgba(0,0,0,.15);
}

h2{
    margin-bottom: 2em;
    text-align: center;
}

.question{
    margin-bottom:30px;
    padding-bottom:20px;
    border-bottom:1px solid #ddd;
}

.question h3{
    margin-bottom:10px;
}

.answers label{
    display:block;
    margin:8px 0;
    cursor:pointer;
}

button{
    padding:12px 25px;
    font-size:16px;
    cursor:pointer;
}

#result{
    margin-top:25px;
    font-size:24px;
    font-weight:bold;
}
.correct{
    color:green;
}
.incorrect{
    color:red;
}

figure{
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1rem;
}

figcaption{
    text-align: center;
    color: gray;
    font-size: .8em;
}



/*---   F O O T E R ----------------------------------------*/

footer {
    display: flex;
    width: 100%;
    flex-direction: row;
    text-align: center;
    float: none;
    position:relative;
    top: auto;
    right:auto;
    padding: 2%;
    height: auto;
    line-height: auto;
    background: black;
    border-top: 5px solid red;
    margin-top: 10%;
}

.footer-col{
    flex: 1;
    color: white;
}

.footer-col h2{
    font-size: 1em;
    justify-content: left;
    color: white;
}

.footer-col ul li{
    text-align: justify;
    color: white;
}


.footer-col a{
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    float:none;
    padding: 2%;
}

footer h1{
    text-decoration: none;
    font-size: 2em;
    color: white;
}

#footer-text{
    font-size: .5em;
}

/*--------------------------------------------------------------------*/



/*---------------------------------------------------------    MEDIA QUERY ------------------------*/



    
/*-------------------------------------      MOBILE -   M E D I A   Q U E R Y   --------------------*/

@media only screen and (max-width: 480px) {

    html,
    body{
        height: 100%;
    }

    header{
        width: 100%;
    }

    #logoText{
        font-size: 1em;
    }

    #hidden{
        visibility: visible;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        width: 100%;
        border-radius: 10px;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 1;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 2.5rem 0;
    }

    .navbar a{
        color: white;
        font-size: 1.5em;
    }

    .navbar img{
        width: 1.5em;
    }

    .navbar{
        font-size: .5em;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

/*--- content  ----*/

    .grid-container  {
        margin-left: 2%;
        margin-right: 2%;
        grid-template-areas:  
        'middle middle middle middle'
        'middle middle middle middle';
    }

    .middle {
        padding-left: 1%;
        padding-right: 1%;
        margin-left: 1%;
        margin-right: 1%;
    }

        #quiz{
        max-width:100%;
        margin:auto;
        background:white;
        padding:25px;
        border-radius:10px;
        box-shadow:0 0 10px rgba(0,0,0,.2);
    }

    #quiz-heading{
        font-size: 1.5em;
    }

    /*--------  featured listing instert one ----------------------*/
    footer{
        flex-direction: column;
    }

}

@media (max-width: 600px) {
    .business-card {
        margin-bottom: 5rem;
    }

    .business-name {
        font-size: 1.2rem;
    }
}

