@import url('https://fonts.googleapis.com/css?family=Roboto:100,400,900');
@import url('https://fonts.googleapis.com/css?family=Anton');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700');


body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
}

li,
p {
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    line-height: 1.8rem;
}
svg {
    width: 100%;
}

.backdrop {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(200, 200, 200, 0.9);
    z-index: 1;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
}

.main-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 1rem 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 300px rgba(40, 50, 40, 0.35);
    background-color: rgba(200, 230, 200, 0.45);
    transition: 2s ease;
    border-radius: 0 0 10% 10%;
    z-index: 1;
}

.header-scrolled {
    background-color: green;
    transition: 1s ease-in-out;
}

.navbar {
    display: none;
}

.nav-btn {
    grid-area: description;
    color: #222;
    font-family: Montserrat, serif;
    margin: 0;
    transition: 0.5s ease;
}

.nav-btn:hover {
    transform: scale(1.1);
    text-shadow: 0 0 4px rgba(200, 210, 200, 0.65);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100vw);
    background-color: rgba(254, 255, 254, 0.99);
    width: 80%;
    height: 100vh;
    transition: 0.7s cubic-bezier(0.53, 1.36, 0.33, 1.09);
    z-index: 101;
    display: block;
    max-width: 20rem;

}

.mobile-nav-items {
    width: 90%;
    height: 100%;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav__item {
    background: rgba(0, 128, 0, 0.3);
    margin: 1rem 0;
    text-align: center;
    border-radius: 20px;
    width: 80%;
    height: 3rem;
    align-content: center;
}

.mobile-nav__item:hover {
    background: rgba(0, 160, 0, 0.7);
    box-shadow: 0 1px 300px rgba(30, 50, 30, 0.4);
    transform: scale(1.1);
}

.mobile-nav__item a {
    font-weight: lighter;
    color: #222;
    font-size: 1.5rem;
    font-family: Montserrat, serif;
    margin-right: 0.5rem;
    opacity: 1;
    padding: 1rem 0;
    text-decoration: none;
}

.toggle-button {
    margin-right: 1rem;
    width: 1.5rem;
    height: 1.2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.toggle-button:focus {
    outline: none;
}

.toggle-button__bar {
    display: block;
    width: 100%;
    height: 0.2rem;
    background: green;
    border-radius: 15%;
    transition: 1s ease-in-out;
}

.toggle-button__bar-scrolled {
    background: white;
    transition: 1s ease-in-out;
}

.logo {
    text-decoration: none;
    margin-left: 1rem;
}

.logo span:first-of-type {
    font-weight: lighter;
    color: black;
    font-size: 1.5rem;
    font-family: Montserrat, serif;
    margin-right: 0.5rem;
}

.logo span:last-of-type {
    font-weight: normal;
    color: green;
    font-size: 1.5rem;
    font-family: Montserrat, serif;
    transition: 1s ease-out;
}

.nav-btns-scrolled,
.logo-scrolled {
    color: white !important;
    transition: 1s ease-in-out;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: start;
    align-self: center;
    width: 100%;
    max-width: 70rem;
}

.hero {
    margin-top: 7rem;
    width: 80%;
    display: flex;
    flex-direction: column;
}

.hero-sales,
.about-sales,
.teaching-sales {
    font-weight: normal;
    color: black;
    font-size: 1.5rem;
    font-family: Montserrat, serif;
}

.hero-answer {
    font-weight: normal;
    color: green;
    font-size: 2rem;
    font-family: Montserrat, serif;
    margin: 0.5rem 0;
}

.hero-image__image {
    width: 100%;
    border: green solid 3px;
    border-radius: 20px;
    max-width: 30rem;
    min-width: 15rem;
}

section p {
    color: #222;
    font-family: Montserrat, serif;
}

.about,
.verticals,
.teaching {
    margin: 2rem 0;
    width: 80%;
    display: flex;
    flex-direction: column;
}

.about-brick {
    display: grid;
    grid-template-areas: "pic title"
                         ". description";
    grid-template-columns: 1fr 5fr;
    grid-column-gap: 0.5rem;
    grid-row-gap: 0;
    border: rgba(30, 50, 30, 0.05) solid 1px;
    box-shadow: 0 1px 10px rgba(30, 50, 30, 0.2);
    border-radius: 20px;
    margin: 1rem 0;
}

.vertical-brick,
.teaching-brick {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: start;
    border: rgba(30, 50, 30, 0.05) solid 1px;
    box-shadow: 0 1px 10px rgba(30, 50, 30, 0.2);
    border-radius: 20px;
    margin: 1rem 0;
}

.about-brick:hover,
.vertical-brick:hover,
.teaching-brick:hover {
    box-shadow: 0 1px 10px rgba(30, 50, 30, 0.5);
    transition: 0.5s ease-in-out;
}

.teaching-brick ul {
    align-self: start;
    margin: 0 0 1rem 0;
}

.teaching-brick h2 {
    margin-bottom: 0;
}

.teaching-brick li {
    color: #222;
    font-family: Montserrat, serif;
    list-style: circle;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.about-brick svg,
.vertical-brick svg {
    grid-area: pic;
    margin: 0.5rem;
    max-width: 5rem;
}

.about-brick h2,
.vertical-brick h2 {
    vertical-align: center;
    font-weight: normal;
    grid-area: title;
    color: black;
    font-family: Montserrat, serif;
    margin-bottom: 0;
}


.about-brick p {
    grid-area: description;
    color: #222;
    font-family: Montserrat, serif;
    padding-right: 1rem;
    margin-top: 0;
}

.vertical-brick p {
    color: #222;
    font-family: Montserrat, serif;
    margin: 1rem;
}

.teaching-brick ul {
    padding-right: 1rem;
}

.teaching .notice {
    background-color: green;
    border-radius: 20px;
    box-shadow: 0 1px 10px rgba(30, 50, 30, 0.2);
}

.notice p {
    color: white;
    margin: 1rem 1rem;
}

.open {
    display: block;
}

.open-mobile-nav {
    transform: translateX(0) !important;
    box-shadow: 0 1px 300px rgba(30, 50, 30, 0.4);
}

.main-footer {
    width: 100%;
    color: green;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 10px rgba(30, 50, 30, 0.3);
    background-color: rgba(200, 230, 200, 0.45);
    transition: 2s ease;
    border-radius: 10% 10% 0 0;
    bottom: 0;
    left: 0;
    font-size: 0.8rem;
}

.main-footer:hover {
    background-color: green;
    color: white;
    transition: 0.7s;
}

.main-footer p {
    font-family: Montserrat, serif;
    padding: 0;
    margin: 0;
    font-size: 0.7rem;
}

.footer-links {
    width: 70%;
    min-width: 15rem;
    max-width: 20rem;
    display: flex;
    justify-content: space-between;
    text-decoration: none !important;
    color: inherit;
    font-family: Montserrat, serif;
    padding-bottom: 0.5rem;
}
.nav-btn a,
.nav-btn a:visited,
.nav-btn a:hover,
.nav-btn a:active,
.footer-links a,
.footer-links a:visited,
.footer-links a:hover,
.footer-links a:active {
    text-decoration: none !important;
    color: inherit;
}

.footer-links a:hover {
    text-shadow: 0 0 4px rgba(200, 210, 200, 0.65);
    transform: scale(1.1);
    transition: 0.2s;
}

.bitscience {
    display: flex;
    align-items: center;
}

.bitscience img {
    vertical-align: middle;
    height: 1em;
    text-decoration: none;
}

a.bitscience,
a.bitscience:visited,
a.bitscience:hover,
a.bitscience:active {
    font-size: 0.7rem;
    text-decoration: none !important;
    color: inherit;
}

.signature {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

a.bitscience:hover {
    text-shadow: 0 0 5px aquamarine;
    color: white;
    transition: 0.25s;
}

.bitscience-logos {
    display: inline-grid;
    grid-template-areas: "pic";
    align-items: end;
    align-content: end;
    padding-left: 3px;
}

.bitscience .normal-logo {
    opacity: 1;
    transition: opacity 1s;
    grid-area: pic;
}

.bitscience .hover-logo {
    opacity: 0;
    transition: opacity 0.3s;
    grid-area: pic;
}

.bitscience:hover .hover-logo {
    opacity: 1;
    grid-area: pic;
}

.bitscience:hover .normal-logo {
    opacity: 0;
    grid-area: pic;
    z-index: -100;
}

@media (min-width: 40rem) {
    .hero {
        flex-direction: row;
    }

    .hero p {
        margin-right: 1rem;
    }
}

@media (min-width: 60rem) {
    .hero {
        padding-top: 1rem;
    }

    .toggle-button {
        display: none;
    }

    .mobile-nav {
        display: none;
    }

    .navbar {
        display: inline-block;
    }

    .navbar ul {
        display: flex;
        flex-direction: row;
        margin: 1rem;
    }

    .nav-btn {
        margin: 0 0.5rem;
        list-style: none;
    }
}



