@import 'https://fonts.googleapis.com/css?family=Alegreya+Sans';

* {
    margin: 0;
    padding: 0;
    border: 0;
}

body {
    background-repeat: repeat;
    background-size: cover;
    background-color: #696969;
    font-family: 'Alegreya', sans-serif;
    margin: 0;
    min-width: 320px;
}

p {
    font-family: 'Alegreya Sans', sans-serif;
    color: #F5F5F5;
    font-size: 160%;
    line-height: 150%;
    padding: 3% 7%;
    text-indent: 2%;
    text-align: justify;
}


@keyframes splash {
    from {
        transform: perspective( 600px ) rotateY( 360deg );
    }
    to {
        transform: perspective( 600px ) rotateY( 0deg );
    }
}
.flip3D{
	position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -100px;
    margin-left: -100px;
	transform: perspective( 50px ) rotateY( 0deg );
    animation: splash 2s normal forwards;
}
#pic{
    max-width: 200px;
    max-height: 200px;
}

header {
    position: fixed;
    text-align: center;
    background-color: #4B0082;
    width: 100%;
    height: 70px;
    padding-bottom: 9px;
    z-index: 1000;
}

/*--- Starting Navigation ---*/
nav {
    padding: 25px 0 0 0;
    margin-left: auto;
    margin-right: auto;
    width: 750px;
}

#menu-icon {
    display: hidden;
    width: 40px;
    height: 40px;
    background: url(img/nav.png) center;
}


a:hover#menu-icon {
    border-radius: 4px 4px 0 0;
}

ul {
    list-style-type: none;
}

nav ul li {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 150%;
    display: inline-block;
    float: left
    padding: 10px;
}

nav ul li a {
    color: #F5F5F5;
    text-decoration: none;
    border: 4px solid #696969;
    background-color: #696969;
    border-radius: 20px;
    padding: 0 10px;'
}

nav ul li a:hover {
    color: #bf00ff;
    background-color: #F5F5F5;
}



.current {
    color: #000000;
}

/*--- End of Navigation ---*/



/*--- Start Footer ---*/

footer {
    position: fixed;
    height: 60px;
    bottom: 55px;
    left: 0px;
    background-color: #4B0082;
    width: 100%;
}

footer.second {
    position: fixed;
    bottom: 0px;
    max-height: 12%;
    margin: 0;
}

footer.second p {
    padding: 0.5% 0 0 0;
    text-align: center;
}

footer a {
  color: white;
}

footer a:hover {
  color: #0F0;
}
/*-----------------------------------------*/
/*--- Media queries are now starting!!!----*/
/*-----------------------------------------*/

@media screen and (max-width: 1920px){

    #first {
        position: fixed;
        height: 55px;
        bottom: 40px;
        left: 0px;
    }
    #second {
        position: fixed;
        border-top: 1px solid #4B0082;
        background-color: #4B0082;
        height: 40px;
        left: 0px;
        bottom: 0;
        margin: 0;
    }

    #second p {
        padding: 0;
        text-align: center;
    }
}

@media screen and (max-width: 1280px){


    #first {
        position: fixed;
        height: 55px;
        bottom: 40px;
        left: 0px;
    }
    #second {
        position: fixed;
        border-top: 1px solid #4B0082;
        background-color: #4B0082;
        height: 40px;
        left: 0px;
        bottom: 0;
        margin: 0;
    }

    #second p {
        text-align: center;
    }
}


@media screen and (max-width: 768px){

    footer {
        bottom: 30px;
        left: 0px;
    }

    #menu-icon {
        display: inline-block;
        margin-left: 20px;
        margin-top: -5px;
        float: left;
    }
    #pic {
        max-width: 120px;
        max-height: 120px;
    }
    nav ul, nav:active ul {
        display: none;
        z-index: 1000;
        position: absolute;
        padding: 30px;
        background: #4B0082;
        left: 20px;
        top: 60px;
        border: 1px solid #FFF;
        border-radius: 2px 0 2px 2px;
        width: 60%;
    }

    nav:hover ul {
        display: block;
    }

    nav ul li {
        font-size: 150%;
        display: inline-block;
        float: left;
        padding: 6px;
    }



    nav li {
        text-align: center;
        width: 100%;
        padding: 2px;
    }

    #first {
        position: fixed;
        height: 50px;
        bottom: 50px;
        left: 0px;
    }
    #second {
        position: fixed;
        border-top: 1px solid #4B0082;
        background-color: #4B0082;
        height: 50px;
        left: 0px;
        bottom: 0;
        margin: 0;
    }

    #second p {
        padding-top: 5px;
        text-align: center;
    }

}

@media screen and (max-width: 667px){
    header {
        position: fixed;
        height: 55px;
        padding-bottom: 5%;
        z-index: 1000;
    }
    .flip3D{
        position: absolute;
        top: 60%;
        left: 60%;
        margin-top: -100px;
        margin-left: -100px;
        transform: perspective( 50px ) rotateY( 0deg );
        animation: splash 2s normal forwards;
    }
    #pic{
        max-width: 150px;
        max-height: 150px;
    }

    #menu-icon {
        display: inline-block;
    }
    nav ul, nav:active ul {
        display: none;
        z-index: 1000;
        position: absolute;
        padding: 20px;
        background: #4B0082;
        left: 20px;
        top: 60px;
        border: 1px solid #4B0082;
        border-radius: 2px 0 2px 2px;
        width: 60%;
    }

    nav:hover ul {
        display: block;
    }

    nav ul li {
        font-size: 150%;
        display: inline-block;
        float: left;
        padding: 2px;
    }



    nav li {
        text-align: center;
        width: 100%;
        padding: 2px;
    }


    #first {
        position: fixed;
        height: 45px;
        bottom: 40px;
        left: 0px;
    }
    #second {
        position: fixed;
        border-top: 1px solid #4B0082;
        background-color: #4B0082;
        height: 40px;
        left: 0px;
        bottom: 0;
        margin: 0;
    }

    #second p {
        padding: 0;
        text-align: center;
    }



@media screen and (max-width: 320px) {
    /*---Mobile phones-------------*/

    #pic{
        max-width: 100px;
        max-height: 100px;
    }
    #menu-icon {
        display: inline-block;
    }

    nav ul, nav:active ul {
        display: none;
        z-index: 1000;
        position: absolute;
        padding: 30px;
        background: #4B0082;
        left: 20px;
        top: 60px;
        border: 1px solid #FFF;
        border-radius: 2px 0 2px 2px;
        width: 60%;
    }

    nav ul li {
        font-size: 150%;
        display: inline-block;
        float: left;
        padding: 6px;
    }

    nav li {
        text-align: center;
        width: 100%;
        padding: 2px;
    }

    nav:hover ul {
        display: block;
    }

    #first {
        position: fixed;
        height: 40px;
        bottom: 40px;
        left: 0px;
    }
    #second {
        position: fixed;
        height: 40px;
        left: 0px;
    }

    #second p {
        padding: 0;
        text-align: center;
    }
}
