﻿/*scrolls to page when navigation bar link is clicked*/
html {
    scroll-behavior: smooth;
}
/*main body*/
body {
    margin: 0;
    padding: 0;
}
/*container div that holds each part of the website*/
.container {
    width: 100%;
}

#navigation-bar-div {
    position: fixed;
    top: 0;
    font-family: Simpsons;
    font-size: 18pt;
    width: 100%;
    text-align: center;
    z-index: 4;
}

#navigation-bar li {
    margin: 0;
    padding: 0;
    border: 0;
}
/*title on landing page*/
#webpage-title {
    position: relative;
    font-family: Simpsons;
    font-size: 50pt;
    margin: 0;
    padding: 0;
    border: 0;
    color: #FFD90F;
    text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
    z-index: 1;
    width: fit-content;
    margin: auto;
}
/*landing page div*/
#landing {
    width: 100%;
    background-image: url(clouds.jpg);
    background-size: cover;
    padding-right: 0;
    padding-left: 0;
    box-sizing: border-box;
    margin: 0;
}
    /*landing page text*/
    #landing p {
        position: absolute;
        font-family: Cartoon;
        color: black;
        font-size: 25pt;
        bottom: 5px;
    }
/*information page header*/
#information h1 {
    font-family: Simpsons;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
/*div with show creator information*/
#show-creator {
    padding: 10px;
    font-family: Cartoon;
    float: none;
}
    /*show creator div header*/
    #show-creator h3 {
        font-family: 'Cartoon Bold';
        text-align: center;
    }
/*show history div*/
#show-history {
    padding: 10px;
    font-family: Cartoon;
    float: none;
}
/*popular episodes div*/
#popular {
    font-family: Cartoon;
    float: none;
}
    /*header in popular episodes div*/
    #popular h3 {
        text-align: center;
        font-family: Cartoon;
    }
/*photo gallery header*/
#photo-gallery h1 {
    font-family: Simpsons;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
/*styles the border on pictures in the photo gallery div*/
.character img {
    border: 15px ridge saddlebrown;
}
/*text underneath the pictures in photo galley*/
.character p {
    font-family: Simpsons;
    color: #F65132;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
/*form div*/
#form {
    box-sizing: border-box;
}
    /*form header*/
    #form h3 {
        margin: 0;
        border: 0;
        text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
        font-family: Simpsons;
    }
/*span contains "required"*/
span {
    font-family: Cartoon;
}
/*div that contains the form information*/
#form-table {
    position: relative;
}
/*text in the form*/
#form p {
    position: relative;
    text-align: center;
    margin-bottom: 10px;
}
/*input, select, and text area text*/
input, select, textarea {
    font-family: Cartoon;
}
/*table data - questions and inputs*/
td {
    display: inline-block;
    font-family: 'Cartoon Bold';
}
/*submit button*/
input[type=submit] {
    position: relative;
    width: 100px;
}
/*trivia text*/
caption {
    font-family: Simpsons;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
/*text area box*/
textarea {
    position: relative;
}
/*footer on all pages*/
#footer {
    position: fixed;
    background-color: #FFFF;
    bottom: 0;
    width: 100%;
    font-family: Cartoon;
    font-size: 15pt;
    z-index: 2;
}
/*email link in footer*/
#email a {
    text-decoration: none;
    color: #107DC0;
}

#email {
    position: relative;
    width: fit-content;
    left: 5px;
}

#name {
    position: relative;
    float: right;
    top: 0;
    margin: 0;
    padding: 0;
    border: 0;
    width: fit-content;
    color: #F65132;
    right: 5px;
}
/*fonts used*/
@font-face {
    font-family: Simpsons;
    src: url('Simpsonfont DEMO.otf');
}

@font-face {
    font-family: Cartoon;
    src: url(SF_Cartoonist_Hand.ttf);
}

@font-face {
    font-family: Cartoon Bold;
    src: url(SF_Cartoonist_Hand_Bold.ttf);
}


/*styling for larger screens*/
@media screen and (min-width: 800px) {
    #webpage-title {
        top: 120px;
        font-size: 70pt;
    }

    #navigation-bar-list {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

        #navigation-bar-list a {
            text-decoration: none;
            color: black;
        }

    #home-link {
        background-color: #107DC0;
        width: 20%;
        float: left;
        clear: left;
    }

    #information-link {
        background-color: #FFD90F;
        width: 20%;
        float: left;
    }

    #form-link {
        background-color: #F65132;
        width: 20%;
        float: left;
    }

    #photo-link {
        background-color: #FFFF;
        width: 20%;
        float: left;
    }

    #labs-link {
        background-color: #D6E69F;
        width: 20%;
        float: left;
    }

    #landing {
        position: absolute;
        height: 100%;
        width: 100%;
    }

        #landing p {
            position: absolute;
            bottom: 0;
            font-size: 25pt;
            left: 15px;
            color: black;
            font-weight: 100;
            text-align: center;
            width: 58%;
            padding: 0;
            border: none;
            margin-left: 0;
            z-index: 3;
        }

    #couch {
        position: absolute;
        right: 0;
        bottom: 10px;
        width: 30%;
        height: 40%;
        /*flips image horizontally*/
        transform: scaleX(-1);
        z-index: 3;
        margin: 0;
        border: 0;
    }

    #donut {
        position: absolute;
        left: 0;
        top: 70px;
        width: 11%;
        height: 22%;
        left: 50px;
    }

    #information {
        position: absolute;
        top: 100%;
        width: 100%;
        height: 155%;
        padding-right: 0;
        padding-left: 0;
        box-sizing: border-box;
        margin: 0;
    }

        /*used to change opacity of image without effecting the other contents on the page*/
        /*goes behind the information div*/
        #information:before {
            content: "";
            position: absolute;
            background-image: url(cast.jpeg);
            background-size: 100% 100%;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            z-index: -1;
            opacity: .2;
        }

        #information h1 {
            margin: 0;
            padding: 0px;
            border: 0;
            font-size: 50pt;
            left: 15%;
            box-sizing: border-box;
            position: absolute;
            color: #107DC0;
            top: 60px;
            z-index: 1;
            width: fit-content;
            text-align: center;
        }

    #show-creator {
        background-color: #FFD90F;
        width: 33.3%;
        position: relative;
        top: 225px;
        height: 680px;
        left: 5px;
        text-align: left;
        font-size: 18pt;
        box-sizing: border-box;
        float: left;
    }

        #show-creator h3 {
            position: relative;
            top: 0;
            font-size: 30pt;
            margin: 0;
        }

        #show-creator p {
            position: relative;
            top: 5px;
            margin-top: 0;
        }

    #matt-groening {
        position: relative;
        width: 45%;
        height: 36%;
        margin-right: 20px;
        margin-bottom: 0;
        border: 2px black solid;
    }

    #groening {
        position: relative;
        width: 45%;
        height: 36%;
        right: 0;
        margin: 0;
    }

    #show-history {
        background-color: #F65132;
        width: 33.3%;
        position: relative;
        top: 225px;
        height: 680px;
        text-align: center;
        font-size: 17pt;
        box-sizing: border-box;
        float: left;
    }

        #show-history h3 {
            margin: 0;
            font-size: 30pt;
            font-family: 'Cartoon Bold';
        }

        #show-history p {
            position: absolute;
            bottom: 0;
            margin-bottom: 5px;
            margin-right: 10px;
            text-align: left;
        }

    #family {
        position: absolute;
        width: 60%;
        height: 25%;
        top: 60px;
        margin: 0;
        left: 70px;
        border: 2px black solid;
    }

    #popular {
        background-color: #D6E69F;
        width: 33.3%;
        position: relative;
        top: 225px;
        height: 680px;
        padding: 10px;
        text-align: left;
        font-size: 19pt;
        box-sizing: border-box;
        right: 5px;
        float: left;
    }

        #popular h3 {
            position: relative;
            top: 0;
            font-size: 30pt;
            margin: 0;
        }

    #episode ol {
        margin-top: 0;
        position: relative;
        top: 10px;
    }

    #homer-at-bat {
        width: 39%;
        height: 28%;
        position: absolute;
        bottom: 10px;
        right: 20px;
        border: 2px black solid;
    }

    #photo-gallery {
        height: 170%;
        width: 100%;
        position: absolute;
        top: 255%;
        padding-right: 10px;
        padding-left: 10px;
        box-sizing: border-box;
        margin: 0;
    }
        /*used to change opacity of image without effecting the other contents on the page*/
        /*goes behind the information div*/
        #photo-gallery:before {
            content: "";
            position: absolute;
            background-image: url(house.png);
            background-size: 100% 100%;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            z-index: -3;
            opacity: .2;
        }

        #photo-gallery h1 {
            margin: 0;
            padding: 0px;
            border: 0;
            font-size: 50pt;
            box-sizing: border-box;
            position: absolute;
            color: #D6E69F;
            top: 40px;
            z-index: 1;
            left: 25%;
        }
    /*div that contains all of the photo gallery images*/
    #pictures {
        position: relative;
        top: 190px;
        width: 100%;
        height: 725px;
        z-index: -2;
    }
    /*divs that contain each of the photo gallery images*/
    .character {
        float: left;
        width: 33.3%;
        height: 45%;
        box-sizing: border-box;
        margin-bottom: 90px;
        z-index: -3;
        text-align: center;
        font-size: 18pt;
    }

        .character img {
            width: 75%;
            height: 100%;
            margin: 0;
        }

        .character p {
            margin-top: 0;
            position: relative;
            top: -8px;
        }

    #form {
        height: 210%;
        width: 100%;
        position: absolute;
        top: 425%;
        padding-right: 10px;
        padding-left: 10px;
        background-color: #D6E69F;
        margin: 0;
    }

        #form h1 {
            padding: 0px;
            font-size: 45pt;
            box-sizing: border-box;
            position: absolute;
            color: #F65132;
            top: 25px;
            z-index: 1;
            left: 12%;
            font-family: Simpsons;
            text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
        }

        #form h3 {
            font-size: 35pt;
            font-family: Cartoon;
            margin: 0;
            padding: 2px;
            border: 0;
            box-sizing: border-box;
            position: relative;
            top: 150px;
            color: black;
            font-weight: lighter;
            text-align: center;
        }

    #form-table {
        background-color: #FFD90F;
        top: 200px;
        height: 910px;
        padding: 5px;
        padding-top: 20px;
        border: 5px solid #107DC0;
    }

    #form p {
        font-size: 30pt;
        color: #FFFF;
        font-family: Simpsons;
        text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    }

    input, select, textarea {
        font-size: 15pt;
        margin: 5px;
    }

    td {
        font-size: 20pt;
        padding-bottom: 20px;
    }
    /*text input*/
    input[type=text] {
        width: 30%;
        box-sizing: border-box;
    }
    /*email input*/
    input[type=email] {
        width: 27.8%;
        box-sizing: border-box;
    }
    /*phone number input*/
    input[type=tel] {
        width: 29%;
        box-sizing: border-box;
    }

    input[type=submit] {
        left: 10px;
        top: 5px;
    }
    /*labels on form*/
    label {
        margin-bottom: 10px;
        display: inline-block;
    }

        label[for=true_or_false] {
            display: block;
        }

        label[for=dog] {
            padding-right: 30px;
        }

    input[type=radio] {
        margin-top: 10px;
    }

    span {
        color: #107DC0;
    }

    caption {
        font-size: 25pt;
        color: #F65132;
        padding: 20px;
    }

    textarea {
        outline: 3px solid #F65132;
        top: 15px;
    }

    #footer {
        padding: 0;
        margin: 0;
        border: 0;
        clear: both;
        box-sizing: border-box;
    }

        #footer a {
            position: relative;
            left: 5px;
        }

        #footer p {
            position: relative;
            margin: 0;
            border: 0;
            padding: 0;
            left: 0;
            font-size: 15pt;
            float: right;
            right: 0;
            color: #F65132;
            width: 10%;
        }

    .clear {
        clear: both;
    }

    #menu-button {
        display: none;
    }

    #simpsons {
        display: none;
    }

    #simpsons-landing {
        display: none;
    }
}

/*styling for smaller screens*/
@media screen and (max-width: 800px) {
    /*.nav {
        display: none;
    }*/
    #menu-button {
        padding: 0;
        position: fixed;
        margin: 0;
        border: 0;
        top: 0;
        right: 0;
        width: 10%;
        height: 10%;
    }

    #menu {
        width: 100%;
        height: 100%;
        position: relative;
        top: 5px;
        right: 5px;
    }

    #navigation-bar-div {
        position: fixed;
        top: 0;
        width: 100%;
        font-family: Simpsons;
        font-size: 15pt;
        text-align: center;
        z-index: 2;
    }

    #navigation-bar-list {
        display: none;
        /* list-style-type: none;
        margin: 0;
        padding: 0;*/
    }

        #navigation-bar-list a {
            text-decoration: none;
            color: black;
        }

    #home-link {
        background-color: #107DC0;
        width: 25%;
        float: left;
    }

    #information-link {
        background-color: #FFD90F;
        width: 25%;
        float: left;
    }

    #form-link {
        background-color: #F65132;
        width: 25%;
        float: left;
    }

    #photo-link {
        background-color: #FFFF;
        float: left;
        width: 30%;
    }

    #labs-link {
        background-color: #D6E69F;
        width: 25%;
        float: left;
    }

    #webpage-title {
        font-family: Simpsons;
        color: #FFD90F;
        text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
        z-index: 1;
        top: 150px;
    }

    #landing {
        height: 600px;
        position: relative;
    }

        #landing p {
            margin-bottom: 0;
            padding: 5%;
            padding-bottom: 0;
            padding-top: 0;
            width: 100%;
            box-sizing: border-box;
            text-align: center;
            bottom: 15px;
        }

    #simpsons-landing {
        position: absolute;
        width: 35%;
        height: 20%;
        top: 20px;
        left: -25px;
        border: 0;
    }

    #simpsons {
        width: 100%;
        height: 100%;
    }
    /*hide the images*/
    #couch {
        display: none;
    }

    #donut {
        display: none;
    }

    #matt-groening {
        position: relative;
        width: 100%;
        border: 5px solid #107DC0;
        box-sizing: border-box;
    }

    #groening {
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }

    #family {
        position: relative;
        width: 100%;
        border: 5px solid #107DC0;
        box-sizing: border-box;
    }

    #information {
        position: relative;
        background-color: #107DC0;
        padding: 5px;
    }

        #information h1 {
            margin-top: 0;
            text-align: center;
            font-size: 23pt;
            padding: 5px;
            color: #FFD90F;
            margin-bottom: 0;
            top: 5px;
        }

    #show-creator {
        background-color: #D6E69F;
        padding-top: 3px;
        margin-bottom: 5px;
        margin-top: 5px;
        font-size: 15pt;
        border: 5px solid #F65132;
    }

        #show-creator h3 {
            font-size: 20pt;
            margin-bottom: 0;
            margin-top: 0;
        }

    #show-history {
        background-color: #FFD90F;
        margin-bottom: 5px;
        font-size: 15pt;
        border: 5px solid #F65132;
    }

    #history {
        font-size: 20pt;
        margin-bottom: 0;
        text-align: center;
        font-family: 'Cartoon Bold';
        margin-top: 5px
    }

    #popular {
        background-color: #FFFF;
        padding: 5px;
        margin-bottom: 5px;
        font-size: 15pt;
        margin-top: 0;
        border: 5px solid #F65132;
    }

        #popular h3 {
            font-size: 20pt;
            margin-bottom: 0;
            margin-top: 5px;
        }


    #homer-at-bat {
        position: relative;
        width: 100%;
        border: 5px solid #107DC0;
        box-sizing: border-box;
    }

    #photo-gallery {
        padding: 10px;
        text-align: center;
        background-color: #D6E69F;
        position: relative;
    }

        #photo-gallery img {
            position: relative;
            width: 100%;
            border: 15px ridge saddlebrown;
            box-sizing: border-box;
        }

        #photo-gallery p {
            position: relative;
            text-align: center;
            font-size: 20pt;
            font-family: Simpsons;
            padding: 0;
            margin: 0;
            margin-bottom: 50px;
            color: #F65132;
            text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
        }

        #photo-gallery h1 {
            font-size: 30pt;
            color: #FFFF;
            text-align: center;
        }


    #form {
        background-color: #FFD90F;
        margin: 0;
        padding: 10px;
        padding: 10px;
        position: relative;
    }

        #form h1 {
            position: relative;
            margin: 0;
            border: 0;
            top: 10px;
            color: #107DC0;
            text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
        }

        #form h3 {
            font-size: 20pt;
            font-family: Cartoon;
            font-weight: lighter;
            text-shadow: none;
            padding: 5px;
            text-align: center;
            top: 10px;
            position: relative;
        }

    span {
        font-size: 12pt;
        color: #F65132;
    }

    #form-table {
        margin: 0;
    }

    label {
        display: block;
        margin-bottom: 5px;
        padding-top: 5px;
    }

    #form p {
        font-size: 20pt;
    }

    input[type=submit] {
        bottom: 20px;
    }

    input, select, textarea {
        font-size: 12pt;
    }

    textarea {
        width: 100%;
        bottom: 20px;
    }

    input {
        font-family: Cartoon;
        margin: 5px;
        margin-bottom: 10px;
        margin-left: 0;
    }

    table td {
        display: inline-table;
        font-size: 17pt;
        font-family: Cartoon;
        margin-bottom: 10px;
        position: relative;
        top: 20px;
    }

    select[name=dog] {
        display: block;
        margin-top: 5px;
    }

    input[type=radio] {
        display: inline-block;
    }

    /*radio button text*/
    label[for=yes], label[for=no], label[for=true], label[for=false] {
        font-size: 15pt;
        display: inline-table;
    }

    caption {
        text-align: center;
        font-size: 20pt;
        margin-bottom: 5px;
        color: #107DC0;
    }

    #form h1 {
        padding: 0px;
        font-size: 25pt;
        text-align: center;
        font-family: Simpsons;
    }

    #footer {
        position: fixed;
        background-color: #FFFF;
        bottom: 0;
        font-family: Cartoon;
        z-index: 2;
        padding: 0;
        margin: 0;
        border: 0;
    }

        #footer a {
            text-decoration: none;
            color: #107DC0;
        }

        #footer p {
            padding: 0;
            margin: 0;
            border: 0;
            top: 0;
            color: #F65132;
        }
}

@media screen and (max-width: 415px) {
    #webpage-title {
        top: 30px;
        text-align: center;
    }
}

@media screen and (min-width: 425px) and (max-width: 768px) {
    #simpsons-landing {
        height: 20%;
        width: 30%;
    }
}
