*{
    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;
    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 */
.resume-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;
}

.profile-container{
    display: flex;
    flex-direction: row;
    max-width: 100%;
}


.img-container {
    display: inline-block; 
    padding: 1px; 
    border: 3px solid #F68A7C;
    margin: calc(1vh + 2vw) 0;
    margin-left: calc(1.2vh + 1vw);
    margin-right: calc(1.1vh + 1vw);
    border-radius: 50%;
    width: 25%; 
    height: fit-content; 
    max-width: 320px; 
}


/* Style for responsive image */
.responsive-img {
    width: 100%; 
    height: auto; 
    max-width: 100%; 
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Home page intro words next to the profile */
.intro-words{
    display:block;
    margin: calc(1vh + 2.6vw) 0;
    margin-right:calc(1.5vh + 1.5vw);
    margin-left: calc(1.3vh + 1.3vw);
    text-align: left;
}

.intro-words h2{
    font-family: 'Lato';
    font-size: calc(1vh + 2.4vw);
    margin-top: 1vw;
    font-weight: 100;
    border-bottom:1px solid #F68A7C;
    margin-bottom: calc(0.5vh + 0.5vw);
    
}

.intro-words p{
    font-family: 'Lato';
    font-size: calc(0.5vh + 1vw);
}

#title {
    margin-bottom: calc(0.5vh + 0.5vw);
}


/* Profile section with little intro */

.intro{
    font-family: 'Lato';
    text-align: left;
}

/* The combinations of bulletpoint and qs, as */
.bulletpoints{
    display: flex;
    flex-direction: row;
}

/* All 4 bulletpoints */
.bullet{
    width: 5%; 
    height: 5%; 
    margin-left: calc(7vw);
    padding-top: calc(2vh);
}

/* The combination of questions and answers */
.qs-as{
    margin-left: calc(4vw);
    display: inline-block;
    border-bottom: 0.5px solid #D5D5D5;
    width: 65%;
}

/* Questions */
.qs{
    font-weight:600;
    margin-top: calc(2vh);
    font-size: calc(0.5vh + 1vw);
}

/* Answers */
.as{
    font-weight: 100;
    margin-right:calc(4.5vw);
    font-size: calc(0.5vh + 0.8vw);
    line-height: calc(0.8vh + 1.2vw);
}



/* 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;
}



/* Responsive Sidebar for Mobile and Tablet (max-width: 750px) */


@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;
        height:calc(100vh + 25vw + 50px);
    }

    #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;

    }

    .content-container i{
        display: none;
    }



    main {
        margin-left: 0; 
        position:relative;
    }

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

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