:root {
    --blue: #378BB5;
    --pink: #DDA4CB;
    --purple: #9B629B;
    --orange: #FBAE3D;
}

body {
    background-color: #c5ecff;
}

footer {
    display: flex;
    justify-content: right;
    flex-direction: column;
    margin-left: 580px;
}

.identity {
    font-family: 'Arima', serif;
    font-weight: bold;
    font-size: 1em;
    max-width: 420px;
    margin-left: 70px;
    margin-top: -55px;
}

.stage {
    width: 1200px;
    height: 700px;
    background-color: var(--purple);
    margin: 30px 0px 10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.presentation {
    width: 1140px;
    height: 640px;
    background-color: var(--pink);
    border-radius: 10px;
    display: flex;
}

.animators {
    position: relative;
    z-index: 10;
    list-style: none;
    padding: 0;
    margin: 0;
}

.animators a {
    color: black;
    font-family: 'DynaPuff', serif;
    text-decoration: none;
    font-size: 1.3em;
    text-align: center;
    padding: 20px 25px 10px 15px;
    margin: 15px 30px 10px 30px;
    display: inline-block;
    width: 150px;
    height: 40px;
    background-color: #4C9EC8;
    border: 5px;
    border-style: solid;
    border-color: var(--blue);
    border-radius: 20px;
    align-items: center;
}

.animators a:hover {
    font-size: 1.4em;
    color: #161616;
    background-color: var(--orange);
}

/* Web Design Animation*/

.webwindow {
    position: absolute;
}

.webwindow img{
    margin-left: 210px;
}

.webdoor {
    position: absolute;
    margin-top: -488px;
    margin-left: 200px;
    width: 700px;
    height: 484px;
    background-color: var(--pink);
    transition: transform 300ms;
    transform: translateX(0px);
}

.webdoor img {
    width: 500px;
    margin-top: 10px;
    margin-left: 100px;
}

.webdoor.slide {
    margin-top: -490px;
    border-style: solid;
    border-color: black;
    border-width: 2px;
    transition: transform 400ms;
    transform: translateX(600px);
}

/* Photography Animation */

.puzzle {
    display: grid;
    position: absolute;
    grid-template-columns: repeat(3, auto);
    max-width: 735px;
    margin-top: 5px;
    margin-left: 340px;
}

.flipcard {
    margin: 0;
    margin-top: -5px;
    perspective: 245px;
    transform-style: preserve-3d;
    width: 245px;
    position:relative;
    transition: transform 250ms;
}

.backCard {
    position: absolute;
    top: 0;
}

.frontCard {
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

.flipcard.flipped {
    transform: rotateY(180deg);
}

/* Video Animation */

.videoStage {
    position: absolute;
    margin-left: 250px;
}

.pixiVideo {
    position: absolute;
    margin-top: -300px;
    margin-left: -400px;
    display: none;
}

.pixiVideo.active {
    display: block;
}

/* 3D Animation */

.threeStage {
    position: absolute;
    margin-left: 340px;
    display: none;
}

.threeStage.active {
    display: block;
}

/* Art Animation */

.artStage {
    position: absolute;
    margin-left: 250px;
}

.pixiArt {
    position: absolute;
    margin-top: -300px;
    margin-left: -400px;
    display: none;
}

.pixiArt.active {
    display: block;
}

/* About Me Animation */

.aboutStage {
    position: absolute;
    margin-left: 250px;
}

.pixiAbout {
    position: absolute;
    margin-top: -300px;
    margin-left: -400px;
    display: none;
}

.pixiAbout.active {
    display: block;
}

/* Nav Menu Styles */
header {
    font-family: 'DynaPuff', serif;
    padding: 5px 10px;
    max-width: 1180px;
    background-color: #161616;
    border-radius: 10px;
}

.SiteLogo {
   width:10em;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu, .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu {
    display: flex;
}

.menu a {
    color: var(--orange);
    text-decoration:none;
    font-size: 1.1em;
    padding: 20px;
    display: inline-block;
}

.menu a:hover {
    font-size: 1.2em;
    padding: 20px;
    color: #161616;
    background-color: var(--orange);
    border-radius: 20px;
}

.menu-parent {
    position:relative;
}

/* Overview Pages */

h1 {
    font-family: 'DynaPuff', serif;
    font-size: 2.5em;
    color: #691F6B;
    margin-top: 80px;
}

h2 {
    font-family: 'DynaPuff', serif;
    font-size: 1.5em;
    color: #691F6B;
}

h3 {
    font-family: 'DynaPuff', serif;
    color: #691F6B;
}

.intro {
    width: 800px;
    font-size: 1.2em;
    margin-left: 200px;
    margin-bottom: 40px;
}

.intro img {
    display: flex;
    justify-items: center;
}

.concept {
    display: flex;
    justify-items: center;
    margin-bottom: 10px;
}

.concept img {
    width: 400px;
    margin-right: 20px;
}

.concept .smallImg {
    width: 300px;
}

.visit {
    color: black;
    font-family: 'DynaPuff', serif;
    text-decoration: none;
    font-size: 2em;
    text-align: center;
    padding: 5px 25px 10px 15px;
    margin: 15px 30px 10px 30px;
    display: inline-block;
    width: 150px;
    height: 40px;
    background-color: var(--pink);
    border: 5px;
    border-style: solid;
    border-color: var(--purple);
    border-radius: 20px;
    align-items: center;
}

.visit:hover {
    color: #161616;
    background-color: var(--orange);
}

.backBtn {
    color: black;
    font-family: 'DynaPuff', serif;
    text-decoration: none;
    font-size: 2em;
    text-align: center;
    padding: 5px 25px 10px 15px;
    margin: 15px 30px 0px 200px;
    display: inline-block;
    width: 120px;
    height: 40px;
    background-color: #4C9EC8;
    border: 5px;
    border-style: solid;
    border-color: var(--blue);
    border-radius: 20px;
    align-items: center;
}

.backBtn:hover {
    background-color: var(--pink);
}

.project-grid a {
    font-family: 'DynaPuff', serif;
    text-decoration: none;
    text-align: center;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    max-width: 1200px;
    margin-bottom: 20px;
}

.project {
    margin: 10px;
    padding: 20px;
    background-color: #4C9EC8;
    border-radius: 20px;
    width: 330px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project img {
    max-width: 300px;
    max-height: 250px;
}

/* Image Zoom */

.popup-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    max-width: 1200px;
    margin-bottom: 20px;
    margin-left: 15px;
}

/* Styles the popup, removes it from sight and adds the fade-in transition */

/* Styles the thumbnail */

.popup {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 40px 40px 5px;
    width: 350px;
    height: 300px;
}

a.popup img {
    max-width: 100%;
    max-height: 100%;
    border: 3px solid white;
    box-shadow: 0px 0px 8px rgba(0,0,0,.3);
    justify-content: center;
}

a.popup img:hover {
    border: 3px solid #FBAE3D;
}

.popup-target {
    position: fixed;
    top: -100%;
    width: 1200px;
    background: rgba(0,0,0,.7);
    opacity: 0;
    -webkit-transition: opacity .5s ease-in-out;
    -moz-transition: opacity .5s ease-in-out;
    -o-transition: opacity .5s ease-in-out;
    transition: opacity .5s ease-in-out;
}
    
    /* Styles the popup image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */
    
.popup-target img {
    margin: auto;
    position: absolute;
    top: 0;
    left:0;
    right:0;
    bottom: 0;
    height: 600px;
    border: 3px solid white;
    box-shadow: 0px 0px 10px black;
    box-sizing: border-box;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;  
}
    
.comments {
    display: flex;
    justify-content: center;
    position: absolute;
    color: white;
    font-size: 1em;
    font-family: 'Arima', serif;
    background-color: black;
    width: 600px;
    padding: 0px 10px;
    margin: 10px 0px 10px 40px;
    border-radius: 20px;
    text-align: center;
    bottom: 0;
}

/* Styles the close link, adds the slide down transition */
    
a.popup-close {
    display: block;
    width:50px;
    height:50px;
    box-sizing: border-box;
    background: white;
    color: black;
    text-decoration: none;
    position: absolute;
    top: -80px;
    right: 0;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
}
    
/* Provides part of the "X" to eliminate an image from the close link */
    
a.popup-close:before {
    content: "";
    display: block;
    height: 30px;
    width: 1px;
    background: black;
    position: absolute;
    left: 26px;
    top:10px;
    -webkit-transform:rotate(45deg);
    -moz-transform:rotate(45deg);
    -o-transform:rotate(45deg);
    transform:rotate(45deg);
}
    
/* Provides part of the "X" to eliminate an image from the close link */
    
a.popup-close:after {
    content: "";
    display: block;
    height: 30px;
    width: 1px;
    background: black;
    position: absolute;
    left: 26px;
    top:10px;
    -webkit-transform:rotate(-45deg);
    -moz-transform:rotate(-45deg);
    -o-transform:rotate(-45deg);
    transform:rotate(-45deg);
}
    
/* Uses the :target pseudo-class to perform the animations upon clicking the .popup-target anchor */
    
.popup-target:target {
    opacity: 1;
    top: 0;
    bottom: 0;
}
    
.popup-target:target img {
    max-height: 100%;
    max-width: 100%;
}
    
.popup-target:target a.popup-close {
    top: 0;
}
    

/* About Me Page */

.profile {
    display: flex;
    justify-content: center;
    font-family: 'Arima', serif;
    max-width: 1200px;
    margin-bottom: 50px;
}

.profile img {
    width: 500px;
    margin: 20px;
    border-radius: 10px;
}

.bio {
    margin-left: 50px;
    max-width: 450px;
}

.bio h2 {
    font-family: 'DynaPuff', serif;
    margin: 40px 0px 0px 20px;
}

.bio ul {
    list-style: none;
    font-size: 1.3em;
}