* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Raleway, sans-serif;
    width: 100%;
    overflow-x: hidden;
    font-size: 14pt;
    background-color: black;
}

hr {
    border: none;
    width: 40%;
    border-top: 1px solid #aaa;
    margin: 10px auto;
}

h1, h2, h3 {
    font-family: Arvo, sans-serif;
}

.faded-out {
    opacity: 0;
}

form {
    padding: 20px;
    width: 80%;
    margin: auto;
    text-align: center;
}

form table {
    display: inline-block;
}

form td:first-child {
    text-align: right;
}

form td {
    padding: 10px;
}

form input, form button {
    border-radius: 5px;
    padding: 8px;
    border: 1px solid grey;
}

#header {
    background-color: black;
    text-align: center;
    font-family: Arvo, sans-serif;
}


#site-title {
    display: block;
    position: relative;
    text-transform: uppercase;
    font-size: 26pt;
    padding: 10px 0 15px;
    letter-spacing: 2px;
    color: #aaa;
    text-decoration: none;
    height: 1em;
}

#site-title-left, #site-title-right {
    display: block;
    position: absolute;
    width: 45%;
    width: calc(50% - 60px);
}

#site-title-right {
    right: 0;
    text-align: left;
}

#site-title-left{
    left: 0;
    text-align: right;
}

@keyframes spin {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

.header-emphasis {
    display: block;
    width: 100%;
    border-bottom: 30px solid black;
    text-align: center;
    background-image: url(https://66.media.tumblr.com/21210fb6db10f59cf57b6706a82c1ca3/tumblr_pqbhmxfz041sw1xnko1_1280.png);
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    color: black;
    text-decoration: none;
}

.header-inner {
    box-sizing: border-box;
    display: block;
    font-size: 16pt;
    width: 100%;
    padding: 10% 15%;
    background-color: #EAE6E0;
    background-color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.header-inner h1 {
    font-weight: normal;
    font-size: 50pt;
}

#menu {
    display: flex;
    justify-content: space-evenly;
}

#menu #brand-link {
    width: 50px;
    flex-grow: 0;
}

#menu #brand {
    z-index: 5;
    position: absolute;
    width: 100px;
    left: 50%;
    transform: translateX(-50%);
    top: -50px;
    background-color: black;
    border-radius: 200px;
    border: 5px solid black;
    animation: spin 3s linear infinite;
    animation-play-state: paused;
}

#menu #brand:hover {
    animation-play-state: running;
}

#menu a {
    box-sizing: border-box;
    position: relative;
    width: 250px;
    flex-grow: 1;
    transition: 0.15s all ease-in-out;
    margin: 1px;
    display: inline-block;
    padding-bottom: 25px;
    color: white;
    text-decoration: none;
}

#menu a .edge {
    transition: 0.15s all ease-in-out;
    width: 100%;
    background-position: center;
    background-size: cover;
    height: 3px;
    margin-bottom: 25px;
}

#menu a:hover {
    padding-bottom: 7px;
}

#menu a:hover .edge {
    margin-bottom: 10px;
    height: 35px;
}
    
#show-menu {
    display: none;
}

.main {
    position: relative;
    min-height: 100%;
    background-color: white;
}

.section {
    padding: 70px 100px;
}

.section a {
    color: #898276;
    text-decoration: none;
}

.section.alt {
    background-color: #EAE6E0;
}

.section.dark {
    background-color: black;
    color: white;
}

.section.centre {
    text-align: center;
    padding-left: 10%;
    padding-right: 10%;
}

.section.dark a {
    color: #EAE8E0;
    text-decoration: none;
}

.section h1 {
    margin: 0 0 1em 0;
    text-align: center;
}

.section h2 {
    color: grey;
    margin: 1em 0 0.5em 0;
    text-align: center;
}

.section iframe {
    display: inline-block;
    margin: auto;
}

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

.main p {
    line-height: 1.5em;
    margin: 0.6em 0;
}

.link-icons {
    font-size: 40pt;
    text-align: center;
}

.tiling-gallery {
    position: relative;
    line-height: 0;
    display: flex;
    flex-wrap: wrap;
}

.tiling-gallery .tiling-item {
    width: 33.3%;
    height: 300px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    position: relative;
    display: table;
    overflow: hidden;
}

.tiling-gallery .tiling-item:hover div {
    background-color: black;
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(1.05, 1.05);
}

.tiling-gallery .tiling-item div {
    transition: background-color 0.2s, transform 0.5s;
    display: table-cell;
    font-size: 20pt;
    background-color: black;
    background-color: rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
    color: white;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 1em;
    vertical-align: middle;
}

.section#gallery {
    padding: 40px 200px;
}
    
.gallery {
    display: flex;
    padding: 20px 0;
}

.gallery-area {
    box-sizing: border-box;
    width: 40%;
    font-size: 0;
    letter-spacing: 0;
}

.gallery-desc {
    box-sizing: border-box;
    width: 60%;
    display: block;
    padding-left: 30px;
    padding-right: 20%;
}

.gallery-desc h1 {
    border: none;
    text-align: left;
}

.gallery-big-portrait {
    width: 40%;
    float: right;
    margin-left: 10px;
}

.portrait {
    cursor: pointer;
    transition: 0.1s all linear;
    width: 25%;
    height: auto;
}

.portrait.active {
    opacity: 0.5;
}

#character-name {
    font-size: 20pt;
}

.section#art-gallery {
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.section#art-gallery h2 {
    width: 100%;
}

.art-gallery-item {
    background-color: #898276;
    background-position: center 30%;
    background-size: cover;
    height: 200px;
    width: 25%;
    margin: 5px;
}

.project-list {
    box-sizing: border-box;
    font-family: Arvo, sans-serif;
    font-size: 16pt;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    justify-content: center;
    padding: 20px 0;
    overflow-x: hidden;
}

.project-list-item {
    box-sizing: border-box;
    text-align: center;
    display: table;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    margin: 5px;
    background-color: #EAE8E0;
}

.project-list-item p {
    box-sizing: border-box;
    padding: 10px;
    height: 100%;
    width: 100%;
    background-color: #EAE8E0;
    background-color: rgba(234, 230, 224, 0.7);
    color: black;
    margin: 0;
    text-shadow: 0 0 2px #EAE8E0;
}

.project-list-item.inactive p {
    color: #aaa;
}

#footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 10pt;
    /*position: fixed;*/
    width: 100%;
    bottom: 0;
}

.lightbox {
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
}

.lightbox-image {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}
    
.visible {
    display: block !important;
}

/* RESPONSIVE STYLESHEET */

@media only screen and (max-width: 980px) {
    body {
        font-size: 20pt;
    }
    
    #site-title, .header-emphasis {
        overflow-wrap: break-word;
    }
    
    #header {
        position: relative;
    }
    
    .header-inner h1 {
        font-size: 50pt;
    }
    
    #site-title {
        box-sizing: border-box;
        height: auto;
        width: 90%;
        margin-left: 10%;
        display: inline-block;
        font-size: 30pt;
        padding: 20px;
    }
    
    #site-title-left, #site-title-right {
        position: relative;
        text-align: left;
        width: 100%;
    }
    
    #show-menu {
        font-size: 40pt;
        text-align: center;
        display: block;
        vertical-align: middle;
        color: #aaa;
        width: 10%;
        height: 138px;
        position: absolute;
        right: 0;
        top: 0;
    }
    
    #show-menu i {
        position: absolute;
        top: 50%;
        transform: translate(-100%, -50%);
    }
    
    #menu {
        display: block;
        font-size: 18pt;
    }
    
    #menu #brand-link {
        position: absolute;
        left: 10px;
        top: 10px;
        width: 10%;
    }
    
    #menu #brand {
        top: 0;
        transform: none;
    }
    
    #menu .menu-item {
        display: none;
        padding: 20px;
        width: 100%;
        border-top: 1px solid grey;
    }
    
    #menu a:hover {
        padding: 20px;
    }
    
    .main {
        margin-top: 0;
        padding: initial 0;
    }
    
    .link-icons {
        font-size: 80pt;
    }
    
    .section {
        padding: 70px 40px;
    }
    
    .section h1 {
        font-size: 40pt;
    }
    
    #menu .edge {
        display: none;
    }
    
    .tiling-gallery {
        height: 1800px;
    }
    
    .tiling-gallery .tiling-item {
        width: 100%;
    }
    
    .tiling-gallery .tiling-item div {
        font-size: 30pt;
    }
    
    .gallery {
        flex-wrap: wrap;
    }
    
    .gallery-big-portrait {
        float: none;
    }
    
    .gallery-area, .gallery-desc {
        width: 100%;
        float: none;
    }
    
    .gallery-desc {
        padding: 0;
        margin-top: 20px;
        text-align: center;
    }
    
    .gallery-desc h1 {
        margin-right: 0;
        text-align: center;
    }
    
    .art-gallery-item {
        width: 100%;
    }
    
    .project-list {
        text-align: center;
        font-size: 30pt;
        display: block;
    }
    
    .project-list-item {
        display: block;
    }
}