﻿
/* Menu button wrapper */
#navButton {
    width: 25px; /* Change this value to ajust the total width */
    height: 20px; /* Change this value to adjust the total height */
    position: relative;
    margin: 0; /*this is simply used to position the button*/
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
    z-index: 8;
    float: right;
}
/* Bars */
.bar {
    display: block;
    position: absolute;
    height: 4px; /* This is the height of each individual bar */
    width: 100%; /* This is the width of each bar, @100% it fills it's parent */
    background: black; /* Bars colors */
    border-radius: 0x; /* Changes the corner values of bars */
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}
/* positions the bars */
#navButton span:nth-child(1) {
    top: 0px;
}

#navButton span:nth-child(2) {
    top: 9px;
}

#navButton span:nth-child(3) {
    top: 18px;
}
/* Changes position of bars when clicked */
#navButton.open span:nth-child(1) {
    top: 9px;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
}

#navButton.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

#navButton.open span:nth-child(3) {
    top: 9px;
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

main {
    height: 100vh;
}

.menu {
    position: fixed;
    left: 0;
    top: 0;
    display: none;
}

.showMenu {
    display: block;
    animation: slideIn ease-in .5s;
    background-color: rgba(0,0,0,0.9);
    width: 100%;
    padding-top: 109px;
    z-index: 6;
    height: 100%;
    text-align: center;
    line-height: 40px;
}

.menu a {
    font-size: 2em;
    color: white;
    display: block;
    margin: 20px 0px 20px 0px;
    text-decoration: none;
}

    .menu a:hover {
        color: #808080;
    }

@keyframes slideIn {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

main {
    padding: 32px 64px 32px 64px;
    text-align: center;
}

.stopScroll {
    height: 100%;
    overflow-y: hidden;
}
