* {
    margin: 0;
    padding: 0;
}

html {
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    background-color: rgba(57, 57, 65, 1);
    color: white;
}

nav {
    display: flex;
    position: fixed;
    align-items: center;
    top: 0;
    width: 100%;
    height: 57px;
    background-color: rgba(57, 57, 65, 1);
    z-index: 50;
}

.mobile-class {
    display: inline;
}

.desktop-class {
    display: none;
}

#logo-container {
    display: flex;
    align-items: center;
    width: 125px;
    margin-left: 20px;
    padding-left: 5px;
    background-color: rgba(57, 57, 65, 1);
    z-index: 20;
    text-decoration: none;
}

#logo {
    height: 40px;
    padding-right: 5px;
    padding-left: 5px;

}

#logo-text {
    text-align: left;
    color: white;
    height: 40px;
    font-weight: 700;
    margin-top: 10px;
}

#mobile-menu-bg {
    position: fixed;
    background-color: rgba(57, 57, 65, 1);
    background-color: rgba(57, 57, 65, 0.97);
    margin-top: -100vh;
    width: 100%;
    height: 100vh;
    z-index: 10;
    transition: 0.5s;
    color: white;
}

.mobile-nav-list {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    height: 100vh;
    width: 100%;
    top: 10%;
    z-index: 15;

}

.nav-list-item,
.mobile-menu-dropdown-btn {
    width: 100%;
    list-style: none;
    padding-bottom: 20px;
    padding-top: 20px;
    cursor: pointer;
    font-size: 2rem;
    text-decoration: none;
    color: white;
    background: none;
    border: none;
}

.mobile-menu-dropdown-container {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-left: 8px;
    background-color: rgba(57, 57, 65, 1);
    opacity: 0;
    transition: all 0.5s ease;
}

/* When active, increase max-height and opacity */
.mobile-menu-dropdown-container.active {
    max-height: 500px;
    /* Adjust as needed */
    opacity: 1;
    background-color: rgba(0, 0, 0, .4);
}

.arrow {
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    margin-bottom: 5px;
    margin-left: 5px;
    transition: all 0.4s ease;
}

.arrow.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.arrow.up {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

#menu-hr {
    width: 80vw;
    cursor: default;
    margin-left: auto;
    margin-right: auto;

}

#hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    margin-right: 25px;
    z-index: 20;
}

#bar1,
#bar2,
#bar3 {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: 0.4s;
}

/* Rotate first bar */
.change #bar1 {
    transform: translate(0, 7px) rotate(-45deg);
}

/* Fade out the second bar */
.change #bar2 {
    opacity: 0;
}

/* Rotate last bar */
.change #bar3 {
    transform: translate(0, -7px) rotate(45deg);
}

#nav-bar-hr {
    position: absolute;
    margin-top: 55px;
    margin-left: 5%;
    margin-right: 5%;
    height: 1px;
    width: 90%;
    background-color: white;
    border: none;
    z-index: 20;
}

header {
    text-align: left;
    margin-top: 75px;
}

.business-card-header {
    display: grid;
    grid-template-columns: 40% 30% 30%;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    border-color: brown;
    border-radius: 50px;
    margin-left: 10px;
    margin-right: 10px;
    background-color: aliceblue;
    color: black;
    padding: 10px;
}

.business-card-header #my-photo {
    grid-column: 1;
    grid-row: 1/5;
    height: 100%;
    width: 100%;
    border-radius: 40px;
}

.business-card-header #name {
    grid-column: 2/4;
    grid-row: 1;
    font-size: 2.3rem;
    text-align: left;
    font-weight: 700;
    margin-left: 10px;
}

.business-card-header #resume {
    grid-column: 2/4;
    grid-row: 2;
    display: flex;
    align-items: center;
    text-align: left;
    font-size: 1.1rem;
    margin-left: 10px;
    margin-top: -10px;
}

#resume img {
    height: 25px;
    margin-right: 10px;
}

.business-card-header #linkedin {
    grid-column: 2/4;
    grid-row: 3;
    display: flex;
    align-items: center;
    text-align: center;
    margin-left: 10px;
}

#linkedin img {
    height: 25px;
    margin-right: 10px;
}

.business-card-header #github {
    grid-column: 2/4;
    grid-row: 4;
    text-align: center;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

#github img {
    height: 25px;
    margin-right: 10px;
}

header h1 {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 15px;
    font-size: 1.45rem;
    text-align: center;
}

h1 #hey-intro {
    font-size: 1.1rem;
    font-weight: 500;
}

main {
    text-align: left;
    width: 100%;
    height: 27%;
}

section {
    margin: 20px;
    padding: 10px;
    background-color: aliceblue;
    color: black;
}

section h2 {
    color: rgba(57, 57, 65, 1);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 20px;
}

section h3 {
    font-size: 1rem;
    color: rgb(80, 80, 80)
}

section p {
    color: rgb(120, 120, 120)
}

section button {
    background-color: rgba(57, 57, 65, 1);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

section button:active {
    background-color: rgba(57, 57, 65, .9);
}

.more-about-me {
    display: none;
}

#contact-me p {
    text-align: center;
    font-size: .89rem;
}

#contact-me #linkedin-link {
    display: inline-flex;
    align-items: baseline;
}

#contact-me #linkedin-img {
    height: 20px;
    width: 20px;
    margin-top: auto;
}

/* Style inputs with type="text", select elements and textareas */
#contact-me input[type=text],
#contact-me select,
#contact-me textarea {
    width: 100%;
    /* Full width */
    padding: 12px;
    /* Some padding */
    border: 1px solid #ccc;
    /* Gray border */
    border-radius: 4px;
    /* Rounded borders */
    box-sizing: border-box;
    /* Make sure that padding and width stays in place */
    margin-top: 6px;
    /* Add a top margin */
    margin-bottom: 16px;
    /* Bottom margin */
    resize: vertical
        /* Allow the user to vertically resize the textarea (not horizontally) */
}

/* Style the submit button with a specific background color etc */
#contact-me input[type=submit] {
    background-color: rgba(57, 57, 65, 1);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
}

/* When moving the mouse over the submit button, add a darker green color */
#contact-me input[type=submit]:hover {
    background-color: rgba(60, 60, 70, 1);
}

/* Add a background color and some padding around the form */
.contact-container {
    border-radius: 5px;
    padding: 20px;
}

footer {

    width: 100%;
    height: 6%;
}

.wide-screen-element {
    display: none;
    border: none;
}

/* State and style changes classes */

.fixed-position {
    position: fixed;
}

.display-flex {
    display: flex;
}

.display-none {
    display: none;
}

.overflow-hidden {
    overflow: hidden;
}

/* Medium phones */
@media only screen and (max-width: 600px) {}

/* Very small phones */
@media only screen and (max-width: 404px) {
    .business-card-header #name {
        font-size: 2rem;
    }

    .business-card-header #email {
        font-size: 1rem;
    }
}

/* Very small phones */
@media only screen and (max-width: 360px) {
    .business-card-header #name {
        font-size: 1.7rem;
    }

    .business-card-header #email {
        font-size: .9rem;
        margin-top: 0px;
    }

    .business-card-header #github,
    .business-card-header #linkedin {
        font-size: 0.9rem;
    }

    #linkedin img,
    #github img {
        height: 20px;
        margin-right: 5px;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    header {
        display: flex;
    }

    .business-card-header {
        width: 50%;
    }

    .business-card-header #name {
        font-size: 1.6rem;
    }

    .business-card-header #email {
        font-size: .8rem;
        margin-top: 0px;
    }

    .business-card-header #github,
    .business-card-header #linkedin {
        font-size: 0.8rem;
    }

    #linkedin img,
    #github img {
        height: 20px;
        margin-right: 5px;
    }

    header h1 {
        font-size: 1.3rem;
        text-align: center;
        width: 50%;
    }

    h1 span {
        font-size: 1rem;
        font-weight: 500;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    header {
        display: flex;
        align-items: center;
    }

    .business-card-header #name {
        font-size: 1.7rem;
    }

    .business-card-header #email {
        font-size: .8rem;
        margin-top: 0px;
    }

    .business-card-header #github,
    .business-card-header #linkedin {
        font-size: 0.8rem;
    }

    #linkedin img,
    #github img {
        height: 20px;
        margin-right: 5px;
    }

    header h1 {
        font-size: 1.3rem;
        text-align: center;
    }

    h1 span {
        font-size: 1rem;
        font-weight: 500;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

    .mobile-class {
        display: none;
    }

    .desktop-class {
        display: inline;
    }

    #hamburger {
        display: none;
    }

    #hamburger:hover #bar1,
    #hamburger:hover #bar2,
    #hamburger:hover #bar3 {
        background-color: darkgray;
    }

    #logo-container {
        margin-left: 10%;
    }

    #desktop-menu-container {
        margin-left: auto;
        margin-right: 10%;
    }

    .desktop-nav-list {
        display: flex;
        position: relative;
        flex-direction: row;
        align-items: end;
        height: 100%;
        z-index: 50;
    }

    .nav-list-item {
        width: 110px;
        margin-bottom: 2px;
        padding-bottom: 5px;
        padding-top: 5px;
        font-size: 1rem;
    }

    .nav-list-item:hover {
        background-color: white;
        color: black;
    }

    #menu-hr {
        display: none;
    }

    #hr-container {
        display: none;
    }

    .business-card-header {
        width: 40%;
        margin-left: 15%;
    }

    .business-card-header #name {
        font-size: 1.7rem;
    }

    .business-card-header #email {
        font-size: .8rem;
        margin-top: 0px;
    }

    .business-card-header #github,
    .business-card-header #linkedin {
        font-size: 0.8rem;
    }

    #linkedin img,
    #github img {
        height: 20px;
        margin-right: 5px;
    }

    header h1 {
        margin-right: 15%;
        text-align: center;
        margin-top: 0px;
    }

    h1 #hey {
        font-size: 1.8rem;
        line-height: 40px;
    }

    h1 #hey-intro {
        font-size: 1.18rem;
        font-weight: 500;

        line-height: 27px;
    }

    section {
        margin-left: 15%;
        margin-right: 15%;
        padding-left: 10%;
        padding-right: 10%;
        padding-top: 50px;
    }

    #about-me {
        margin-top: 75px;
    }

    #about-me h2 {
        margin-top: 50px;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section p {
        line-height: 25px;
    }

    section h3 {
        line-height: 25px;
        font-size: 1.05rem;
    }

}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    #logo-container {
        margin-left: 10%;
    }

    #hey {
        display: block;
        margin-bottom: 0px;
    }
}


@media only screen and (orientation: landscape) {
    #hamburger {
        display: none;
    }

    .mobile-nav-list {
        display: flex;
        position: relative;
        flex-direction: row;
        height: 100%;
        top: 0;
    }

    .nav-list-item {
        width: 110px;
        margin-bottom: 2px;
        padding-bottom: 5px;
        padding-top: 5px;
        font-size: 1rem;
    }
}