@import url('https://fonts.googleapis.com/css?family=Yellowtail&display=swap');
@import url('https://fonts.googleapis.com/css?family=Teko&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

h1 {
    font-size: 400%;
    font-family: 'Yellowtail', cursive;
    text-align: center;
    font-weight: bolder;
    margin-top: 40px;
    margin-bottom: 10px;
}

a:link {
    text-decoration: none;
    /*for title*/
}

a:visited {
    color: black;
    /*for title*/
}

a:hover {
    text-decoration: underline;
    /*for title*/
}

ul,
h2 {
    font-family: 'Teko', sans-serif;
    text-align: center;
    margin-bottom: 30px;
    color: #9D9D9D;
}

img:hover {
    filter: grayscale(50%);
    transform: scale(0.9);

}

.container {
    width: 100%;
    height: 120vh;
}

img {
    /*This for some reason needs to apply for both large and small devices*/
    width: 100%;
    height: 100%;
    /* places images inside the cells*/
    object-fit: cover;
    /*fixes the stretches out problem*/
    transition: 0.5s;
}


/*////////////////////////////For Larger devices//////////////////////////////////////////*/
@media only screen and (min-width: 992px) {

    .menu-wrap {
        /*Hides Hamburger Nav Bar */
        display: none;
    }

    /*Navigation Dropdown Menu for Large Devices*/
    .menu-bar {
        text-align: center;
    }

    .menu-bar ul {
        display: inline-flex;
        /*Puts the Work, About in a straight line */
        list-style: none;
    }

    .menu-bar ul li {
        width: 100px;
        margin: 20px;
        line-height: 0px;
        /*Try font size here to make the text bigger*/
    }

    .menu-bar ul li a {
        color: #9D9D9D;
    }

    .menu-bar ul li a:hover {
        text-decoration: none;
        color: black;
    }

    .sub-menu-1 {
        display: none;
        /*hides sub menu*/
        margin-top: 3px;
        margin-left: -20px;
        /*This centers the sub menu items*/
        background-color: white;
        opacity: .7;
    }

    .menu-bar ul li:hover .sub-menu-1 {
        display: block;
        /*brings sub menu back when you hover over it*/
        position: absolute;
        /* keeps drop down from pushing the gallery down, because absolute separates the element from the rest of the other elements*/
    }

    .menu-bar ul li:hover .sub-menu-1 ul {
        display: inline;
        /* makes the sub menu items go down instead of across*/
    }

    .nav .active {
        /*to show users where they are*/
        color: black;
        text-decoration: underline;
    }

    /* Grid Setup for Images*/

    .gallery {
        display: grid;
        grid-template-columns: repeat(3, minmax(10px, 1fr));
        grid-template-rows: repeat(7, 40vw);
        grid-gap: 16px;
        padding: 10px;
    }

    .img-1 {
        grid-column: 1/3;
        grid-row: 1 / 2;
    }

    .img-2 {
        grid-column: 1/2;
        grid-row: 2/3;
    }

    .img-3 {
        grid-column: 2/4;
        grid-row: 2/3;
    }

    .img-4 {
        grid-column: 1/3;
        grid-row: 3/4;
    }

    .img-5 {
        grid-column: 3/4;
        grid-row: 3/4;
    }

    .img-6 {
        grid-column: 2/5;
        grid-row: 4/5;
    }

    .img-7 {
        grid-column: 3/4;
        grid-row: 1/2;
    }

    .img-8 {
        grid-column: 1/3;
        grid-row: 5/6;
    }


    .img-9 {
        grid-column: 3/4;
        grid-row: 5/6;
    }

    .img-10 {
        grid-column: 1/2;
        grid-row: 4/5;
    }

    .img-11 {
        grid-column: 1/4;
        grid-row: 6/8;
    }

    .footer {
        grid-column: 1/4;
        grid-row: 8/9;
        text-align: center;
    }
}


/*//////////////////////////////For Smaller Devices//////////////////////////////////////*/
@media only screen and (max-width: 992px) {

    .img {
        display: block;
        margin-left: auto;
        /*centers photo*/
        margin-right: auto;
        /*centers photo*/
        padding-bottom: 20px;
        /* creates bottom space between images */
        width: 70%
    }

    h1 {
        /*Prevents title from overlapping with hamburger*/
        font-size: 700%;
        width: 80%;
        display: block;
        /*centers title*/
        margin-left: auto;
        /*centers title*/
        margin-right: auto;
        /*centers title*/
    }

    h2 {
        font-size: 500%
    }

    .menu-bar {
        /*Hides Nav Bar for Larger Devices*/
        display: none;
    }

    .menu-wrap .menu .active {
        /*to show users where they are*/
        font-size: 150%;
        text-decoration: underline;
    }

    .footer {
        text-align: center;
    }

    /*//////Hamburger Nav Dropdown   https://www.youtube.com/watch?v=DZg6UfS5zYg////////////*/

    .menu-wrap {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .menu-wrap .toggler {
        /*toggles nav menu*/
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        cursor: pointer;
        width: 120px;
        /*determines the touch area dimensions for smartphones*/
        height: 160px;
        /*determines the touch area dimensions for smartphones*/
        opacity: 0;
    }

    .menu-wrap .hamburger {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        width: 90px;
        height: 110px;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hamburger Line */
    .menu-wrap .hamburger > div {
        position: relative;
        flex: none;
        width: 100%;
        height: 7px;
        background-color: black;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.4s ease;
        top: 10px
    }

    /* Hamburger Lines - Top & Bottom */
    .menu-wrap .hamburger > div::before,
    .menu-wrap .hamburger > div::after {
        content: '';
        position: absolute;
        z-index: 1;
        top: -11px;
        width: 100%;
        height: 8px;
        background: inherit;
    }

    /* Moves Line Down */
    .menu-wrap .hamburger > div::after {
        top: 10px;
    }

    /* Toggler Animation */
    .menu-wrap .toggler:checked + .hamburger > div {
        transform: rotate(135deg);
    }

    /* Turns Lines Into X */
    .menu-wrap .toggler:checked + .hamburger > div:before,
    .menu-wrap .toggler:checked + .hamburger > div:after {
        top: 0;
        transform: rotate(90deg);
    }

    /* Rotate On Hover When Checked */
    .menu-wrap .toggler:checked:hover + .hamburger > div {
        transform: rotate(225deg);
    }

    /* Show Menu */

    .menu-wrap .toggler:checked ~ .menu {
        visibility: visible;
    }

    .menu-wrap .toggler:checked ~ .menu > div {
        transform: scale(1);
        transition-duration: 1s;
    }

    .menu-wrap .toggler:checked ~ .menu > div > div {
        opacity: 1;
        transition: opacity 0.4s ease 0.4s;
    }

    .menu-wrap .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        visibility: hidden;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-wrap .menu > div {
        background-color: snow;
        opacity: 70%;
        border-radius: 70%;
        width: 200vw;
        height: 100vw;
        display: flex;
        flex: none;
        align-items: center;
        justify-content: center;
        transform: scale(0);
        transition: all 0.4s ease;
    }

    .menu-wrap .menu > div > div {
        text-align: center;
        max-width: 90vw;
        max-height: 100vh;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .menu-wrap .menu > div > div > ul > li {
        list-style: none;
        font-size: 1.5rem;
        padding: 1rem;
    }

    .menu-wrap .menu > div > div > ul > li > a {
        color: black;
        font-size: 300%;
        text-decoration: none;
        transition: color 0.4s ease;
    }

}
