body {
    width: 100%;
    background: #f1f1f1;
    overflow: scroll;
    margin: 0;
}

body img {
    border-radius: 2%;
}

#sidebar {
    background: #d1d1d1;
    position: fixed;
    height: 100%;
    width: 15%;
    padding: 30px 0;
    z-index: 1;
}

/* IMAGE GRID */
#Grid_Display {
    --gap: 15px;
    --num-col: 4;
    --Row_Height: 300px;

    display: grid;
    box-sizing: border-box;
    padding: var(--gap);
    grid-template-columns: repeat(var(--num-col), 1fr);
    grid-auto-rows: var(--Row_Height);
    gap: var(--gap);
    margin-left: 15%;
}

#Grid_Display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#Grid_Display a {
    display: contents;
}

.Image_Text {
    position: sticky;
    height: 100%;
    bottom: 100%;
    opacity: 40%;
    align-content: center;
    text-align: center;
    background-color: #000011;
    border-radius: 2%;
}

/*SIDE IMAGE AVATAR*/
#sidebar .Avatar img {
    border-radius: 50%;
    display: block;
    margin-left: 15%;
    margin-right: 15%;
    margin-top: 5%;
    width: 70%;
}

/*CV PAGE*/
#BreadText {
    margin-left: 37%;
    padding: 2% 5% 0 2%;
}

/*SKILLIST*/
.SkillList {
    position: absolute;
    margin-left: 16.5%;
    margin-top: 9%;
    padding: 1% 2%;
    width: 17.1%;
    background-color: #bfbfbf;
}

#Small {
    opacity: 0%;
    margin: 0;
    padding: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/*MAIN BODY*/
#MainBody {
    margin-left: 13.5%;
    padding: 2% 5% 0 2%;
    width: 79.5%;
}

.MainImage {
    margin-left: 3%;
}

#MainBody .MainImage img {
    width: 100%;
}

/*BLUEGLASS*/
#MainBody .MainImage .Text_Buble {
    position: absolute;
    overflow: scroll;
    bottom: 1px;
    left: 63%;
    width: 28%;
    padding: 20px;
    border-radius: 2%;
    text-align: justify;
    background-color: #bfbfbf;
}

/*MAIN BODY GRID*/
#MainBody #Grid_Display {
    position: absolute;
    --num-col: 3;
    --Row_Height: 120px;
    margin: 0 0 0 1.3%;
    width: 79.3%;
    align-content: center;
}

/*Green Candle stick*/
.Glass #Grid_Display img:nth-of-type(1) {
    /*object-fit: contain;
    border-radius: 13%;*/
    grid-column-start: 3;
    grid-row-start: 1;
    grid-row-end: 7;
    height: 100%;
    object-fit: fill;
}

/*Clear Glass Vase*/
.Glass #Grid_Display img {
    grid-row-start: 2;
    grid-row-end: 5;
}

/*Apple Standing*/
.Apple #Grid_Display img:nth-of-type(1) {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 5;
}

/*Lego tree crown*/
.Apple #Grid_Display img:nth-of-type(2) {
    grid-row-start: 2;
    grid-row-end: 4;
}

/*House Side*/
.House #Grid_Display img:nth-of-type(1) {
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 4;
}

/*House FrontDoor*/
.House #Grid_Display img:nth-of-type(2) {
    grid-row-start: 4;
    grid-row-end: 7;
}
/*House Protch*/
.House #Grid_Display img:nth-of-type(3) {
    grid-row-start: 4;
    grid-row-end: 7;
    grid-column-start: 2;
    grid-column-end: 4;
}

/*Clock Fron, side, back*/
.Clock #Grid_Display img {
    grid-row-start: 1;
    grid-row-end: 5;
}

/*Clock face zoom*/
.Clock #Grid_Display img:nth-of-type(4) {
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row-start: 5;
    grid-row-end: 8;
}

/*Clock spiner zoom*/
.Clock #Grid_Display img:nth-of-type(5) {
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 8;
    grid-row-end: 13;
}

.MP #Grid_Display {
    position: absolute;
    grid-auto-rows: min-content;
    row-gap: 0;
}

.MP #Grid_Display section {
    padding: 0 10px 10px 10px;
}

.MP #Grid_Display section:nth-of-type(13) {
    grid-column-start: 1;
    grid-column-end: 4;
    margin-left: 30px;
}

.MP #Grid_Display section:nth-of-type(16) {
    grid-column-start: 1;
    grid-column-end: 4;
    margin-left: 30px;
}

.MP #Grid_Display section:nth-of-type(24) {
    grid-column-start: 1;
    margin-left: 30px;
}

.MP #Grid_Display section:nth-of-type(24) p {
    grid-column-start: 1;
    margin-left: 30px;
}

.MP #Grid_Display .MPFirstHeading {
    grid-column-start: 1;
    grid-column-end: 4;
}

.MP #Grid_Display .MPThirdHeading {
    grid-column-start: 1;
    grid-column-end: 4;
}

.MP #Grid_Display img:nth-of-type(1) {
    grid-column-start: 1;
    width: 145%;
    margin-left: 5%;
}

.MP #Grid_Display img:nth-of-type(2) {
    grid-column-start: 2;
    grid-column-end: 3;
    width: 145%;
    margin-left: 50%;
}

.MP #Grid_Display img:nth-of-type(3) {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 11;
    grid-row-end: 15;
    width: 90%;
    object-fit: fill;
    /*background-color: white;*/
}

.MP #Grid_Display img:nth-of-type(11) {
    grid-column-start: 3;
    grid-column-end: 3;
    grid-row-start: 21;
    grid-row-end: 23;
}

.MP #Grid_Display img:nth-of-type(12) {
    grid-column-start: 1;
}
.MP #Grid_Display img:nth-last-of-type(1) {
    grid-column-start: 3;
    grid-row-start: 24;
    grid-row-end: 26;
}

.MP #Grid_Display img:nth-of-type(n + 11) {
    border-radius: 0;
    object-fit: fill;
    background-color: white;
}
.MP #Grid_Display {
    row-gap: 10px;
}

.MP #Grid_Display img {
    width: 100%;
    margin-left: 0;
    object-fit: fill;
}

/*TABLES*/
.SkillList table {
    margin-left: 8%;
}

table th,
.SkillList td {
    text-align: left;
    padding-right: 10px;
}

table th,
.MP td {
    text-align: center;
    padding-right: 0;
}

table th,
.MP .ColourMP td {
    text-align: left;
    padding-right: 0;
}

.MP #Grid_Display .Publication {
    margin-left: 15%;
    width: 75%;
    height: 75%;
    margin-top: -9%;
}

.MP .Leftligned_text:nth-last-of-type(1) {
    margin-left: 40px;
    margin-top: -8%;
}

table .MP .Publication td {
    padding: 0;
    margin: 0;
}

.MP .ColourMP .dot {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    display: list-item;
    list-style: none;
    margin-right: 5px;
}

/*VIDEO*/
#Video iframe {
    width: 75%;
    height: 100%;
    border-radius: 2%;

    align-content: center;
}

.Apple .Video {
    margin-left: 3%;
    display: flex;
    justify-content: center;
}

.Apple .Video iframe {
    width: 81%;
    height: 500px;
    border-radius: 2%;

    display: flex;
    justify-content: center;
}

/*TEXT*/
/*TEXT*/
/*TEXT*/
/*TEXT*/
h1 {
    color: #00226c;
    font: bold;
    margin-bottom: 5px;
    font-size: xx-large;
}
#BreadText h1 {
    margin-top: 35px;
    font: bold;
}

.SkillList h1 {
    margin-top: 50px;
}

#MainBody h1 {
    margin-left: 3%;
}

.MPFirstHeading h1 {
    color: black;
}

/*H2*/
h2 {
    color: #00226c;
    text-transform: capitalize;
    font: bold;
    font-size: larger;
}

#Grid_Display h2 {
    color: #d1d1d1;
    font-size: xx-large;
}

#sidebar h2 {
    text-align: center;
    margin: 10px 0;
}
#BreadText h2 {
    margin: 20px 15% 0 0;
}

#Education section h2 {
    margin-left: 20px;
    margin-top: 10px;
}
.MP #Grid_Display h2 {
    color: #00226c;
    font: bold;
    margin: 0 0 5px 50px;
    font-size: x-large;
}

/*H3*/
h3 {
    color: black;
    font-size: medium;
    font: bold;
    margin-top: 2px;
    margin-bottom: 5px;
}
#Education section h3 {
    margin-left: 20px;
}
.SkillList h3 {
    margin-left: 8%;
}

.MP #Grid_Display h3 {
    color: #00226c;
    font: bold;
    margin: 5px 0 5px 50px;
    font-size: x-large;
}

.MP .Heading h3 {
    margin-left: 3%;
    font-size: medium;
    color: #00226c;
}

.Video .Heading h3 {
    margin-left: 3%;
    font-size: medium;
    color: #00226c;
}

/*h4*/
h4 {
    color: black;
    padding-right: 30%;
    font: bold;
    margin: 0 0 5px 0;
}

.CV h4 {
    float: right;
    width: 25%;
    text-align-last: end;
    font-size: smaller;
}

.MP h4 {
    font-size: larger;
    margin-left: 10px;
}

/*H5*/
.MP .Typography_Publication h5 {
    font-size: medium;
    margin: 15px 0 5px 30px;
}

/*h6*/
h6 {
    float: left;
    margin: 0 0 0 8%;
    font-size: medium;
}

#MainBody h6 {
    color: #00226c;
    margin: 0;
    padding: 0;
    padding-bottom: 10px;
}

#Grid_Display h6 {
    padding: 30px 25px 0 25px;
    text-align: justify;
}

.Apple #Grid_Display h6 {
    padding: 0;
}

.Clock #Grid_Display h6 {
    padding: 40px 25px 0 25px;
    margin-bottom: 30px;
}

.MP h6 {
    padding: 0 0 0 10px;
}

.MP #Grid_Display h6:nth-of-type(1) {
    padding-left: 25px;
    text-align: justify;
}

.MP #Grid_Display section h6 {
    padding-top: 0;
    padding-left: 10px;
    margin: 0 0 10px 20px;
}

/*p*/
p {
    line-height: 1.3;
    color: black;
    font-size: medium;
}
#BreadText p {
    margin: 5px 30px 0 0;
    text-align: justify;
}

#Grid_Display p {
    margin-top: 0;
    padding: 0 20px;
    text-align: justify;
}

.Glass #Grid_Display .GlassText {
    margin-top: 25px;
    padding: 0 25px;
}

.House #Grid_Display section p {
    padding: 30px 25px 0 25px;
    margin-bottom: 30px;
}

.MP #Grid_Display section p {
    margin: 0;
    margin-left: 50px;
    padding: 0;
}

.MP #Grid_Display .ColourMP p {
    margin-left: 15px;
}

.MP #Grid_Display section.Leftligned_text p {
    margin-left: 15px;
}

.MP #Grid_Display .Typography p {
    margin-left: 20px;
}

.MP #Grid_Display .Typography p:nth-of-type(2) {
    margin-left: 35px;
}
.MP #Grid_Display section .Typography_Publication p {
    margin-left: 45px;
}

/*ul*/
ul {
    margin: 0;
}
#BreadText ul {
    padding-left: 35px;
    margin: 5px 30px 0 0;
    text-align: justify;
}
.SkillList ul {
    padding-left: 15%;
    list-style: none;
}
#sidebar ul {
    padding-top: 15px;
}

/*li*/
li {
    line-height: 1.3;
}
#sidebar li {
    list-style-position: inside;
    margin-left: -24%;
    list-style: none;
}

.MP section li {
    margin-left: 50px;
}

/*a*/
#sidebar ul li a {
    color: #00226c;
    display: block;
    padding: 15px;
    padding-left: 26%;
}

/*hr*/
hr {
    width: 95%;
    margin-left: 10px;
    height: 2px;
    color: black;
}
#BreadText hr {
    margin-top: -5px;
}
.SkillList hr {
    margin-top: -2%;
}
.MainBody hr {
    margin-left: 3%;
}

.MP #Grid_Display hr {
    width: 85%;
    margin-left: 10%;
    margin-top: -6px;
}

.MP #Grid_Display .MPFirstHeading hr {
    width: 65%;
    margin: 0 0 0 15px;
}

.MP #Grid_Display .MPThirdHeading hr {
    width: 28%;
    margin: 0 0 0 40px;
    margin-top: -6px;
}

.MP #Grid_Display .ForthHeading hr {
    width: 200px;
    margin: 0 0 0 0;
    margin-top: -6px;
}

/*HOVER*/
/* HOVER SIDE MENU*/
#sidebar ul li:hover {
    background: #000939;
    opacity: 100%;
    border-radius: 5%;
}
#sidebar ul li:hover a {
    color: #d1d1d1;
}
#sidebar .Avatar h2:hover {
    background: #000939;
    color: #d1d1d1;
    border-radius: 5%;
}

/* HOVER IMAGE GRID*/
#Grid_Display .Image_Text:hover {
    opacity: 90%;
}

/* IF SCREEN IS SMALL under 1024px*/
@media screen and (max-width: 1024px) {
    #Grid_Display {
        --num-col: 2;
        --Row_Height: 200px;
        margin-left: 15%;
    }
    #sidebar {
        width: 19.5%;
    }

    #sidebar ul {
        padding-top: 15px;
        padding-left: 16%;
    }

    /*li*/
    #sidebar li {
        margin-left: 0;
    }

    /*a*/
    #sidebar ul li a {
        display: block;
        padding: 15px;
        padding-left: 0;
    }

    #BreadText {
        margin-left: 215px;
    }

    #MainBody {
        width: 46%;
    }
    #Grid_Display {
        margin-left: 18%;
    }

    #MainBody {
        margin-left: 18%;
        padding: 2% 5% 0 2%;
        width: 79.5%;
    }

    .SkillList {
        opacity: 0;
    }

    #Small {
        opacity: 100%;
        margin: 0 0 5% 36%;
        padding: 0 2% 4% 2%;
        width: 45%;
        height: fit-content;
        overflow: unset;
    }
}
