/* 1.Basic /////////////////////////////////////////////////////////*/
html{
    background-color: beige;
    font-family: 'Fauna One' 'Times New Roman', Times, serif;
    margin: 0px;
    margin-left: 5%;
    padding: 0;
}

/* 2.Position /////////////////////////////////////////////////////*/
body{
    margin: 0;
}
header{
    margin: 0;
}
.side{
    display:flex;
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
    background-color: white;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    width: 4%;
}
.side div{
    transform: rotate(90deg);   
    margin: 30px 0;
    padding-right: 5px;
    padding-left: 5px;
}
footer{
        position: absolute;
        bottom: 0px;
        width: 94%;
        display:flex;
        flex-direction: column;
        align-items: center;
}
.network{
    display: inline-flex;
}
.network img{
    height: 30px;
    padding: 5px;
    align-items: center;
}
.ft{
    display: inline-flex;
    flex-wrap: wrap;
}
#c{
    padding-left: 3px;

}
#l{
    padding-left: 20px;
}
.ft img{
    height: 50px;
}
.BackG{
    width: 500px;
    height: 500px;
    background-color: #8d4343;
    border-radius: 5px;
    box-shadow: 1px 1px 3px gray;
    position: absolute;
    right: 10%;
    top: 20%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.BackG img{
    height: 30px;
    position: absolute;
    right: 10px;
    bottom: 10px;
}
.title{
    padding-left: 150px;
    margin-top: 200px;
}

/* 3. Style ///////////////////////////////////////////////////////*/
a{
    text-decoration: none;
    color: black;
}
.re{
    font-size: 10px;
    text-align: center;
}
.title{
    padding-left: 150px;
    margin-top: 200px;
}
h1{
    font-family:'Cinzel Decorative', cursive;
    font-size: 5em;
}
h2{
    font-family:'Fauna One', serif;
    margin-left: 5px;
}
.side{
    box-shadow: 1px 1px 3px rgba(128, 128, 128, 0.589);
    font-family:'League Gothic', sans-serif ;
    font-size: 1.3em;
}
.side div{
    cursor: pointer;
    box-sizing: border-box;
}
.side div:hover{
    border-bottom: 2px black solid;
}
footer{
    font-family:'Fauna One', serif;
}
.ft{
    font-family: 'Cinzel', serif;;
}

/* 4.Challenge///////////////////////////////////////////////////*/
.menu{
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon{
    cursor: pointer;
    width: 100px;
    height: auto;
}
.lineOne,
.lineTwo,
.lineThree{
    margin: 20px 0px;
    background-color: white;
    height:10px;
    width: 100%;
    border-radius: 3px;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.322);
    z-index: 30;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}
.change .lineOne{
    animation-name: aniOne;
}
.change .lineTwo{
    animation-name: aniTwo;
}
.change .lineThree{
    animation-name: aniThree;
}
.back .lineOne{
    animation-name: aniOneR;
}
.back .lineTwo{
    animation-name: aniTwoR;
}
.back .lineThree{
    animation-name: aniThreeR;
}

@keyframes aniOne{
    0% {transform: translate(0,0) rotate(0deg);}
    50%{transform: translate(0,30px) rotate(0deg);}
    100%{transform: translate(0,30px) rotate(45deg);}
}
@keyframes aniTwo{
    0% {opacity: 1;}
    50%{opacity: 0;}
    100%{opacity: 0;}
}
@keyframes aniThree{
    0% {transform: translate(0,0) rotate(0deg);}
    50%{transform: translate(0,-30px) rotate(0deg);}
    100%{transform: translate(0,-30px) rotate(-45deg);}
}
@keyframes aniOneR{
    0% {transform: translate(0,30px) rotate(45deg);}
    50%{transform: translate(0,30px) rotate(0deg);}
    100%{transform: translate(0,0px)rotate(0deg);}
}
@keyframes aniTwoR{
    0% {opacity: 0;}
    50%{opacity: 0;}
    100%{opacity: 1;}
}
@keyframes aniThreeR{
    0% {transform: translate(0,-30px) rotate(-45deg);}
    50%{transform: translate(0,-30px) rotate(0deg);}
    100%{transform: translate(0,0px)rotate(0deg);}
}
/* 5. Responsive ///////////////////////////////////////////////*/
@media only screen and (max-width: 1500px){
    .BackG{
        width: 30vw;
        height: 30vw;
        position: absolute;    
        top:20%;
        right:10%
    }
    h1{
        font-size: 5vw;
    }
    h2{
        font-size: 2vw;
    }
    .title{
            padding-left: 100px;
            margin-top: 190px;
    }
    .BackG img{
        height:2vw;
    }
   
}


@media only screen and (max-width: 788px){
    body{
        display: flex;
        align-items: center;
        justify-items: center;
        flex-direction: column;
    }
    .side{
        width: 30px;
    }
    .BackG{
        width: 350px;
        height: 350px;
        position: relative;    
        margin: auto;
        top:0;
        right:0;
        }
    .title{
        padding-left:0;
        margin-top: 0;
        text-align: center;
    }
    h1{
        font-size: 2em;
    }
    footer{
        margin-top: 50px;
        position: static;
    }
    .BackG img{
        height: 20px;
        position: absolute;

    }
}
@media only screen and (max-width: 512px){
    .BackG{
        width: 200px;
        height: 200px;
        } 
    h2{
        font-size: 0.75em;
    }
}
@media only screen and (max-height: 700px){
    .title{
        margin-top: 5vh;
    }
    footer{
        margin-top: 150px;
        position: static;
    }
}