/* Mobile First Approach */
/* Base Styles (mobile) */
html,
body {
    overflow-x: hidden;
    /* overflow-y: hidden; Prevents scrolling */
    margin: 0;
    /* this made the header fill the entire width of the viewport(screen), this fixed my problem! */
    padding: 0;
    /* height: 100%; */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 20px;
    width: 100%;
}

.mainwrapper {
    display: flex;
    flex-direction: column;
    min-height: 90vh;
    align-items: center;
}

#logo {
    text-align: left;
    float: left;
    font-size: 20px;
}

#img_logo {
    height: 35px;
    width: 35px;
}

#myLinks {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    z-index: 1;
    color: darkorange;
    background-color: black;
    opacity: .8;
    width: 25%;
    padding: 20px;
    gap: 30px;
    font-size: 20px;
    padding-right: 20px;
}

#myLinks a {
    text-decoration: none;
    color: white;
}

.navbar {
    width: 100%;
    margin: 0;
    background-color: #3b3b3b;

}

.navbar-toggler {
    border-color: transparent;
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-size: 1.2rem;
    padding: 10px;
}

a {
    text-decoration: none;
    color: white;
}

#myLinks :hover {
    background-color: darkorange;
    color: black;
    padding: 15px;
    width: 100%;
    text-align: center;
    font-weight: bold;
}

h1,
#divhomep {
    margin: 0 auto;
    text-align: center;
}

#homepic {
    max-width: 150px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    margin: 0 auto;
    margin-top: 15px;
    margin-bottom: -40px;
}

#divhomep {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    margin-top: 50px;
}

.homepageh1,
.homepageh4,
#homeheaderp {
    font-family: 'Open Sans', Helvetica, sans-serif;
    text-align: center;
}

.homepageh1 {
    text-align: center;
    font-size: 35px;
    width: 100%;
    font-weight: bold;
    line-height: 45px;
}

.homepageh4 {
    text-align: center;
    font-size: 25px;
    margin: 0 auto;
}

#homeheaderp {
    font-family: 'Montserrat';
    padding: 15px;
    margin-bottom: 80px;
}


/* About page */
#container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 100%;
    text-align: center;
    margin-top: 5%;
    margin-bottom: 15%;
    padding: 15px;
}

#divimg {
    /* padding: 10px;
    text-align: center; */
    /* max-width: 100%; */
    /* height: auto;
    margin: 0 auto; */
}

#aboutimg {
    max-width: 60%;
    height: auto;
    text-align: center;
    padding: 10px;
    margin-top: 25px;
    margin-bottom: 25px;
}

#aboutdivh2p {
    margin-top: 30px;
    padding: 10px;
    max-width: 90%;
    margin: 0 auto;
    font-family: 'Open Sans';
    text-align: left;
}

#aboutmeh2 {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-bottom: -10px;
}

#aboutp {
    display: flex;
    flex-direction: column;
    /* this worked! */
    margin: 1% 5px 10px 5px;
    padding: 20px;
    font-size: 17px;
    line-height: 27px;
    font-family: 'Montserrat';
}

/* Projects Page */
#projectss {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 5em;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 60px;
}

#projecth1 {
    margin: 0 auto;
    padding: 10px;
    text-align: center;
    margin-left: 11em;
    font-family: 'Open Sans';

}

.projhr {
    margin-top: -1em;
    margin-bottom: 5px;
}

.flip-box {
    background: transparent;
    width: 300px;
    height: 200px;
    perspective: 1000px;
}

.flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 2.0s;
    transform-style: preserve-3d;
}

/*do horizontal flip when you mouse over the container */
.flip-box:hover .flip-box-inner {
    transform: rotateY(180deg);
}

/*position the front and back side */
.flip-box-front,
.flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/*Style the front side */
.flip-box-front {
    background-color: black;
    color: white;
    text-align: center;
}

/*how to center anything vertically and horizontally */
.flip-box-front h2 {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

/*Style the back side */
.flip-box-back {
    background-color: lightgray;
    color: black;
    transform: rotateY(180deg)
}

h2 {
    margin-top: -8px;
    font-family: 'Open Sans';
}

.projul {
    /*width: 13em;*/
    max-width: 100%;
    text-align: center;
    margin-left: 12px;
    margin-top: 20px;

}

.aprojects {
    color: black;
    font-weight: bold;
    text-align: left;
    line-height: 35px;
}

.projectlistitem {
    font-family: 'Montserrat';
    text-align: center;
}

/* Contact Page */
#contactmee {
    text-align: left;
    max-width: 100%;
    margin: 0 auto;
    height: auto;
    padding: 20px;
    margin-top: 30px;
}

#email {
    color: black;
    text-decoration: underline;
    font-family: 'Montserrat';
}

span {
    line-height: 29px;
    font-size: 19px;
}

#contactp {
    font-family: 'Montserrat';
}

#contactheader {
    font-family: 'Open Sans';
}

/* Resume Page */
#resume-container {
    text-align: left;
    max-width: 100%;
    color: black;
    padding-left: 25px;
    margin: 0 auto;
    height: auto;
    margin-top: 53px;
}

#resumelink {
    color: black;
    font-size: 20px;
    font-weight: bold;
}

.projectlistitem {
    list-style-type: none;
    text-decoration: none;
    text-align: left;
    margin-left: -10%;
}

#resumeh2 {
    font-family: 'Open Sans';
    text-align: left;
}

.resumep {
    font-family: 'Montserrat';
    text-align: left;
}

.footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: white;
    width: 100%;
    margin: 0 auto;
    bottom: 0;
    left: 0;
    padding: 12px;
    position: fixed;
    border: none;
    outline: none;
}

.footer .container-fluid {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 75%;
}

.footer p {
    margin: 0;
}

.icons {
    display: flex;
    gap: 25px;
    font-weight: bolder;
    font-size: 25px;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/* Tablet Portrait 600-768 */
@media (min-width: 600px) {
    #main {
        display: flex;
        flex-direction: column;
        /* Position image and text side by side */
        justify-content: space-between;
        text-align: center;
    }

    #homepic {
        max-width: 190px;
        margin-top: 10px;
        margin: 0 auto;
        text-align: center;
        align-items: center;
    }

    .homepageh1 {
        font-size: 40px;
        max-width: 120%;
        margin-right: -5%;
    }

    .homepageh4 {
        font-size: 28px;
        margin-right: -5%;
    }

    #divhomep {
        margin-top: 5%;
    }

    #aboutimg {
        max-width: 55%;
        height: auto;
        text-align: center;
        padding: 10px;
        margin-top: 25px;
        margin-bottom: 25px;
    }

    #aboutdivh2p {
        margin-top: 30px;
        padding: 10px;
        max-width: 75%;
        margin: 0 auto;
        font-family: 'Open Sans';
    }
    
    .projul {
        padding: 10px;
        margin: 0 auto;
        margin-top: 20px;
        line-height: 25px;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Tablet Landscape / Small Desktops 768 - 992px */
@media (min-width: 768px)
{
    #main {
        display: flex;
        align-items: center;
        justify-content: center;
        /*flex-direction: row;*/
        flex-wrap: wrap;
        gap: 150px;
        max-width: 1100px;
        margin: 0 auto;
        padding: 48px 24px;
    }
    
    /* Fallback */
    @supports not (gap: 1rem) {
        #main { margin: -20px; }
        #main { margin: 20px; }
    }
    
    /* Photo block */
    #homepic {
        width: 300px;
        height: 200px;
        border-radius: 50%;
        overflow: hidden;
        /* flex: 0 0 auto; Don't let it stretch */
        margin: 0 auto;
    }
    
    #homepic img {
        width: 75px;
        height: 75%;
        object-fit: cover;
        display: block;
        margin: 0 auto;
    }
    
    @supports not (object-fit: cover) {
        #homepic img{ width: auto; height:100%; }
    }
    
    #divhomep {
        max-width: 600px;
        flex: 1 1 400px;
        text-align: left;
    }
    
 
    .homepageh1 {
        font-size: 50px;
    }

    .homepageh4 {
        font-size: 30px;
    }



    /* About page */
    /* Contains image and text */
    #container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }
    #aboutimg {
        max-width: 50%;
        margin: 0;
    }
    
    #aboutimg img {
        width: 50%;
        display: block;    
    }
    
    #aboutdivh2p {
        text-align: right;
        padding: 0;
        max-width: 55%;
        margin: 0;
        font-family: 'Open Sans';
    }
    
    /* Projects Page */
    #projectss {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      margin: -12px;
      max-width: 90%;
      margin: 0 auto; 
    }
    
    #projectss > * {
        margin: 12px;
    }
    
    /*Upgrade to Grid if supported */
    @supports (display: grid) {
      #projectss {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        justify-items: center;
      }
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Large Desktop 1200px ++ */
@media (min-width: 1200px) {
    #main {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 150px;
        max-width: 1100px;
        margin: 0 auto;
        padding: 48px 24px;
    }
    
    /* Fallback */
    @supports not (gap: 1rem) {
        #main { margin: -20px; }
        #main { margin: 20px; }
    }
    
    /* Photo block */
    #homepic {
        width: 60%;
        height: 40%;
        border-radius: 65%;
        overflow: hidden;
        flex: 0 0 auto; /* Don't let it stretch */
        /*margin: 0 auto;*/
        margin-top: -5%;
    }
    
    #homepic img {
        object-fit: cover;
        display: block;
        /*margin: 0 auto;*/
    }
    
    @supports not (object-fit: cover) {
        #homepic img{ width: auto; height:100%; }
    }
    
    #divhomep {
        max-width: 600px;
        flex: 1 1 400px;
        text-align: left;
    }

    .homepageh1 {
        font-size: 60px;
        max-width: 100%;
        line-height: 65px;
    }

    .homepageh4 {
        font-size: 35px;
        max-width: 100%;
    }

    /* About page */
    
     /* Contains image and text */
    #container {
        display: flex;
        text-align: center;
        flex-direction: row;
        justify-content: left;
        align-items: center;
        margin: 0 auto;
        gap: 17px;
        
    }
    #aboutimg {
        max-width: 100%;
        margin-left: -22%;
    }
    
    #aboutimg img {
        width: 100%;
        height: auto;
        display: block;    
    }
    
    #aboutdivh2p {
        text-align: left;
        padding: 0;
        max-width: 55%;
        margin: 0;
        font-family: 'Open Sans';
        margin-left: -15%;
    }
    
    
    /* Projects Page */
    #projectss {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      margin: -12px;
      max-width: 90%;
      margin: 0 auto;
    }
    
    #projectss > * {
        margin: 12px;
    }
    
    /* Upgrade to Grid if supported */
    @supports (display: grid) {
      #projectss {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        justify-items: center;
      }
    }
    
    .projul {
        padding: 10px;
        margin: 0 auto;
        margin-top: 15px;
        margin-left: 35px;
    }
    
    .aprojects {
        color: black;
        font-weight: bold;
        text-align: left;
        line-height: 35px;
    }
    
    /* Contact Page */
    #contactmee {
        text-align: left;
        max-width: 100%;
        margin: 0 auto;
        height: auto;
        padding: 20px;
        margin-top: 12%;
    }
    
    /* Resume Page */
    #resume-container {
        text-align: left;
        max-width: 100%;
        color: black;
        padding: 15px;
        top: 30%;
        left: 5%;
    }

    .footer .container-fluid {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50%;

    }

    .footer p {
        margin: 0 30px;
    }

    .icons {
        display: flex;
        gap: 15px;
        font-weight: bold;
        font-size: 25px;
    }


    /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
    /* Adjust footer and navbar padding if needed */
    .navbar,
    .footer {
        padding: 20px 40px;
    }
}










