*{
    margin:0;
    box-sizing:border-box;
}

/* The overall body part */
body {
    font-family: Arial, Lato, Calibri, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../img/sunset_mountain.jpg');
    background-size:cover; 
    background-position: center; 
    background-repeat: no-repeat;
    height: calc(100vh + 25vw + 65px);
    position:relative;
}



/* The header part */
header {
    background-color:rgb(12, 12, 12);
    color: white;
    padding: 10px 0;
    font-family: 'Lato';
    position: fixed;
    top:0;
    width: 100%;
    z-index: 10;
    height: 65px;
    opacity: 80%;
}

header h1{
    text-align: center;
    font-size: calc(30px);
    font: 'Lato';
}

header p{
    margin-bottom: 0.5vw;
    text-align: center;
    font-size: calc(12px);
    font: 'Lato';
}



/* Flexbox Container for nav and main */
.content-container {
    display: flex;
    flex-direction: row;
    /* min-height: calc(100vh);  */
    height:calc(100vh + 25vw + 65px);
}



/* Default nav for Laptop and Larger Screens */

nav ul{
    margin-top: 65px;
    width: calc(220px + 4vw); 
    background-color: rgb(12, 12, 12);
    height: calc(100% - 65px); 
    position: fixed;
    padding-top: calc(6vh);
    text-align: left;
    padding-left: calc(1vw);
    padding-right: calc(1vw);
    list-style: none;
    opacity: 70%;
    overflow-y:auto;
    padding-bottom: 120px;
}

#me{
    color: white;
    font-size: calc(18px + 0.2vw + 0.2vh);
    font-family: 'Lato';
    border: 3px solid white;
    padding: calc(7px + 0.2vh + 0.2vw);
    text-align: center;
}

#senior{
    color:white;
    font-size: calc(10px + 0.1vw + 0.1vh);
    font-family: 'Lato';
    margin-top: calc(0.5vh);
    text-align: center;
}

#home{
    margin-top: calc(7vh);
}


nav ul li a {
    display:block;
    color: white;
    padding: 10px 0;
    font-family:'Lato';
    text-decoration-line: none;
}

/* For 7 nav bars. */
.nav{
    font-size: calc(12px + 0.2vw + 0.2vh);
    border-bottom: 0.5px solid #2b2c34;
}

#cv{
    margin-top: calc(7vh);
    border: 0.5px solid white;
    padding: calc(0.1vh + 0.1vw);
    text-align: center;
    font-size: calc(8px + 0.2vw + 0.2vh);
}
#msg{
    margin-top: calc(0.7vh);
    border: 0.5px solid white;
    padding: calc(0.1vh + 0.1vw);
    text-align: center;
    font-size: calc(8px + 0.2vw + 0.2vh);
}


/* Main content for laptop and larger screens */
main {
    /* padding: 20px; */
    height: calc(100vh + 25vw); 
    position: relative;
    flex-grow:1;
    margin-top: 65px;
    margin-left: calc(220px + 4vw);
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:center;
    /* overflow-y: auto; */
    
}

/* large section */
.content-body {
    width: 80%; 
    max-width: 1500px; 
    height: calc(100vh + 25vw); 
    background-color: #f4f4f4;
    color: #4A4C5A;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    padding: 20px;
    text-align: center;
    margin-top: calc(22px + 1vh + 1vw);
    margin-bottom: calc(62px + 1vh + 1vw);
    opacity: 90%;

    border: 7px solid; 
    border-image: linear-gradient(
        to right, 
        #F68A7C 18%,  
        #4A4C5A 21%, 
        #4A4C5A 60%,
        #F68A7C 63%,
        #F68A7C 80%,
        #4A4C5A 83%  
    ) 1;
    border-left: none; 
    border-right: none; 
    overflow-y: auto;
}

.content-body h2{
    font-family: 'Lato';
    font-size: calc(1vh + 2.4vw);
    font-weight: 100;
    margin: 8vh 0;
}


.content-body h3{
    font-family: 'Lato';
    font-size: calc(0.8vh + 1.8vw);
    font-weight: 100;
    text-align: left;
    margin-left: calc(10px + 4vw);
    margin-right: calc(10px + 4vw);
    margin-bottom: calc(0.2vh + 0.2vw);
    border-bottom: 0.5px solid #D5D5D5;
}

.content-body h4{
    font-family: 'Lato';
    font-size: calc(0.5vh + 1.1vw);
    font-weight: 100;
    text-align: left;
    margin-left: calc(10px + 4vw);
    
}

.content-body p{
    font-family: 'Lato';
    font-size: calc(0.5vh + 1vw);
    line-height: calc(0.8vh + 1.2vw);
    text-align: left;
    margin: calc(1vh + 1vw) calc(10px + 4vw);
}



/* The footer part */
footer {
    font-family: 'Lato';
    background-color:rgb(12, 12, 12);
    color: white;
    text-align:center;
    font-size: calc(10px + 0.5vh);
    padding: 10px 0;
    position:absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    opacity: 80%;
    z-index: 10;
}

@media (max-width: 750px) {

    header {
        padding: 2px 0;
        height: 50px;
        opacity: 80%;
    }
    
    header h1{
        font-size: 26px;
    }
    
    header p{
        font-size: 10.5px;
    }


    .content-container {
        display: flex;
        flex-direction: column;
    }

    #me, #senior, #cv, #msg{
        display: none;
    }

    #home{
        margin-top: 0;
    }

    nav ul{
        display: flex;
        flex-direction: row;
        position: fixed;
        height: 30px;
        padding: 0;
        width: 100%;
        margin-top: 50px;
        z-index: 10;
        overflow: hidden;
        justify-content: center;
        align-items: center;
        opacity: 80%;
    }

    nav ul li a {
        padding: calc(1px + 0.5vw);
        text-align: center;
        font-size: 18px;
        display:flex;
        flex-direction: row;
    }

    .nav{
        font-size: calc(8px + 0.2vw + 0.2vh);
        border: none;
        text-align: center;

    }

    .narrow_nav i{
        display: none;
    }



    main {
        margin-left: 0; 
        position:relative;
        height: calc(70vh + 25vw);
    }

    .resume-body {
        height: calc(80vh + 25vw);
    }

    footer {
        font-size: calc(8px + 0.5vh);
        padding: 8px 0;
        height: 30px;
    }    
}