@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    background-color: purple;
    color: lightgrey;
    font-family:  'Lato', Verdana, sans-serif;
    line-height: 1.6em;
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
    color: lightgrey;
}

h1,
h2{
    line-height: 1.2;
    margin: 10px 0;
}

p{
    margin: 10px 0;
}

img{
    width: 100%;
}

.navbar{
    background-color: black;
    height: 70px;
}

.navbar ul{
    display: flex;
}

.navbar a{
    padding: 10px;
    margin: 0 5px
}

.navbar a:hover{
    border-bottom: 2px lightgrey solid;
}

.navbar .flex{
    justify-content: space-between;
}

.container{
    max-width: 1100px;
    margin: 0 auto;
    overflow: auto;
    padding: 0 40px;
}

/*Profile Flex*/
.profile-header{
    flex-direction: column;
}

.profile ul{
    display: flex;
    justify-content: space-around;
    width: 75%;
    padding-bottom: 5px;
}

.profile li{
    padding: 0 10px 10px 10px;
    margin: 0 5px;
    flex-basis: 200px;
    flex-grow: 1;
    text-align: center;
}

.flex{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.profile-name{
    display: flex;
    justify-content: center;
}

.profile-info{
    display: flex;
    flex-direction: row;
    background-color: rgb(78, 0, 78);
    justify-content: center;
}

.profile-item{
    /*background:rgb(155, 0, 72);*/
    background:purple;
    margin: 10px;
    flex-grow: 1;
}

.profile-img{
    min-width: 30%;
} 

.profile-text{
    border: 6px black solid;
    padding: 20px;
}

/*Categories page*/
.cat-group{
    margin-top: 30px;
    padding-bottom: 30px;
    border-bottom: 2px grey solid;
    max-width: 50%;
}

/*Tablets and under*/
@media(max-width: 768px){
    .profile-info{
        flex-direction: column;
        background-color: purple;
    }
    .profile-img{
        order: 1;
        max-width: 50%;
    }
    .profile-text{
        order: 2;
    }
    .profile ul{
    display: flex;
    justify-content: space-between;
    width: 100%;
    }

    .profile li{
    padding: 0 10px 10px 10px;
    margin: 0;
    flex-basis: 200px;
    flex-grow: 1;
    text-align: center;
    text-wrap: nowrap;
    }

}

/*Mobile*/
@media(max-width: 500px){
    .navbar{
        height: 120px;
    }

    .navbar .flex{
        flex-direction: column;
    }

    .navbar ul{
        padding: 10px;
        margin-bottom: 20px;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .profile-img{
        max-width: 80%;
    }

    .profile li:nth-of-type(1){
        padding-left: 0;
    }
    .profile li:nth-of-type(3){
        padding-right: 0;
    }

    .container{
        padding: 0 20px;
    }
}