:root {
    --darkgray: #212329;
    --darkblue: #F9423D;
    --white: #ffffff;
    --lightblue: #007BFF;
    --darkblue: #026ad9;
}

* {
    box-sizing: border-box;
    background-color: var(--darkgray);
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
}

.nav-container {
    width: 100%;
    background-color: var(--darkgray);
    position: fixed;
    top: 0;
}

.navbar {
    display: grid;
    grid-template-columns: 0.2fr auto 1fr;
    align-items: center;
    height: 80px;
    width: 90%;
    max-width: 1720px;
    margin: 0 auto;
}

#navbar-logo {
    color: var(--white);
    justify-self: start;
    margin-left: 20px;
}

#navbar-logo {
    cursor: pointer;
}

.nav-menu {
    display: grid;
    grid-template-columns: repeat(4, auto);
    list-style: none;
    text-align: center;
    width: 70%;
    justify-self: end;
}

.nav-links {
    color: white;
    font-size: 24px;
    text-decoration: none;
}

.nav-links:hover {
    color: var(--darkblue);
    transition: all 0.2s ease-out;
}

.nav-links-btn {
    background-color: var(--darkblue);
    padding: 6px 16px;
    border-radius: 4px;
}

.nav-links-btn:hover {
    background-color: transparent;
    color: var(--white);
    padding: 5px 15px;
    border-radius: 4px;
    border: solid 1px var(--darkblue);
    transition: all 0.3s ease-out;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: var(--white);
}

#logo-first {
    background-color: var(--lightblue);
    border-radius: 4px;
    padding: 3px 8px;
}

#logo-last {
    color: var(--white);
}

.whoami-container {
    align-items: center;
    justify-content: center;
    display: flex;
    width: 90%;
    margin: 175px auto;
}

.whoami-body {
    left: 0;
    margin-right: 50px;
    margin-left: 20px;
    justify-self: start;
}

#whoami-image {
    width: 50%;
    max-width: 948px;
}

#whoami-heading {
    color: var(--darkblue);
    font-size: 40px;
}

#whoami-text {
    color: var(--white);
    margin-top: 20px;
    font-size: 24px;
}

.passions-container {
    align-items: center;
    justify-content: center;
    display: flex;
    width: 90%;
    margin: 150px auto;
}

.passions-body {
    left: 0;
    margin-right: 50px;
    margin-left: 20px;
    justify-self: start;
}

#passions-heading {
    color: var(--darkblue);
    font-size: 40px;
}

#passions-image {
    width: 50%;
    margin-right: 50px;
    max-width: 948px;
}

#passions-text {
    color: var(--white);
    margin-top: 20px;
    font-size: 24px;
}

.outside-container {
    align-items: center;
    justify-content: center;
    display: flex;
    width: 90%;
    margin: 150px auto;
}

.outside-body {
    left: 0;
    margin-left: 20px;
    margin-right: 50px;
    justify-self: start;
}

#outside-heading {
    color: var(--darkblue);
    font-size:40px;
}

#outside-text {
    color: var(--white);
    margin-top: 20px;
    font-size: 24px;
}

@media screen and (max-width: 1000px) {
    .whoami-container {
        align-items: center;
        justify-content: center;
        display: block;
        width: 90%;
        margin: 100px auto;
    }

    #whoami-image {
        display: none;
    }

    .passions-container {
        align-items: center;
        justify-content: center;
        display: block;
        width: 90%;
        margin: 100px auto;
    }

    #passions-image {
        display: none;
    }

    .outside-container {
        align-items: center;
        justify-content: center;
        display: block;
        width: 90%;
        margin: 100px auto;
    }

    #outside-image {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .nav-container {
        position: fixed;
        top: 0;
    }

    .nav-menu {
        display: grid;
        grid-template-columns: auto;
        background: var(--darkblue);
        margin: 0;
        width: 100%;
        position: absolute;
        top: 80px;
        left: -100%;
        opacity: 0;
        transition: all 0.5s ease;
    }

    #navbar-logo {
        margin-left: 20px;
    }

    .nav-menu.active {
        background: var(--darkgray);
        left: 0;
        opacity: 1;
        transition: all 0.5s ease;
    }

    .nav-links {
        text-align: center;
        line-height: 60px;
        width: 100%;
        display: table;
    }

    .nav-links:hover {
        background-color: var(--lightblue);
        color: var(--white);
        transition: all 0.4s ease-out;
    }

    .navbar {
        width: 100%;
    }

    .nav-links-btn {
        border: none;
        padding: 0;
        border-radius: 0;
        background-color: var(--darkblue);
        color: var(--white);
        transition: all 0.4s ease-out;
    }

    .nav-links-btn:hover {
        border: none;
        padding: 0;
        border-radius: 0;
        background-color: transparent;
        border: solid 1px var(--darkblue);
        color: var(--white);
        transition: all 0.4s ease-out;
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .menu-toggle .bar {
        display: block;
        cursor: pointer;
    }

    .menu-toggle:hover {
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}