*{
    box-sizing: border-box;
}

body{
    margin: 0;
    font-family: sans-serif;
    background-image: linear-gradient(260deg, #2376ae 0%, #c16ecf 100%);
}

a{
    color: white;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 20px 5px;
    width: 100%;
    text-align: center;
    font-weight: 100;
    letter-spacing: 2px;
}

a:hover{
    background: rgba(0, 0, 0, 0.3);
}

.wrapper{
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px;
}

.flex-nav ul{
    border: 1px solid black;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.flex-nav li{
    flex: 3;
}

.flex-nav .social{
    flex: 1;
}

img{
    width: 100%;
}
 
section, footer{
    color: white;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    margin: 20px 0px;
    text-align: center;
    font-weight: 100;
}

.toggleNav {
    display: none;
}

.flex-nav ul.open{
    display: flex;
}

@media all and (max-width:1000px){
    .flex-nav ul{
        flex-wrap: wrap;
    }

    .flex-nav li{
        flex: 1 1 50%;
    }

    .flex-nav .social{
        flex: 1 1 25%;
    }
}

@media all and (max-width:750px){
    .signup form{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        height: 100px; 
    }
}

@media all and (max-width:500px){

    .wrapper{
        display: flex;
        flex-direction: column;
    }

    .wrapper > *{
        order: 999;
    }

    .flex-nav{
        order: 1;
    }

    .top{
        order: 2;
    }

    .content{
        order: 3;
    }

    .signup{
        order: 4;
    }

    .toggleNav{
        display: block;
    }
    
    .flex-nav ul{
        display: none;
    }
}

