*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ecebd6;
    color: #1b6535; 
}

a {
    text-decoration: none;
    color: #a8c66c;
  }

li {
    list-style: none;
  } 

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 7rem;
    height:15vh;
    background-color: #1b6535;
    position: relative;
    z-index: 5;
    width: 100%;
}

.brand{
    display: flex;
}

.brand img{
    width: 7rem;
}

.brand h2{
    font-size: 14px;
    line-height: 1;
    padding-left: -20px;
    padding-top: 30px;
    margin-top: 20px;
    margin-left: -20px;
    color: #a8c66c;
}


.code{
    display: flex;
}

.code a{
    padding: 0 1.5rem;
    transition: all 0.6s ease;
    font-weight: 700;
}

.code a:hover{
    background-color: #1a7b3c;
    padding: 8px 14px;
    transition: all 0.3s ease;
}

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

.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;
}

/* CBT STYLING */
#section {
    padding: 3rem 9rem;
}
.question-answers {
    line-height: 1.5;
}
.question-answers h1 {
    font-synthesis-weight: 700;
}
.question-answers ol {
    padding-top: 3rem;
}
.question-answers li {
    list-style-type: style;
    line-height: 1.8;
    padding-bottom: 1rem;
}

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

.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;
}

button{
    cursor: pointer;
    margin-top: 1rem;
    padding: 10px 1.3rem;
    background-color: #1b6535;
    transition: all 0.6s ease-in-out;
    font-weight: 600;
    border: 0;
    color: #a8c66c;
}

button:hover {
    background-color: #1a7b3c;
    transition: all 0.6s ease-in-out;
    font-weight: 600;
}

@media(max-width:670px) {
    .hamburger{
        display: block;
    }

    .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);
    }

    .code{
        position: fixed;
        display: flex;
        flex-direction: column;
        justify-content: center;
        left: -125%;
        top: 0;
        gap: 0;
        background-color: #1b6535;
        width: 100%;
        height: 100vh;
        line-height: 3;
        text-align: left;
        transition: 0.4s;
        padding-left: 4rem;
    }

    .code a:hover {
        border-bottom: 3px solid #a8c66c;
        transition: all 0.3s ease;
      }
    .nav-item.active {
        margin: 16px 0;
      }
    .code.active {
        left: 0;
      }
    .brand img{
        width: 6rem;
    } 
    
    header{
        padding: 0 1rem;
        width: 100%;
    } 
    .brand h2{
        font-size: 10px;
        padding-left: -20px;
        padding-top: 25px;
        margin-top: 20px;
        margin-left: -20px;
    } 
    #section{
        font-size: 1rem;
        line-height: 1;
        padding: 0 3rem;
    }
}

@media (max-height:500px) {
    header{
        width: 115%;
    }
    .brand h2{
        font-size: 10px;
        padding-left: -20px;
        padding-top: 5px;
        margin-top: 20px;
        margin-left: -20px;
    }

    .brand img{
        width: 3.8rem;
    }
    .code a{
        padding: 0 1rem;
        font-weight: 400;
    }
    footer {
        bottom: auto;
        width: 115%;
        position: absolute;
    }
}