* { box-sizing: border-box; }

:root {
    --BrandReg    : rgba(240, 240, 240, 1);
    --NeutralBlue : rgba(141, 228, 255, 1);
    --DarkGrey    : rgba(48, 48, 48, 1);
    --DarkerGrey  : rgba(24, 24, 24, 1);
	--DarkestGrey : rgba(12, 12, 12, 1);
    --InfoSilver  : rgba(200, 200, 200, 1);
    --DarkSilver  : rgba(100, 100, 100, 1);
}

/* Scroll Bar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--DarkGrey);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:active {
    background: var(--NeutralBlue);
}

::-webkit-scrollbar-track {
    background: var(--InfoSilver);
}

/* Spacing for initial content divs */
#content-container > div {
    padding: 1em 2em;
}

body {
    padding: 0;
    margin: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: 'Nunito', sans-serif;
	font-size: 16px;
	color: var(--DarkGrey);
    position: relative;

    background: linear-gradient( rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7) ), url('../img/space2small.jpg');
    background-position: 0px 0px;
    background-size: 200%;
    animation: scrollBackground 180s linear infinite;
}

/* Scrolls background from top left to bottom right of image */
@keyframes scrollBackground {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 100%;
    }
}

body div {
    background-color: var(--BrandReg);
    border-radius: 5px;
}

#content-container {
    width: 80%;
    height: 98vh;
    margin-left: auto;
    margin-right: auto;
    padding-top: 10px;
    display: flex;
    background-color: rgba(0,0,0,0);
}

#profile {
    flex: 1;
    min-width: 370px;
    padding: 1em 2em 4em 2em !important;
    text-align: center;
    font-weight: bold;
    font-size: large;
    position: relative;
    box-shadow: 0 10px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    /* overflow: hidden; */
    display: flex;
    flex-direction: column;
}

#content {
    flex: 3;
    min-width: 600px;
    padding-top: 0 !important;
    margin-top: auto;
    margin-bottom: auto;
    width: auto;
    line-height: 1.7em;
    overflow: hidden;
    background-color: rgba(0,0,0,0);
}

/* Navigation */
nav {
    box-shadow: 0 10px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    border-radius: 5px;
    background-color: var(--BrandReg);
    margin-bottom: 2em;
}

nav a {
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 15px;
}

nav ul {
    padding: 0 0;
    margin: 0;
    width: 100%;
    display: flex;
}

nav li {
    flex: 1;
    display: inline-block;
    text-align: center;
    font-size: large;
    border-radius: 5px;
    transition: 150ms linear;
}

nav li:hover {
    cursor: pointer;
    background-color: var(--DarkGrey);
    color: var(--NeutralBlue);
    font-size: larger;
    font-weight: bold;
    transition: 150ms linear;
}

/* Profile */
#profile #profile-name {
    margin-bottom: 0;
}

#profile #profile-email {
    margin: 0;
    color: var(--DarkGrey)
}

#profile .quote {
    display: inline-block;
    font-style: italic;
    margin-bottom: 1em;
    line-height: 2em;
    padding: 1em 0;
    position: relative;
    color: gray;
}

#profile .quote .quote-text {
    display: inline-block;
    padding: 0 3em;
}

#profile .quote img {
    height: 40px;
    margin: 2px;
}

#profile .quote .quote-open {
    position: absolute;
    top: 0;
    left: 0;
}

#profile .quote .quote-close {
    transform: rotate(180deg);
    position: absolute;
    bottom: 65px;
    right: 0;
}

#profile .quote .quote-author {
    text-align: right;
    margin-top: 30px;
    display: inline-block;
    width: 100%;
    color: var(--DarkSilver);
}

#profile .quote .quote-author::before {
    text-align: right;
    content: '- ';
}

#profile #profile-content {
    margin-top: auto;
    margin-bottom: 5px;
    flex-grow: 1;
    overflow-y: auto;
}

#profile #attributes {
    margin: auto;
    font-size: smaller;
    text-align: left;
}

#profile #attributes tr td {
    line-height: 2em;
    font-weight: bold;
}

#profile #attributes tr td:first-child {
    text-align: right;
}

#profile #profile-img {
    width: 250px;
    border-radius: 50%;
    border: 5px solid var(--DarkGrey);
    box-shadow: 0 10px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    display: block;
    margin: 0.5em auto;
}

#profile #socials {
    display: flex;
    padding: 0;
    width: 100%;
    height: 4em;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--NeutralBlue);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

#profile #socials a {
    flex: 1;
    margin: auto;
    display: inline-block;
}

#profile #socials a img {
    height: 3.5em;
    transition: all 200ms ease;
}

#profile #socials a:first-child {
    margin-top: 4px;
}

#profile #socials a:not(:first-child) img {
    height: 4em;
}

#profile #socials a:hover {
    cursor: pointer;
}

#profile #socials a:hover img {
    transform: scale(1.25);
    transition: 200ms;
}

/* Content */
.show {
    display: block;
}

.hide {
    display: none;
}

.content-section {
    margin-top: 1.5em;
    padding-left: 50px;
    padding-right: 50px;
    max-height: 80vh;
    min-height: 80vh;
    line-height: 2em;

    overflow-y: auto;

    box-shadow: 0 10px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.content-section h2 {
    text-align: center;
    margin-top: 1.5em;
    margin-bottom: 2em;
}

.content-section p {
    width: 100%;
    height: 100%;
}

a.btn-primary {
    display: flex;
    align-items: center;
    text-align: center;
    padding: 10px;
    margin: 2em 0;
    text-decoration: none;
    background-color: var(--DarkGrey);
    color: var(--NeutralBlue);
    height: 3em;
    width: 12em;
    border-radius: 5px;
}

a.btn-primary:hover {
    background-color: var(--DarkerGrey);
}

a.btn-primary:hover {
    box-shadow: 1px 1px 1px 1px var(--NeutralBlue);
}

a.btn-primary img {
    flex: 1;
    height: 2em;
}

a.btn-primary span {
    flex: 4;
}

/* Resume */
#resume #object-resume {
    width: 100%;
    height: 60VH;
}

/* Projects */
#projects .project-section {
    width: 100%;
}

#projects .project-images {
    position: relative;
    max-width: 100%;
    display: block;
    justify-content: space-between;
}

#projects .project-images img {
    flex: 1;
    max-width: 80%;
    height: auto;
    transition: 200ms;
}

#projects .project-images img:hover {
    transform: scale(1.05);
    transition: 200ms;
    cursor: pointer;
}