/*
    Invisible Time Machine stylesheet
    Author: Cassidy Kane
    Date: 10/26/2017
*/

/* Body */

body {
    background-color: black;
    color: white;
    font-family: 'Almendra SC', Impact, sans-serif;
    width: 98%;
    position: relative;
    min-height: 99%;
    min-width: 99%;
}

/* Header */

header {
    text-align: center;
    width: 100%;

    margin-top: 1%;
    border-top: 0.1em solid white;
    border-bottom: 0.1em solid white;
    padding: .6% 0 0.3% 0;
}

header h1 {
    font-size: 300%;
    font-family: Creepster;
    letter-spacing: 0.1em;
}

header h2 {
    font-size: 150%;
}

/* Header: mobile styles (portrait and landscape) */

@media only screen and (min-device-width : 320px)
                   and (max-device-width : 480px) {
    header h1 {
        font-size: 150%;
    }

    header h2 {
        font-size: 75%;
    }
}

/* Navigation links */

nav {
    text-align: center;

}

nav a {
    letter-spacing: 2px;

    margin: 1% 1% 3%;
    border: 1px solid white;
    padding: 0 1% 0.15%;
}

nav a:hover {
    background-color: white;
    color: black;
}

/* General element styles */

a {
    color: white;
    font-family: 'Almendra SC', Impact, sans-serif;
}

a img:hover {
    opacity: 0.5;
}

img {
    border: 2px solid white;
    border-radius: 2%;
}

.h1class {
    font-family: 'Almendra SC', Impact, sans-serif;
    font-size: 200%;
    font-weight: bold;
    letter-spacing: 3px;
}

h2 {
    font-family: 'Almendra SC', Impact, sans-serif;
    letter-spacing: 0.1em;
}

/* Positioning for main pages (sculpt.htm, afraid.htm, show.htm) */

.pagesection {
    text-align: center;
}

.pagesection article{
    margin: 0 12%;
}

.pagesection h1 {
    margin-top: 1%;
}

.pagesection p {
    margin-top: 2%;
}

.pagesection img {
    margin: 2%;
    size: auto;
}

/* Afraid of the Dark page (afraid.htm) */

article#afraidimgs {
    margin: 0 20%;
}

/* Afraid of the Dark page (afraid.htm): mobile styles */

@media only screen and (min-device-width: 320px) 
                   and (max-device-width: 1450px)
                   and (orientation: portrait) {
    #afraid h1 {
        font-size: 150%;
    }

    #afraidimgs img {
        max-height: 80%;
    }

    iframe {
        display: block; 
        max-width: 100%!important; 
        max-height: 100%!important;
    }
}

/* Show page (show.htm): mobile styles */

@media only screen and (min-device-width: 320px) 
                   and (max-device-width: 1450px)
                   and (orientation: portrait) {
    #show h1 {
        font-size: 150%;
    }

    #show {
        text-align: center;
    }
}

/* Home Page (index.htm) */

#home {
    text-align: center;
    margin-top: 0.3%;
}

section#home {
    padding-top: 0;
}

#home figure {
    display: inline-block;
    margin: 1% 4% 1% 1%;
}

#home figcaption {
    margin: 0 3% 3%;
    font-family: 'Almendra SC', Impact, sans-serif;
    font-size: 120%;
}

/* About page (about.htm) */

#about img {
    float: left;
    margin: 20px 20px 10px 40px;
}

#about h1 {
    margin: 2% 0 0 4%;
}

#about a {
    letter-spacing: 0.5%;
    word-spacing: 1%;
    text-align: center;
    white-space: pre;

    width: 19%;
    margin-top: 2%;
    border: 1px solid white;
    padding: 0 0.35% 0.15%;
}

#about a:hover {
    background-color: white;
    color: black;
}

#about p {
    text-align: justify;
    width: 90%;
    margin: 10px 0px 0px 40px;
    letter-spacing: 0.1em;
}

#about p:last-of-type {
    margin-bottom: 20px;
}

/* About page: mobile styles (portrait) */

@media only screen and (min-device-width: 320px) 
                   and (max-device-width: 1450px)
                   and (orientation: portrait) {
    #about img {
        clear: left;
        margin-left: 26%;
        width: 50%;
        height: 50%;
    }

    #about a, #about h2 {
        margin-left: 6%;
    }

    #about p {
        margin-left: 4%;
    }
}

/* Sculpture pages */

.sculpture {
    text-align: center;
    margin-top: 2%;    
}

.sculpture img {
    margin: 20px;
}

/* Individual Image pages */

.imgpage {
    text-align: center;
    margin: 2% 0 2.5% 0;
}

section.imgpage {
    max-height: auto;
    max-width: auto;
}

.imgpage img {
    max-height: 60%;
    max-width: 60%;
}

/* Image page: styles for mobile */

@media only screen and (min-device-width: 320px) 
                   and (max-device-width: 1450px)
                   and (orientation: portrait) {
    .imgpage img {
        max-height: 100%;
        max-width: 100%;
    }
}

/* Footer */

footer {
    clear: left;
    text-align: center;
    margin-top: 1%;
    border-top: 2px solid white;
    padding-top: 1%;
}

footer address {
    font-size: 80%;
    font-family: 'Almendra SC', Impact, sans-serif;
    font-style: normal;
    letter-spacing: 2px;
    word-spacing: 2px;
}

footer a {
    color: white;
    font-family: 'Almendra SC', Impact, sans-serif;
    white-space: pre;
    border: 1px solid white;
    padding-left: 2px;
}

footer a:hover {
    background-color: white;
    color: black;
}