
:root {
  --spacing-1: 8px;
  --spacing-2: 12px;
  --spacing-3: 16px;
  --spacing-4: 24px;

  --red: #E63946;
  --honey: #F1FAEE;
  --powder: #A8DADC;
  --celadon: #457B9D;
  --prussian: #1D3557;
  --grey: #3E3E3E;
  --darkgrey: #1B1B1B;
}

html {
    scroll-behavior: smooth;
    background-color: var(--honey);
  }

body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  flex-direction: column;
  overflow-x: hidden;
  flex-wrap: wrap;
  background-color: var(--celadon);
}

main#main-container{
    margin:2rem;
}

header {
    max-width: 100%;
  }

nav {
  display: flex; /* to the right (1D)*/
  align-items: center;
  padding: var(--spacing-1) 10px;
  background-color: #f1faee;
  max-height: 50px;
  justify-content: space-between;
}

nav a#logo-link{
    text-decoration: none;
    color: var(--prussian);
    font-weight: 700;
    cursor: pointer;
}

#logo-link {
    display: flex;
    align-items: center;
}

#logo-link img {
  max-width: 50px;
}

#logo-link span{
    margin-left: 1rem;
}
.navigation-items {
  text-align: right;
  display: inline-block;
}

.navigation-item {
  background-color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 300;
  text-transform: uppercase;
  display: inline-block;
  margin: var(--spacing-1);
}

.navigation-item a {
    color: var(--prussian);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.navigation-item a:hover {
    color: var(--red);
}

nav label {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    position: relative;
}

#hamburger {
    display: none;
}

/* footer */
footer{
    background-color: var(--honey);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    
}
footer div{
    display: flex;
    justify-content: center;
    align-items: center;
}
footer div a{
    text-decoration: none;
    padding-top: 1.5rem;
    margin: 0 1rem ;
}

footer p{
    text-decoration: none;
    display: flex;
    justify-content: center;
    color: black;
    line-height: 2rem;
}

footer p a{
    text-decoration: none;
    color: black;
}

footer div a img{
    max-width: 100%;
}
/* if max width is smaller than properties*/
@media (max-width: 600px) {
    nav label {
        display: inline-flex;
    }

    .navigation-items {
        display: none;
    }

    #hamburger:checked + .navigation-items {
        position: fixed;
        height: 100vh;
        width: 100vw;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        background-color: white;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        z-index: 1;
    }

    nav {
        position: relative;
    }

    nav label {
        position: absolute;
        top: 50%;
        transform: translate(0, -50%);
        right: 20px;
        z-index: 2;
    }

    main {
        max-width: 100%;
    }
    
    .profile-photo img {
        width: 100%;
        height: auto;
        
    }
    
    .about-me{
        min-width: 0;
    }
    
}
/* helper for flex down in body*/
@media (max-width: 900px) {
    main#main-container{
        margin: 1rem;
        margin-top:3rem;
    }
    main {
        flex-wrap: wrap;
    }

    .about-me{
        margin: 0;
    }

    .headshot {
        width: 100%;
        height: auto;
    }
}