/* RESET RELOADED */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
	outline: 0;
}
body {
	line-height: 1;
	color: black;
	background: linear-gradient(45deg, var(--color-zero), var(--color-one), var(--color-zero));
    overflow-x: hidden;
}
ol, ul {
	list-style: none;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	text-align: left;
	font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}

/* NEW CODE */
@font-face {
    font-family: 'Poly';
    src: url(fonts/Poly-Regular.otf);
}

html {
    scroll-behavior: smooth;
}

h1 {
    font-size: 2.5em;
    margin: 1.5rem;
    font-family: var(--font-two), sans-serif;
}

h2 {
    font-size: 1.5em;
    margin: 1rem;
    color: var(--color-three);
    font-style: italic;
}

h3 {
    font-size: 1em;
}

p {
    font-size: 1em;
    padding: 1em;
}

:root {
    --color-zero: #373737;
    --color-one: #6c7071;
    --color-two: #1675ac;
    --color-twofive: #146a9b;
    --color-three: #f1f4fd;
    --font-one: 'Courier New';
    --font-two: 'Poly';
}

/* Navigation bar/header */
.ghost-header {
    position: fixed;
    background-color: var(--color-one);
    border: solid var(--color-twofive) 3px;
    border-radius: 25% ;
    right:10px;
    top: 10px;
    width: 65px;
    height: 65px;
    z-index: 99;
}

.menu {
    color: var(--color-zero);
    display: flex;
    justify-content: center;
    margin-top: 8.5px;
}

@keyframes slide-in {
    0% {
        transform: translate(100vw)
    }
}
.header {
    right: 100vw;
    background-color: var(--color-two);
    display: flex;
    align-items: center;
    top: -5px;
    height: 85px;
    width: 100%;
    position: fixed;
    z-index: 100;
    border: solid, var(--color-twofive), 3px;
}

.navbar {
    width: 100%;
}

nav > ul {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--color-three);
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    padding: 0.5rem;
    font-family:var(--font-one), monospace;
}

/* End Navigation */

/* Welcome Section */
#welcome-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--color-three);
}

#welcome-portrait {
    margin-top: 10%;
    height: 300px;
    width: 400px;
    border: solid var(--color-twofive) 5px;
    border-radius: 50%;
    position: relative;
}

.down-scroll {
    position: absolute;
    bottom: 20px;
}

.down-scroll > a {
    text-decoration: none;
    color: black;
    font-family: var(--font-two), sans-serif;
}

/* End Welcome Section */

/* Contact Section */
#contact {
    height: 100vh;
    display: flex;
    justify-content: center;
}

.contact-header { 
    position: absolute;
    top: 100%;
    height: 85px;
    width: 100%;
    background-color: var(--color-two);
}

.contact-header > h1 {
    font-family: var(--font-one), monospace;
    color: var(--color-three);
}

.contact-forms {
    display: flex;
    flex-direction: column;
    justify-self: center;
    margin-top: min(25%, 175px);
    font-size: 4em;
    width: 75%;
    list-style: inside;
}

.contact-forms  li {
    margin:0;
    display: flex;
    align-items: center;
    padding: 5vh 0;
}

.contact-art {
    display: list-item;
    width: 50%;
    display: flex;
    justify-content: center;
    margin-left: 5%;
}

li h1 {
    margin: 0;
    font-size: 2.5rem;
}

.contact-text {
    text-decoration: none;
    width: 75%;
    margin-left: -5%;
    font-style: italic;
    color: var(--color-three)
}
/* End Contact */

/* Media Queries */
@media(hover: hover)  {
    .ghost-header:hover .header {
        animation: slide-in .75s;
        right: 0vw;
    }
    .header.hover {
        right: 0vw;
    }
    .nav-link:hover {
        text-decoration: underline;
    }
    .nav-link:active {
        color: var(--color-one)
    }
    .down-scroll >a:hover {
        text-decoration: underline;
    }
    .down-scroll > a:active {
        color:var(--color-two);
    }
    .contact-text:hover {
        text-decoration: underline;
    }
    .contact-text:active {
        color: var(--color-two);
    }
}

@media (hover: none) {  
   .ghost-header .header{
        right: 0vw;
    }
    .nav-link:active {
        text-decoration: underline;
        color: var(--color-one)
    }
    .down-scroll > a:active {
        text-decoration: underline;
        color:var(--color-two);
    }
    .contact-text:active {
        text-decoration: underline;
        color: var(--color-two);
    }
    
}

@media screen and (max-width: 577px) {
    .mobile-margin{
        margin-top: 17px;
    }
}

@media screen and (max-width: 545px) {
    .contact-header > h1 {
        margin-top:0;
    }
}