﻿/* Katherine Townsend, CISS 216 Semester Project, 5/13/2020 */

/* base/default settings, best for max-width 54em */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: helvetica, verdana, sans-serif;
}


@font-face {
    font-family: 'edoregular';
    src: url('font/edo-webfont.eot');
    src: url('font/edo-webfont.eot?#iefix') format('embedded-opentype'), url('font/edo-webfont.woff2') format('woff2'), url('font/edo-webfont.woff') format('woff'), url('font/edo-webfont.ttf') format('truetype'), url('font/edo-webfont.svg#edoregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

body {
    border-top: rgb(192,0,0) solid 2px;
}

header {
    width: 100%;
    border-bottom: rgb(192,0,0) solid 2px;
}

.home-icon {
    display: none;
}

h1 {
    color: white;
    background: black;
    font-family: 'edoregular', serif;
    text-align: center;
    padding: .5em;
    letter-spacing: .1em;
}

nav ul {
    list-style: none;
}

nav ul li a {
    text-decoration: none;
}

nav.desktop {
    display: none;
}

nav.mobile {
    display: block;
    color: white;
    background-color: rgb(192,0,0);
}

nav.mobile p {
    width: 100%;
    text-align: center;
    line-height: 2em;
    font-weight: bold;
    font-size: 1.25em;
}

nav.mobile a {
    color: white;
    font-weight: bold;
    font-size: 1.5em;
    display: block;
    width: 100%;    
    line-height: 2em;
}

.dropdown-content {
    display: none;
    background-color: black;
    padding: 2em 0;
    z-index: 1;
    text-align: center;
}

nav.mobile:hover .dropdown-content {
    display: block;
}

nav.mobile ul li a:focus, nav.mobile ul li a:hover {
    color: black;
    background-color: white;
    transition: color ease-in-out .2s;
    transition: background-color ease-in-out .4s;
}

nav.mobile ul li a.active, nav.desktop ul li a.active {
    /*color: rgb(192,0,0);*/
    color: rgb(192,0,0);
    background-color: black;
    transition: color ease-in-out .2s;
    transition: background-color ease-in-out .4s;
}


main section {
    display: block;
    padding: 1em;
    line-height: 1.75em;
}

h2 {
    line-height: 1.75em;
}

.soundsgood {
    font-style: italic;
    font-size: 1.25em;
    line-height: 2em;
}

section .no-pad {
    padding: 0;
}

section .top-pad {
    padding-top: 2em;
}

section p {
    padding-top: 1.5em;
}

h3.landing {
    color: rgb(192,0,0);
    font-size: 1.25em;
    text-align: center;
}

section ul {
    padding: 1em 2em;
    text-align: center;
    list-style: none;
}

section.landing ul li:nth-child(even) {
    font-style:italic;
}

p a {
    color: black;
}

footer {
    min-height: 2.5em;
    width: 100%;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

    footer p {
        color: white;
        font-size: .75em;
    }

    #counters {visibility: hidden;}


/* ********* DESKTOP ***************************************************************************************/
/* ********* DESKTOP ***************************************************************************************/
/* ********* DESKTOP ***************************************************************************************/
@media only screen and (min-width: 55em) {

    .container {
        max-width: 1920px;
        background-color: rgba(255, 255, 255, 0.78);
    }

    .home-icon {
        display: block;
        position: absolute;
        max-width: 15vw;
        float: left;
        padding-left: 1em;
        top: 1.8em;
    }

    header {
        height: 20%;
        background-color: black;
        margin: 0;
        padding: 0;
    }

    body {
        background: url(../img/laptop.jpg) no-repeat;
        /*Photo by Glenn Carstens-Peters on Unsplash*/
        background-size: cover;
    }

    h1 {
        font-size: 3em;
        color: white;
        background: black;
        font-family: 'edoregular';
        letter-spacing: .15em;
        text-align: center;
        padding: .5em 2em;
    }

    nav.mobile {
        display: none;
    }

    main {
        display: flex;
    }

    nav.desktop {
        display: inline-block;
        margin: 0;
        padding: 0;
        /*background-color: white;*/
        border-right: solid .15em rgb(192,0,0);
        flex: 20%;
        min-width: 15em;
    }

        nav.desktop ul {
            padding-top: 12%;
        }

        nav.desktop a {
            color: black;
            font-size: 1.25em;
            font-weight: bold;
            line-height: 2.5em;
            display: block;
            width: 100%;
            text-indent: 12%;
        }

            nav.desktop a:hover, nav.desktop a:focus {
                color: white;
                background-color: #555;
                transition: color ease-in-out .2s;
                transition: background-color ease-in-out .2s;
            }

    main section {
        padding: 3%;
    }

    section:nth-of-type(1).landing {
        flex: 50%;
    }

    section:nth-of-type(2).landing {
        flex: 30%;
        background-color: white;
        background-image: url(../img/background-tile1.png);
        border-radius: 7px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        margin: 1.75em 2em;
        padding: 1.75em 2em;
    }

        section:nth-of-type(2).landing ul li {
            padding-bottom: .25em;
        }

        section:nth-of-type(2).landing h3 {
            padding-bottom: .25em;
        }

    .imgindex {
        float: right;
        padding-right: 4em;
    }
}

 /* end desktop @media */