﻿/*
    black, orange, darkred, #4800ff, white
*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: white;
    background-color: #4800ff;
}

.container-fluid {
    display: flex;
    flex-flow: column wrap;
    width: 100%;
}



header {
    display: flex;
    flex-flow: column nowrap;
    width: 90%;
    justify-content: center;
    margin: 0 auto;
    height: 9rem;
}

h1, header p {
    display: flex;
    text-align: left;
    padding: .25rem;
}

main {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
}

section {
    display: flex;
    width: 100%;
    flex-flow: column nowrap;
    justify-content: flex-start;
}

    section:first-child {
        background: darkred url("../img/black.png");
        background-size: cover;
    }

        section:first-child h2 {
            font-family: 'Pacifico', cursive;
            font-weight: lighter;
            font-size: 3rem;
            display: flex;
            justify-content: flex-start;
            width: 90%;
            margin: 0 auto;
            padding-bottom: 1rem;
        }

        section:first-child div {
            display: flex;
            flex-flow: column nowrap;
            width: 80%;
            margin: 0 auto;
            padding-bottom: 1em;
        }

    section:last-child {
        background-color: black;
        justify-content: flex-start;
    }
    
    section:last-child #lastsection {
        flex-flow: row wrap;
        width: 80%;
        margin: -5rem auto 0 auto;
}

        section:last-child #mytext {
            display: flex;
            flex-flow: column nowrap;
            width: 75%;
            justify-content: flex-end;
            align-items: flex-start;
            padding: .5rem 0;
            margin-left: 30%;
        }

h3 {padding: 1.5rem 0;}

        section:last-child #mytitle {
            display: flex;
            color: orange;
            font-size: 4rem;
            transform-origin: bottom left;
            transform: rotate(90deg);
            font-family: 'Source Sans Pro', Arial, sans-serif;
            text-transform: lowercase;
            line-height: 1em;
            justify-content: flex-start;
            width: 25%;
            padding-bottom: 7%;
        }

li {
    line-height: 1.5em;
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover, a:focus {
        font-style: italic;
    }
    
    footer {
    display: flex;
    flex-flow: row nowrap;
    width: 100%;
    height: 5rem;
    justify-content: center;
    align-items: center;
    font-size: small;
    }


@media (min-width: 1025px) {

    .container-fluid {
        height: 100vh;
        flex-flow: column nowrap;
    }

    header {
        flex-flow: row nowrap;
        justify-content: space-between;
        align-items: center;
        height: 14%;
        width: 95%;
    }

        h1, header p {
            display: flex;
            text-align: left;
            padding: .25rem;
        }

    main {
        flex-flow: row nowrap;
        height: 80%;
        font-size: 1.15rem;
    }

    section:first-child h2 {
        display: flex;
        justify-content: center;
        padding-top: 1rem;
        font-size: 3.5rem;
    }

    section:first-child div {
        align-items: center;
    }

    h3 {
        font-size: 1.35rem; 
        padding-bottom: 2rem;
    }

    section:last-child {
        justify-content: center;
    }

        section:last-child #mytext {
            margin-left: 15%;
            padding-top: 1rem;
        }

        section:last-child #mytitle {
            transform-origin: bottom left;
            transform: rotate(90deg);
            justify-content: flex-start;
            width: 25%;
            /* hide space in the relative location (that would have been used by the element without transformation */
            height: 0;
            /* position transformed element to the right side */
            position: absolute;
            right: -15%;
            top: 13%;
        }

    footer {
        flex-flow: row nowrap;
        height: 10%;
    }

}


