* {
    box-sizing: border-box;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
}

/* Elements */
body {
    margin: 0;
    height: 100%;
    color: black;
    background-color: rgb(206, 206, 206);
    background-size: contain;
    background-repeat: no-repeat;
}

main, footer {
    position: relative;
    top: 6rem;
}

html {
    background-color: black;
    font-size: 16px;
    scroll-behavior: smooth;
}

#about-me, #code-experience, #git-projects {
    position: relative;
    top: -5rem;
}

a:link, a:visited, a:hover, a:focus, a:active {
    color:black;
    text-decoration: none;
}

a:visited {
    color: black;
}

.header-container {
    background-color: rgba(255, 255, 255, 1);
    position: fixed;
    top: 0;
    width: 100%;
    margin: 0 auto;
    height: 5rem;
    z-index: 10;
    color: black;
    border-bottom: 1px solid black;
}

header {
    margin: 0 auto;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    width: 90%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    color: black;

}

header nav ul {
    align-items: center;
    margin: 0;
    list-style: none;
    display: flex;
    height: 100%;
    padding: 0;
}

header h1 {
    margin: auto 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-style: italic;
}

header nav ul li {
    padding: 0 1rem;
}

.grid-container {
    margin: 0 auto;
    width: 90%;
    display: grid;
    grid-template: repeat(30, 30px) / repeat(12, 1fr);
    grid-auto-rows: 30px;
    grid-gap: 20px;
    justify-content: center;
    align-content: center;
}

h2 {
    font-family:  'Montserrat', sans-serif; 
}

.profile-image {
    height: 75%;
    padding: 0rem 2rem;
}

.profile-image img{
    margin: auto 0;
    height: 15rem;
    width: 15rem;
    border-radius: 50%;
    border: 1px solid black;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
}

.profile-intro {
    padding: 0 1rem;

}

.profile-intro p {
    font-size: 1.2rem;
    margin: 0;
}

.intro {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    box-shadow: 6px 6px 6px 1px rgba(0, 0, 0, 0.404);
}


.github, .about, .experience{
    grid-area: span 7 / span 12;
}

.learning {
    background-color: #ffffff;
    grid-row-end: span 6;
    grid-column: span 4;
    box-shadow: 6px 6px 6px 1px rgba(0, 0, 0, 0.404);
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    margin: 0 15px;
    border: 1px solid black;
}

.intro.about p, .intro.experience p, .intro.github p {
    text-align: justify;
    margin: 1rem 0;
}

.intro.experience {
    height: 30rem;
    align-items: flex-start;
    padding-top: 3rem;
}

.learning h3 {
    text-align: center;
    margin: 0;
    height: 15%;
    text-decoration: underline;
    font-size: 1.5rem
}

.learning ul {
    font-size: 1.25rem;
    list-style: none;
    margin: 0;
    height: 80%;
    padding: 0 1rem;
    display: inline-flex;
    flex-flow: column wrap;
}

.learning li {
    margin: 0.5rem 0;
    font-family: 'Roboto Slab', sans-serif;
}

.banner {
    grid-column: span 12;
    grid-row: span 2;
    background-color: #eeeeee;
    text-align: center;
    height: 16rem;
    box-shadow: 6px 6px 6px 1px rgba(0, 0, 0, 0.404);


}

.banner h2 {
    margin-top: 2rem;
    margin-bottom: 0;
}

.learning.project {
    align-content: space-between;
    justify-content: space-between;
    text-align: justify;

}

.learning.project p {
    padding: 0 1rem;
    margin: 0;
    width: 100%;
}

.learning.project .center {
    display: flex;
    justify-content: center;
}

.learning.project h3 {
    margin-top: 1rem;
}

h3, a {
    font-weight: 700;
    font-family: 'Ubuntu', monospace;
}


footer {
    width: 100%;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    color: white;
}

footer a:link, footer a:visited, footer a:hover, footer a:focus, footer a:active, footer a:visited, #email {
    color:white;
    text-decoration: none;
}

footer ul{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    list-style: none;
    padding: 0;
}


.intro.experience .profile-intro {
    margin-top: 1.5vw;
}

@media only screen and (max-width: 1100px) {
    .learning {
        grid-row-end: span 6;
        grid-column: span 6;
    
    }
    .learning.want, #excursion, #ombi-add {
        grid-column: 4 / span 6;
    }
}

@media only screen and (max-width: 970px) {
    .intro.experience .profile-intro {
        margin-top: 0;
    }
}

@media only screen and (max-width: 960px) {
    .intro.experience p {
        font-size: 1.05rem;
    }
}

@media only screen and (max-width: 820px) {
    .profile-intro p {
        font-size: 1rem;
        margin: 0;
    }

    .intro.experience .profile-image {
        margin-top: 5rem;
    }

    .profile-image {
        padding: 0rem 2rem;
        height: 5rem;
    }
    
    .profile-image img{
        margin: auto 0;
        height: 5rem;
        width: 5rem;
        border-radius: 50%;
        border: 2px dotted white;
    }


    header {
        justify-content: center;
        flex-flow: row wrap;
        align-items: center;
    }
    header h1 {
        text-align: center;
    }

    nav ul {
        justify-content: space-around;
    }

}



@media only screen and (max-width: 700px) {

    .learning.project p {
        font-size: 0.8rem;
    }

    #designed-by {
        display: none;
    }
}

@media only screen and (max-width: 630px) {
    .intro.experience {
        padding: 0;
    }
    .intro.experience {
        font-size: 0.8rem;
    }
}

@media only screen and (max-width: 530px) {
    .learning {
        grid-row-end: span 6;
        grid-column: span 12;
        font-size: 1rem;
        flex-flow: column wrap;
        justify-content: center;
        align-items: center;
    
    }

    #about-text {
        display: none;
    }


    .learning.project h3 {
        width: 100%;
    }

    .learning.project p {
        font-size: 1rem;
    }

    .learning.project {
        overflow: scroll;
        flex-flow: row wrap;

    }

    .learning.want, #excursion, #ombi-add {
        grid-column: 1 / span 12;
    }
}

@media only screen and (max-width: 510px) {
    .github, .about, .experience{
        grid-area: span 9 / span 12;
    }

    .intro.experience {
        padding: 0;
    }

    .intro.experience .profile-image {
        margin-top: 2rem;
        margin-bottom: 0;
    }


    .intro {
        flex-flow: row wrap;
        overflow: scroll;
        justify-content: center;
    }

    .intro h2 {
        text-decoration: underline;
        text-align: center;
    }
    .profile-image {
        padding-top: 0.75rem;
    }
    .profile-intro {
        width: 100%;
    }
    #latest {
        grid-row: span 3;
    }
    header h1 {
        margin: auto 0;
    }

}

@media only screen and (max-width: 425px) {
    .intro.experience {
        padding: 0;
        height: 40rem;
    }

    .intro.experience .profile-image {
        margin-top: 2rem;
        margin-bottom: 0;
    }

    .intro.experience .profile-intro {
        margin-bottom: 12rem;
    }
}

@media only screen and (max-width: 376px) {
    .github, .about, .experience{
        grid-area: span 10 / span 12;
    }

    .intro.experience {
        height: 45rem;
    }

    .intro.experience .profile-intro {
        margin-bottom: 12rem;
    }

    #email {
        display: none;
    }
        
    header nav {
        display: none;
    }
    

}

@media only screen and (max-width: 300px) {
    header h1 {
        text-align: center;
    }
}




/* from codepen https://codepen.io/finnhvman/pen/MQyJxV I have not explored button styling yet so used below as a learning tool */

.pure-material-button-contained {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    border: none;
    border-radius: 4px;
    padding: 0 16px;
    min-width: 64px;
    height: 36px;
    vertical-align: middle;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
    background-color: #8d8f8b;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    font-family: var(--pure-material-font, "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system);
    font-size: 14px;
    font-weight: 500;
    line-height: 36px;
    overflow: hidden;
    outline: none;
    cursor: pointer;
    transition: box-shadow 0.2s;
    margin: 1rem 0;
}

.pure-material-button-contained::-moz-focus-inner {
    border: none;
}

/* Overlay */
.pure-material-button-contained::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
    opacity: 0;
    transition: opacity 0.2s;
}

/* Ripple */
.pure-material-button-contained::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    padding: 50%;
    width: 32px; /* Safari */
    height: 32px; /* Safari */
    background-color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 1s, transform 0.5s;
}

/* Hover, Focus */
.pure-material-button-contained:hover,
.pure-material-button-contained:focus {
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
}

.pure-material-button-contained:hover::before {
    opacity: 0.08;
}

.pure-material-button-contained:focus::before {
    opacity: 0.24;
}

.pure-material-button-contained:hover:focus::before {
    opacity: 0.3;
}

/* Active */
.pure-material-button-contained:active {
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.pure-material-button-contained:active::after {
    opacity: 0.32;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0s;
}

/* Disabled */
.pure-material-button-contained:disabled {
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
    background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.12);
    box-shadow: none;
    cursor: initial;
}

.pure-material-button-contained:disabled::before {
    opacity: 0;
}

.pure-material-button-contained:disabled::after {
    opacity: 0;
}

/* Easter Egg */
.overlay {
    height: 100%;
    width: 100%;
    display: none;
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 5rem;
    background-color: rgb(255, 0, 0);
    overflow-x: hidden; 
    transition: 0.5s; 
    color: white;
  }

  
  .overlay-content {
    position: relative;
    top: 25%; 
    width: 100%; 
    text-align: center; 
    margin-top: 30px; 
  }
  
  .overlay .closebtn {
    color: white;
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
  }
  
  /* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
  @media screen and (max-height: 450px) {
    .overlay h1 {font-size: 20px}
    .overlay .closebtn {
      font-size: 40px;
      top: 15px;
      right: 35px;
    }
  }