*{
    margin: 0;
    padding: 0;   
}
body{
    background-image: url("Pictures/background.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
body::before{
    content: '';
    background: rgba(0,0,0,.7);
    position: absolute;
    top: 0;
    left: 0;
    width:100%;
    height:100%;
    z-index: -1;
    position: fixed;
}
header{
    position:relative;
    display: flex;
    flex-flow: column;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 80vh;
    background-image: url("Pictures/mp.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: white;
}
.name{
    margin-top: 0px;
    margin-left: -27%;
}
.description{
    margin-top: -300px;
    margin-left: 20%;
}
.name h1{
    font-family: 'Lobster';
    font-size: 55px;
    color: white;
    background: rgba(44, 130, 201, 0.5);
}
.description h2{
    font-family: 'Verdanna';
    font-size: 55px;
    color: white;
    background: rgba(2, 156, 86, 0.5);
}
.profilepic{
    margin-top: -120px;
}
.profilepic img{
    margin-top: -120px;
    width: 250px;
    border-radius: 50%;
    border: 3px solid white;
}
.container{
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5%;
    background-color: white;
    z-index: 1000;
    font-size: 23px;
    font-family: 'cabin';
    padding: 1.5em;
    border: 2px solid #888;
    border-radius: 1em;
}
.container .html{
    font-weight: bold;
    color: #ff4500;
    text-align: center;
}
.container .css{
    font-weight: bold;
    color: #1212ec;
    text-align: center;
}
.container .js{
    font-weight: bold;
    color: #ffc400fa;
    text-align: center;
}
.container .python{
    font-weight: bold;
    color: #0000ff;
    text-align: center;
}
.container .ps{
    font-weight: bold;
    color: #000058;
    text-align: center;
}

.timeline{
    /* text-align: center; - depends if the content is to be centered */
    margin: 5em auto;
    max-width: 34.15em;
    color: #fff;
}
.timeline h1{
    margin: 0.3em;
    font-size: 3em;
   
}

.timeline h2{
    margin-bottom: 0.5em;
    font-family: 'Lobster';
}
.checkpoint{
    max-width:34 em;
    padding-top: 2em;
    padding-bottom: 2em;
    position: relative;
}
.checkpoint div{
    border: 2px solid #888;
    border-radius: 1em;
    padding: 1.5em;
}
.checkpoint p{
    line-height: 27px;
    color: #ccc;
    font-family: 'cabin';
}
.checkpoint:nth-child(odd){
    border-left: 3px solid #888;
    padding-left: 3em;
    transform: translateX(17em);
}
.checkpoint:nth-child(even){
    border-right:3px solid #888;
    padding-right: 3em;
    transform: translateX(-17em);
}
.checkpoint:nth-child(odd)::before, .checkpoint:nth-child(even)::before{
    content:'';
    background: #888;
    width: 3em;
    height: 3px;
    position: absolute;
    top:50%;
    transform: translateY(-50%);
}
.checkpoint:nth-child(odd)::before{
    left:0;
}
.checkpoint:nth-child(even)::before{
    right:0;
}
.checkpoint:nth-child(odd) div::before, .checkpoint:nth-child(even) div::before{
    content:'';
    background: #fff;
    box-shadow: 0 0 0.5em #0d71fc;
    width: 0.8em;
    height: 0.8em;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
}
.checkpoint:nth-child(odd) div::before{
    left: -0.5em;
}
.checkpoint:nth-child(even) div::before{
    right: -0.5em;
}

.navBar{
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5%;
    margin-bottom: 5%;
    background-color: white;
    z-index: 1000;
    font-size: 23px;
    font-family: 'cabin';
    text-align: center;
    padding: 0;
    border: 2px solid #888;
    border-radius: 1em;
    overflow: hidden;
    bottom: 0;
}

.navBar li{
    display: block;
    display: inline-block;
    color: red;
    text-align: center;
    text-decoration: none;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}
.navBar li a{
    font-size: 24px;
    color: black;
    display: block;
    text-decoration: none;
}
.navBar li a img{
    width: 30px;
    background-color: white;
    display: flex;
    margin-top: 5px;
    margin-right: auto;
    margin-left: auto;
    border-radius: 5px;
    padding: 1px;
}
.navBar li a:hover{
    background: navy;
    color: white; 
    border-radius: 10px;
    padding: 5px;
    margin-top: -10px;
    margin-bottom: -10px;
    margin-right: -5px;
    margin-left: -5px;
}

@media screen and (orientation: landscape) and (max-height: 947px){
    .name{
        position: absolute;
        margin-top: -50vh;
        margin-left: -60vh;
    }
    .description{
        position: absolute;
        margin-top: -25vh;
        margin-left: 45vh;
    }
    .profilepic{
        position: absolute;
        margin-top: 45vh;
    }
}

@media screen and (orientation: landscape) and (max-height: 650px){
    header{
        height: 90vh;
    }
    .name{
        position: absolute;
        margin-top: -50vh;
        margin-left: -50vh;
    }
    .description{
        position: absolute;
        margin-top: -25vh;
        margin-left: 35vh;
    }
    .profilepic{
        position: absolute;
        margin-top: 60vh;
    }
}

@media screen and (orientation: landscape) and (max-height: 538px){
    header{
        height: 100vh;
    }
    .name{
        position: absolute;
        margin-top: -70vh;
        margin-left: -50vh;
    }
    .description{
        position: absolute;
        margin-top: -35vh;
        margin-left: 35vh;
    }
    .profilepic{
        position: absolute;
        margin-top: 70vh;
    }
}

@media screen and (orientation: landscape) and (max-height: 460px){
    header{
        height: 100vh;
    }
    .name{
        position: absolute;
        margin-top: -70vh;
        margin-left: 0;
    }
    .description{
       display: none;
    }
    .profilepic{
        position: absolute;
        margin-top: 50vh;
    }
}
@media screen and (orientation: landscape) and (max-height: 370px){
    header{
        height: 100vh;
    }
    .name{
        display: none;
    }
    .description{
       display: none;
    }
    .profilepic{
        position: absolute;
        margin-top: 43vh;
    }
}

@media screen and (max-width: 1150px){
    header{
        height: 70vh;
    }
    .name{
        margin-top: 5%;
        margin-left: auto;
        margin-right: auto;
    }
    .description{
        margin-top: -20%;
        margin-left: auto;
        margin-right: auto;
    }
    .profilepic{
        margin-top: 0%;
    }
    .timeline{
        width: 80vw;
    }
    .timeline .checkpoint{
        width: 100%;
        transform: none;
        padding-left:0;
        padding-right: 0;
        border: none;
    }
    .timeline .checkpoint::before{
        width: 3px;
        height: 4em;
        top: -2em;
        left: 50%;
        transform: translateX(-50%);
    }
    .timeline .checkpoint div::before{
        top: -0.5em;
        left: 50%;
        transform: translateX(-50%);
    }
}
@media screen and (max-width: 540px){
    .name{
        margin-top: 5%;
        margin-left: auto;
        margin-right: auto;
    }
    .description{
        display: none;
    }
    .profilepic{
        margin-top: 10%;
    }
}
@media screen and (max-width: 430px){
    body{
        /* background-image: url("PhoneBackground.png"); */
        background-size: 100% 50%;
        background-repeat: repeat;
    }
    header{
        background-image: url("Pictures/phoneMP.png");
        height: 100vh;
    }
    .name{
        margin-top: -105%;
        margin-left: auto;
        margin-right: auto;
    }
    .description{
        display: none;
    }
    .profilepic{
        margin-top: -190%;
    }
    .profilepic img{
        border-radius: 50%;
        border: 3px solid white;
    }
    .container{
        width: 70%;
        margin-left: auto;
        margin-right: auto;
        margin-top: -90%;
        background-color: white;
        z-index: 1000;
        font-size: 20px;
        font-family: 'cabin';
        padding: 1.5em;
        border: 2px solid #888;
        border-radius: 1em;
    }
    .navBar{
        margin-top: -10%;
        margin-bottom: 10%;
        display: grid;
    }
}
@media screen and (max-width: 375px){
    header{
        background-image: url("Pictures/phoneMP.png");
        height: 120vh;
    }
    .name{
        margin-top: -100%;
    }
    .name h1{
        font-family: 'Lobster';
        font-size: 45px;
    }
    .profilepic{
        margin-top: -170%;
    }
}
@media screen and (max-width: 360px){
    .name{
        margin-top: -130%;
    }
    .profilepic{
        margin-top: -220%;
    }
}
@media screen and (orientation: portrait) and (max-width: 344px){
    .name{
        margin-top: -140%;
    }
    .name h1{
        font-family: 'Lobster';
        font-size: 45px;
    }
    .profilepic{
        margin-top: -260%;
    }
    .container{
        margin-top: -130%;
    }
}
@media screen and (orientation: landscape) and (max-width: 1151px){
    header{
        height: 100vh;
    }
    .name{
        display: none;
    }
    .description{
       display: none;
    }
    .profilepic{
        position: absolute;
        margin-top: 43vh;
    }
}
@media screen and (orientation: landscape) and (max-width: 1025px){
    header{
        height: 80vh;
    }
    .description{
       display: none;
    }
    .profilepic{
        position: absolute;
        margin-top: 33vh;
    }
}
/* investigate 1024 and 915 as nests an mini look poor in lanscape, add the name*/
/* change the background im age to fit better */


