body {
    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: "Source Code Pro", monospace;
    background-color: rgb(255, 255, 255);
    padding: 0;
    margin: 0;
}


nav {
    width: 100%;
    top: 0;
    height: 50px;
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(27, 50, 120, 0);

    margin-top: 0;



    z-index: 100000;
    backdrop-filter: blur(2px);
    margin-bottom: 50px;
    padding: 0;
}

nav>a {
    width: 15%;
    height: 100%;
    line-height: 50px;
    font-size: 18px;
    text-align: center;
    padding: 0;
    margin: 0;
    background-color: rgba(186, 229, 255, 0);
    text-decoration: none;
    color: rgb(0, 0, 0);
    transition: 0.5s ease;
}

nav>a:hover {
    width: 20%;
    background-color: rgb(131, 201, 255);
}


.tags {
    display: flex;
    flex-wrap: wrap;
    left: 0;
    flex-direction: row;
    flex-basis: 100%;
    gap: 5px;
    height: fit-content;
    width: fit-content;
    padding-right: 5px;
}

.tags>span {
    background-color: cornflowerblue;
    padding: 7px;
    border-radius: 20px;
    margin-left: 10px;
}






.mainDiv {
    width: 90%;
    text-align: lefts;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;

}




.blog {
    display: block;
    max-width: 60%;
}

.mainDiv:not(.blog)>div:not(.basicInfo, .figure, .code-snippet, .pad) {
    height: 150px;
    padding: 10px;
    background-color: rgba(192, 192, 192, 0);
    display: flex;
    flex-flow: column;
    flex-direction: column;
    margin: 10px;
    border-radius: 40px;
    height: fit-content;
    text-align: center;
    border: 1px dashed black;
    box-shadow: #d6e8ff 4px 4px 10px 10px;
    transition: ease 0.5s;
    font-size: 17px;
}


.mainDiv:not(.blog)>div:not(.basicInfo, .figure, .code-snippet, .pad, .red-dot, .pictureCard)::before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 50px;
    position: relative;
    background: rgb(34, 87, 222);
    margin-right: 8px;
    border-radius: 50%;
    transition: ease 0.5s;
    z-index: 1000;
}

li {
    padding: 5px;

}

.red-dot::before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 50px;
    position: relative;
    margin-right: 8px;
    border-radius: 50%;
    transition: ease 0.5s;
    z-index: 1000;

    background-color: red;
}

.red-dot:hover::before {
    transform: scale(1.2);
    background: rgb(255, 13, 13);

}

.mainDiv>div:not(.basicInfo, .figure, .code-snippet, .pad, .red-dot):hover::before {
    transform: scale(1.2);
    background: rgb(13, 81, 255);
}


.basicInfo {
    display: flex;
    flex-direction: column;
}

.mainDiv div a {
    width: fit-content;
    text-align: left;
    font-size: 25px;
}

.mainDiv>p{
	text-align: left;
}


.figure {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;

}


.figure>img {
    max-width: 30%;
    transition: ease 0.1s;
}

.figure>pre {
    max-width: 60%;
}


.figure>img:hover {
    transform: scale(1.5);
}



.CONTACT {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-items: center;
}

.CONTACT>div {
    top: 50%;
    position: relative;
    box-shadow: none;
    box-shadow: rgba(144, 161, 255, 0.301) -4px -4px 10px 10px, rgba(255, 126, 126, 0.3) 4px 4px 10px 10px !important;
}

.CONTACT>div::after {
    content: "";
    position: relative;
    background-color: red;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: right;
    left: calc(100% - 50px);
    transition: ease 0.5s;
}

.CONTACT>div:hover::after {
    transform: scale(0.8333);
}


pre {
    margin: 0 !important;
    background: #2d2d2d !important;
    padding: 16px !important;
    overflow-x: auto;
    border-radius: 0 !important;
}

code {
    background: transparent !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
}


p {
text-align: left;    
font-size: 18px;
}

.connector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    stroke-width: 10;
    stroke: #4400ff solid;
    color: #4400ff;
    transition: 0.5s ease;
    z-index: 1000;
}

.connector:hover {
    transform: scale(1.2);
}


.pictureCard {
    position: relative;
    max-width: 100%;
    grid-row: 2;
    grid-column: 3;
    top: 20%;
    border: 0px solid black;
}

.pictureCard>img {
    width: 100%;
    height: 100%;
}



#e1 {
    grid-row: 1;
    grid-column: 3;
}

#e2 {
    grid-row: 2;
    grid-column: 1;
}

#e3 {
    grid-row: 2;
    grid-column: 4;
}

#e4 {
    grid-row: 2;
    grid-column: 3;

}


#e5 {
    grid-row: 2;
    grid-column: 3;
}

#e6 {
    grid-row: 1;
    grid-column: 5;
}

@media screen and (max-width: 420px) {
    nav {
        width: 100%;
        height: auto;
        flex-direction: column;
        gap: 5px;
        border-radius: 0;
    }

    nav>a {
        width: 100%;
        border-radius: 0;
        font-size: 16px;
    }

    .mainDiv {
        width: 100%;

        display: flex;
        flex-direction: column;
    }

    .mainDiv>div {
        width: 100%;
        position: relative;
    }

    #e1,
    #e2,
    #e3,
    #e4,
    #e5,
    #e6 {
        grid-column: 1;
        grid-row: auto;
    }

    .connector {
        visibility: hidden;
    }

    .figure>img {
        max-width: 90%;
    }

    .figure>pre {
        max-width: 100%;
    }
}
