* {
  box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f1f1f1;
    font-family: sans-serif, Arial, Helvetica, sans-serif;
}

.toggle {
    font-size: 10px;
    color: white;
    float: left;
    line-height: 45px;
    margin-left: 5%;
    cursor: pointer;
    display: none;
}

nav {
    background: none;
    height: 45px;
    width: 100%;
}

ul {
    float: left;
    margin-left: 2%;
}

.socialtop {
    float: right;
    margin-right: 2%;
}

ul li {
    margin: 0;
    padding: 0;
    position: relative;
    display: inline-block;
    font-size: 20px;
    font-weight: 500;
}

ul a {
    font-weight: 500;
    padding: 25px;
    line-height: 45px;
    color: black;
    font-size: 20px;
    text-transform: none;
    text-decoration: none;
}

ul li:first-child {
    background: #b3d9ff;
}

ul li:hover {
    background: #1a8cff;
    color: #fff;
}

ul li a:hover {
    color: #fff;
}

.top-social a {
    padding: 30px;
    color: black;
    font-size: 16px;
    font-weight: 500;
}

.top-social {
    padding: 14px 0px;
}

.top-social a:hover {
    color: #1a8cff;
}

main {
    font-size: 16px;
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

@media screen and (max-width: 1052px) {
    .toggle {
        display: block;
    }

    ul {
        z-index: -1;
        margin-top: -15px;
        position: fixed;
        top: -400px;
        right: 0;
        left: 0;
        width: 200px;
        background: #222222;
        display: inline-block;
        transition: top .4s;
        margin-left: 0;
    }

    ul.show {
        top: 60px;
    }

    ul li {
        top: 0;
        width: 100%;
        float: left;
        text-align: center;
    }
}

@media screen and (max-width:500px) {
    ul {
        width: 100%;
    }

}

/* Smaller screens */
@media screen and (max-width: 500px) {
    nav ul {
        width: 100%;
    }

    .top-social a {
        padding: 8px;
    }

    main {
        padding: 20px;
    }
}

