* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

h1 {
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-weight: 300;
}


h2 {
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-weight: 300;
}

h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

p {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 24px;
    font-weight: 300;
    color: #bababa;
}


a {
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    color: #f9f9f9;
/*    text-transform: uppercase;*/
}

nav a:hover {
/*    color: white;*/
}

header {
    z-index: 99999;
    position: fixed;
    top: 0;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    background-color: black;
    animation: header 2s 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}


header.seen-it-already {
    animation: none;
    opacity: 0;
    z-index: -9;
}


#intro {
    width: 30%;
    height: 30%;
/*    margin-bottom: 5%;*/
}

header h1 {
    font-size: 1.2rem;
    line-height: 1.5rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#hfade1 {
    opacity: 0;
    animation: hshow1 2s 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

#hfade2 {
    opacity: 0;
    animation: hshow2 2s 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes hshow1 {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

@keyframes hshow2 {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

@keyframes header {
    0% {opacity: 1;}
    50% {opacity: 1;}
    100% {opacity: 0; z-index: -9;}
}

@keyframes arrow {
    0% {opacity: 0;}
    25% {opacity: 1;}
    50% {opacity: 0.5;}
    75% {opacity: 1;}
    100% {opacity: 0;}
}

body {
    background-color: #000000;
}

nav {
    display: flex;
    height: 100px;
    width: 100%;
    padding: 20px;
    justify-content: center;
    align-items: center;
    
    z-index: 500;
    overflow: hidden;
    background-color: black;
    position: fixed; /* Set the navbar to fixed position */
    top: 0; /* Position the navbar at the top of the page */
    width: 100%; /* Full width */
/*    border: 1px solid red;*/
}

nav a {
    color: #bababa;
    padding-top: 5px;
    text-transform: none;
    font size: 20px;
    font-weight: 300;
    margin: 30px;
}

nav a:hover {
/*    text-transform: uppercase;*/
/*    color: #FFFFFF;*/
/*    font-weight: 900;*/
/*    letter-spacing: 5px;*/
/*    font-size: 30px;*/
/*    text-decoration: underline;*/
}

#button {
/*    margin-top: 12px;*/
    height: 60px;
    width: 60px;
    margin: 0px;
}

main {
    padding: 0px;
    display: flex;
    flex-wrap: wrap;
    width: 95%;
    margin: auto;
    justify-content: center;
    align-items: stretch;
}

#mainpage {
    margin-top: 130px;
}

#mainpage section {
    margin: 5px;
    min-width: 300px;
    min-height: 300px;
}

main img {
    max-width: 100%;
    max-height: 100%;
}

.imgblock {
    position: relative;
}

.inner {
    opacity: 0;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 5px;
    background-color: #d84227;
/*    background: rgba(216, 66, 39, .75);*/
    z-index: 9;
    color: white;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
}

.inner h2 {
    padding: 10px;
    font-size: 3rem;
    margin-bottom: 16px;
}

.inner p {
    color: white;
}

.inner:hover {
    opacity: 1;
}

.inner:active {
    opacity: 1;
}

footer {
    margin-top: 30px;
    height: 200px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    background-color: #000000;
    z-index: 9999;
}

footer a {
    padding: 5px 10px;
    color: darkgray;
    text-transform: none;
    font-weight: 300;
    font size: 20px;
}

footer a:hover {
    letter-spacing: normal;
    font-size: 30px;
}

footer img {
    max-height: 25px;
    margin: 10px;
}

footer p {
    color: #4a4a4a;
    font-size: 12px;
    text-decoration: none;
    margin-top: 20px;
}

/********PROJECT PAGE*********/



#pageswitchers img {
/*    display: none;*/
    
}

#pageswitchers div:hover {
}

#leftbutton {
    position: fixed;
    top: 50%;
    left: 10px;
}

#rightbutton {
    position: fixed;
    top: 50%;
    right: 10px;
}

#content {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
/*    border: 1px solid red;*/
}

#imgdisplay {
    width: 100%;
    background-color: black;
    display: block;
    padding: 0px;
    margin: auto;
    flex-flow: column;
}

#imgbox {
    display: flex;
    flex-flow: column;
    align-items: center;
    padding: 0 30px;
}

#imgbox p {
        text-align: center;
        margin: 8% 8%;
    }

#imgbox img {
    margin: 10px 0;
}

#description {
    width: 100%;
    background-color: black;
    padding: 30px;
    flex-flow: column;
    margin-top: 5%;
/*    border: 1px solid red;   */
}

#description h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: white;
}

#description h3 {
    margin-top: 20px;
    margin-bottom: 3px;
    color: white;
}

#description p {
    margin-bottom: 10px;
/*    color: darkgray;*/
    font-weight: 300;
}

#description a {
    color: #d84227;
}

#leftinfo {
    width: 90%;
/*    border: 1px solid blue;*/
}

#rightinfo {
    margin-top: 20px;
}

.credit {
    color: #4a4a4a;
/*    font-style: italic;*/
}

.ptext {
    text-align: center;
    width: 90%;
    margin: 30px 0;
    color: darkgray;
}

#ptext1 {
    position: absolute;
    opacity: 0;
}

#line {
    width: 100%
}

hr {
    border: 1px solid #4a4a4a;
    margin: 10px 30px 0px 30px;
}

/********ABOUTPAGE*******/

#about {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: center; 
    margin: auto;
}

#whitebox {
/*    background-color: white;*/
    display: flex;
    flex-flow: column;
    align-items: center;
    margin-top: 100px;
    padding: 20px;
    height: auto;
    animation: appear 2s;
}

@keyframes appear {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

#aboutimg {
/*    max-width: 100%;*/
/*    padding: 20px;*/
}

#aboutimg img {
    max-width: 100%;
}

#abouttext {
    padding: 30px;
}

#abouttext h2 {
   font-size: 3rem;
   color: white;
}

#about p {
    margin-top: 16px;
    font-weight: 300;
    color: darkgray;
}


/*
.aboutlink {
    background-color: #d84227;
    display: inline-block;
    padding: 5px 20px;
    margin: 15px 15px 0px 0px;
    border-radius: 20px;
    border: 1px solid red;
*/
}

#about a {
    color: #d84227;
    font-weight: 500;
}

/********************************** TABLET VERSION *************************************************/

@media all and (min-width: 500px) {
    
    #intro {
    width: 20%;
    height: 20%;
    margin-bottom: 50px;
}
    
    header h1 {
    font-size: 1.7rem;
    line-height: 2.4rem;    
    }
    
    
    main {
        width: 100%;
    }
    
    #mainpage section {
    margin: 5px;
    min-width: 600px;
    min-height: 600px;
}

    main img {
    max-width: 100%;
    max-height: 100%;
    }
    
    /**********ABOUT PAGE*********/
  
/*    .aside { flex: 1 auto; }*/
    
/*
    #about {
    background: url("../images/about.jpg") no-repeat fixed center center;
    }
*/
    
    #whitebox {
        width: 80%;
    }

    
   /********PROJECT PAGE*********/
    
    
    #pageswitchers img {
        display: block;
/*        max-height: 70px;*/
    }   

    #pageswitchers p {
        display: block;
/*        font-size: 50px;*/
    }

    #imgbox {
    padding: 0;  
    }
    
    #imgdisplay {
    width: 82%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    padding: 20px;
/*    margin-bottom: 50px;*/
    }     
    
    #imgdisplay img {
    width: 100%;
/*    max-width: 800px;*/
    }
    
    #ptext1 {
        position: relative;
        opacity: 1;
    }
    
    #description {
    display: flex;
    flex-flow: column;
    }
    
    #description h2 {
    font-size: 2.5rem;
    }
    
    #leftinfo {
    width: 30%;
    }
}


/************************************************************* DESKTOP VERSION **********************************************************/

@media all and (min-width: 1100px) {
    
    nav {
    height: 130px;
    }
    
    main {
        width: 100%;
        margin: auto;
    }

    #mainpage section {
        margin: 5px;
        min-width: 600px;
        min-height: 600px;
    }

    main img {
        max-width: 100%;
        max-height: 100%;
}    
    
    .imgblock {
        max-width: 400px;
        max-height: 400px;
    }
    
    #downarrow {
        opacity: 0;
        z-index: -9999;
    }
    
    /********ABOUT****************/
    
    #whitebox {
        max-width: 70%;
        flex-flow: row;
        margin-top: 120px;
    }
    
    #abouttext {
        width: 95%;
        margin-top: 20px;
    }
    
    /********PROJECT PAGE*********/
/*
    #pageswitchers p {
        font-size: 60px;
    }
*/
    
    #pageswitchers img {
        display: block;
        max-height: 120px;
        margin: 30px;
    }
    
    #leftbutton {
    top: 50%;
    left: 70px;
    }

    #rightbutton {
    top: 50%;
    right: 70px;
}
    
    #description {
    width: 90%;
    flex-flow: row;
    }
    
    #description h2 {
    font-size: 2.5rem;
    }
    
    #leftinfo {
    width: 30%;
    }
    
    #rightinfo {
    width: 65%;  
    margin-left: 80px;
    margin-top: 0px;
    }
    
    #imgbox {
    width: 90%;
    }
    
    #imgdisplay {
/*    border: 1px solid red;*/
    max-width: 1400px;
    display: flex;
    }

    #imgdisplay img {
/*    border: 1px solid red;*/
    }
}
