.flenter{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.col{
    flex-direction: column;
}

.p-1 li{
    padding: .5rem;
}

.text-center{
    text-align: center;
}

.justify-around{
    justify-content: space-around;
}

.justify-between{
    justify-content: space-between;
}

body {
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #333;
    color: lightgrey;
}

header {
    background-color: black;
    color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
}



footer{
    background-color: black;
    color: white;
    height: 3rem;
    margin-top: 3rem;
    align-items: center;
    padding: 1rem;
}

#nav {
    overflow: hidden;
    /* background-color: #333; */
}

section {
    max-width: 1200px;
    margin: 20px auto;
}

#nav ul {
    /* min-height: 28px; */
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    align-items: center;
    padding: 8px;
}



#nav li {
    display: inline-block;
    margin-right: 20px;
}


#nav a {
    text-decoration: none;
    font-size: 12pt;
    color: white;
    position: relative;
    z-index: 1;
}

#nav a:hover {
    color: red;
    text-decoration: underline;
}


a{
    color: red;
    text-decoration: none;
}

a:hover{
    color: white;
    text-decoration: underline;
}

#bio{
    /* border: 1px solid #ccc; */
    padding: 10px;
    margin-bottom: 20px;
    background-image: linear-gradient(black, #333);
    color: white;
}
.project, .job, .education {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
    background-color: black;
    color: white;
    transition: all .2s;
}

.project{
    box-shadow: 10px 10px 10px black;
    cursor: pointer;
}

.project:hover{
    border: 1px solid rgba(255, 0, 0, 0.466);
    transform: scale(1.02);
}

#bio{
    text-align: center;
    width: 100%;
}

.ita{
    color: lightgrey;
    font-style: italic;
}


/* Cursor shadow */

.cursor-shadow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: white;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    clip-path: circle(50% at 50% 50%);
}
/* FLIPPER */

.flip-container {
    perspective: 3500px;
    /* position: relative; */
    width: 100%;
    height: 300px;
}

.flipper {
    transform-style: preserve-3d;
    transition: transform 0.6s;
    transform-origin: center bottom;
}

.flipped .flipper {
    transform: rotateX(180deg);
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.back {
    transform: rotateX(180deg);
}

.back img{
    height: 14rem;
    max-width: 405px;
}

/* Mobile Devices (up to 767px) */
@media screen and (max-width: 767px) {
    body{
        overflow-x: hidden;
    }
    #nav, #nav *{
        overflow: hidden;
    }
    header{
        margin: auto;
        width: 100%;
    }
    .flip-container{
        overflow-y: scroll;
        overflow-x:hidden;
        margin-bottom: 3rem;
    }
    img{
        margin-top: 1rem;
    }
}

/* Tablets (768px to 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    section{
        max-width:95%;
    }
}

/* Small Desktops and Laptops (992px to 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    section{
        max-width:95%;
    }
}