@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,400;1,100&family=Ramabhadra&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    --vertical-space: 2rem;
    --horizontal-space: 3rem;

    --main-bg-color: #111111;
    --light-color: white;
    --body-color: #CFCED7;
    --heading-color: white;
    --contrast-color: #F5E68C;
}

.initialload {
    opacity: 0;
}

.hideme {
    opacity: 0;
}

.maininfo {
    opacity: 0;
}

h1 {
    font-family: 'Ramabhadra', sans-serif;
}

body > #avatar {
    padding-top: 50vh;
    grid-area: pic;
    background: url("avatargray.png");
    background-size: cover;
    background-position: right top;
    background-attachment: fixed;
    object-fit: contain;
    transition: background .5s ease-in;
}

#avatar:hover {
    padding-top: 50vh;
    grid-area: pic;
    background: url("avatar.png");
    background-size: cover;
    background-position: right top;
    background-attachment: fixed;
    object-fit: contain;
    transition: background .5s ease-in;
}

body > #avatar p#picendp {
    margin-bottom: 2em;
}

hr#picendhr {
    margin: 0;
    margin-bottom: 2em;
}

body {
    font-size: 18px;
    line-height: 1.5em;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--main-bg-color);
    color: var(--body-color);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}

body {
    display: grid;
    grid-template-areas:    "nav nav"
                            "pic pic"
                            "main main"
                            "foot foot";
    grid-template-columns: 20em 1fr;
    grid-template-rows: 5.5em 1fr auto;
}

@media only screen and (max-width: 25em) {
    body {
        grid-template-areas:    "nav nav"
                                "pic pic"
                                "main main"
                                "foot foot";            
        grid-template-columns: 20em 1fr;
        grid-template-rows: auto 1fr auto;
    }
}

a:link, a:visited {
    color: var(--light-color);
    text-decoration: none;
    outline-style: hidden;
    transition: color .2s ease-in;
}

a:hover {
    color: var(--contrast-color);
    transition: color .2s ease-in;
}

hr {
    margin: 2em;
}

body > * {
    padding-left: var(--horizontal-space);
    padding-right: var(--horizontal-space);
}

body > nav {
    font-size: 1.2em;
    grid-area: nav;
    background-color: #000000;
    background-image: url("https://www.transparenttextures.com/patterns/black-paper.png");
    outline-style: solid;
    outline-width: 10px;
    outline-color: var(--main-bg-color);
    position: fixed;
    width: 100%;
    z-index: 99;
    display: flex;
    vertical-align: middle;
    flex-direction: row;
    justify-content: space-between;
    align-content: center;
    flex-wrap: wrap;
    padding-left: 0;
    margin: auto;
}

#mainnav {
    padding: 0 5rem;
    font-family: 'Ramabhadra', sans-serif;
    font-weight: bold;
    font-size: 4em;
    padding: .25em 0;
    line-height: 1;
    transition: 0.15s;
    margin: auto;
}
#subnav {
    padding: 0 5rem;
    align-self: center;
    margin: auto;
}
#subnav > span {
    padding: 0 .5em;
}

@media screen and (max-width: 600px) {
    body > nav {
        text-align: center;
        font-size: 1em;
    }
    body > nav > ul > li {
        display: inline;
        padding-inline-start: 0;
        padding-right: 1.5rem;
        margin-bottom: 10px;
    }
    body > nav > ul > li:nth-child(2):before {
        content: "\A";
        white-space: normal;
    }
    body > nav > ul > li.navbutton a:hover {
        outline-style: none;
    }
    body > nav ul li#name {
        font-family: 'Ramabhadra', sans-serif;
        font-weight: bold;
        font-size: 3em;
        padding-bottom: .75em;
    }
}

body > main {
    grid-area: main;
    background: linear-gradient(404deg, rgba(232, 232, 232, 0.03) 0%, 
    rgba(232, 232, 232, 0.03) 10%,rgba(14, 14, 14, 0.03) 10%, rgba(14, 14, 14, 0.03) 66%,
    rgba(232, 232, 232, 0.03) 66%, rgba(232, 232, 232, 0.03) 72%,rgba(44, 44, 44, 0.03) 72%, 
    rgba(44, 44, 44, 0.03) 81%,rgba(51, 51, 51, 0.03) 81%, rgba(51, 51, 51, 0.03) 100%),
    linear-gradient(397deg, rgba(155, 155, 155, 0.03) 0%, rgba(155, 155, 155, 0.03) 23%,
    rgba(30, 30, 30, 0.03) 23%, rgba(30, 30, 30, 0.03) 63%,rgba(124, 124, 124, 0.03) 63%, 
    rgba(124, 124, 124, 0.03) 73%,rgba(195, 195, 195, 0.03) 73%, rgba(195, 195, 195, 0.03) 84%,
    rgba(187, 187, 187, 0.03) 84%, rgba(187, 187, 187, 0.03) 100%),linear-gradient(367deg, 
    rgba(254, 254, 254, 0.03) 0%, rgba(254, 254, 254, 0.03) 27%,rgba(180, 180, 180, 0.03) 27%, 
    rgba(180, 180, 180, 0.03) 33%,rgba(167, 167, 167, 0.03) 33%, rgba(167, 167, 167, 0.03) 34%,
    rgba(68, 68, 68, 0.03) 34%, rgba(68, 68, 68, 0.03) 63%,rgba(171, 171, 171, 0.03) 63%, 
    rgba(171, 171, 171, 0.03) 100%),linear-gradient(397deg, rgba(71, 71, 71, 0.03) 0%, 
    rgba(71, 71, 71, 0.03) 3%,rgba(97, 97, 97, 0.03) 3%, rgba(97, 97, 97, 0.03) 40%,
    rgba(40, 40, 40, 0.03) 40%, rgba(40, 40, 40, 0.03) 55%,rgba(5, 5, 5, 0.03) 55%, 
    rgba(5, 5, 5, 0.03) 73%,rgba(242, 242, 242, 0.03) 73%, rgba(242, 242, 242, 0.03) 100%),
    linear-gradient(559deg, rgba(70, 70, 70, 0.03) 0%, rgba(70, 70, 70, 0.03) 11%,
    rgba(178, 178, 178, 0.03) 11%, rgba(178, 178, 178, 0.03) 23%,rgba(28,28,28, 0) 23%, 
    rgba(28,28,28, 0) 72%,rgba(152, 152, 152, 0.03) 72%, rgba(152, 152, 152, 0.03) 86%,
    rgba(0,0,0, 0.42) 86%, rgba(0,0,0, 0.42) 100%),linear-gradient(378deg, rgb(25,25,29),
    rgb(1, 1, 1));
}

body > footer {
    grid-area: foot;
    vertical-align: bottom;
}

footer {
    padding-top: 14em;
    padding-bottom: 16em;
    text-align: center;
}

footer h1 {
    margin: 10px;
}

body ul#portfolioitems {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    flex: 1;
    list-style-type: none;
    padding: 0;
    text-align: center;
}

body ul#portfolioitems li {
    flex-basis: 45%;
    margin: 0 2.5%;
    justify-content: center;
}

body ul#portfolioitems li p {
    margin-left: 10%;
    margin-right: 10%;
    max-width: 100%;
}

body ul#portfolioitems li img {
    object-fit: cover;
    max-width: 100%;
    height: 20vw;
    border-radius: 20px;
    border-color: #666666;
    border-style: solid;
    transition: border-color .2s ease-in, transform .2s;
}

body ul#portfolioitems li img:hover {
    object-fit: cover;
    max-width: 100%;
    height: 20vw;
    border-radius: 20px;
    border-color: var(--contrast-color);
    border-style: solid;
    transform: scale(1.1);
    transition: border-color .2s ease-in, transform .2s;
}

@media screen and (max-width: 600px) {
    body ul#portfolioitems li {
        flex-basis: 100%;
        margin: 0 2.5vw;
        justify-content: center;
    }
    body ul#portfolioitems li img {
        object-fit: cover;
        max-height: 100%;
        width: 80vw;
        border-radius: 20px;
        border-color: #666666;
        border-style: solid;
    }
    body ul#portfolioitems li p {
        margin-left: 2%;
        margin-right: 2%;
        max-width: 100%;
    }
}

h1, h2, h3 {
    line-height: 1em;
}

p {
    max-width: 48em;
}

h1#resumelink {
    text-align: center;
    margin-bottom: .5em;
}

#heylisten {
    text-align: center;
    font-weight: 100;
    font-style: italic;
    font-size: .8em;
    margin-top: 0;
}

body ul#workvcomplete {
    margin: 0;
    align-content: center;
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    flex: 1;
    list-style-type: none;
    padding-left: 0;
}

body ul#workvcomplete > li {
    width: 20em;
    margin: 0 2em;
}

hr#picstarthr {
    margin: 0;
    margin-top: 2em;
}

span.date {
    padding-top: 0;
    font-weight: 200;
}

::-webkit-scrollbar {
    width: 10px;
    scrollbar-width: thin;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgb(60, 60, 60); 
    border-radius: 10px;
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 5px grey; 
    border-radius: 15px;
    background: none;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--contrast-color);
    border: 3px solid rgb(60, 60, 60);
  }