body {
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.mainDiv {
    width: 100vw;
    height: 100vh;
    background-color: rgb(255, 255, 255);

    padding: 0;
    margin: 0;
}

.frontDiv {
    display: grid;
    grid-template-columns: repeat(20, 10vh);
    grid-template-rows: repeat(10, 10vh);
    background-color: rgba(44, 168, 245, 0);

    padding: 0;
    margin: 0;

    width: 100vw;
    height: 100vh;
    top: 1vh;
    left: 0;

    position: absolute;
}

.titleDiv {
    z-index: 1;
    position: absolute;

    width: 80%;
    font-kerning: auto;
    text-align: center;
    font-size: 80px;

    font-family: "Alfa Slab One", serif;
    font-weight: 100;
    font-style: normal;
    color: rgba(0, 0, 182, 0.705);
}

.titleDiv-small{
    z-index: 1;
    width: 100%;
    font-kerning: auto;
    text-align: center;
    font-size: 20px;

    font-family: 'Montserrat';
    font-weight: 100;
    font-style: normal;
    color: rgb(121, 121, 255);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap:0;

}

.titleDiv-small>a{
    color: azure;
}

.titleDiv-small>a{
    width: fit-content;

}

.blog-section{
    width: 60%;
    position: relative;
    left: 20%;

    font-family: 'Montserrat';
}

.blog-section>:not(img){
    filter: invert(100%);
}

.figure{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    position: relative;

}

.figure>label{
    font-family: "Montserrat";
    color: white;
}


.figure>img{
    max-width: 500px;
    text-align: center;
}

.titleDiv>h3 {
    text-align: left;
    left: calc(50% - 500px);
    color: rgba(54, 54, 201, 0.5);
    top: -60px;
    font-size: 50px;
    position: relative;
}

.links {
    z-index: 2;
    position: absolute;

    width: fit-content;
    font-kerning: auto;
    text-align: right;
    font-size: 60px;

    font-family: "Alfa Slab One", serif;
    font-weight: 100;
    font-style: normal;
    color: rgb(0, 0, 182);

    right: 5%;

    bottom: 30%;
}


.links>a {
    color: rgb(0, 0, 182);
    text-decoration: none;
    padding: 0;
    margin: 0;
    --border-color: #111;
    --border-size: 0px;
    --stripe-color: rgb(0, 0, 182);
    --stripe-width: 2px;
    --stripe-gap: 5px;
    --stripe-height: 5px;
    --skew-angle: 40deg;
    --offset: 6px;



    transition: 2s ease;


    position: relative;
    z-index: 1;
    border-bottom: var(--border-size) solid var(--border-color);
}

.links>a::after {
    transition: 2s ease;

    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: var(--stripe-height);
    bottom: calc(-1 * (var(--stripe-height) - var(--offset)));
    pointer-events: none;
    z-index: 0;

    /* repeating stripes: transparent gap, then stripe block */
    background-image:
        repeating-linear-gradient(90deg,
            transparent 0 calc(var(--stripe-gap)),
            var(--stripe-color) calc(var(--stripe-gap)) calc(calc(var(--stripe-gap)) + var(--stripe-width)));
    padding-bottom: calc(var(--stripe-height) + var(--offset));

    /* angle to look like a hand-drawn shadow */
    transform: skewX(var(--skew-angle));
    transform-origin: left;
    /* small blur option if you want it softer (optional) */
    filter: blur(0px);
}

.links>a:hover {
    cursor: pointer;
    --stripe-width: 5px;

}

.burger-selector {
    top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: calc(3% - 10px);
    margin: 0;
    padding: 0;
    padding-bottom: 5px;
    padding-top: 5px;
    margin-left: 5px;
    margin-right: 5px;
    position: relative;

}

.burger-selector>div {
    width: 100%;
    position: relative;
    left: 0;
    z-index: 100000;
    height: 9px;
    background-color: rgb(122, 167, 252);
    border-radius: 10px;
}

.sidebar-icon {

    width: 4vw;
    height: 4vw;
    position: relative;
    text-align: center;
    list-style: none;

    border-radius: 200px;
    line-height: calc(100vh / 12);
    padding: 0;
    border: 3 px rgb(0, 0, 0) solid;

    display: flex;
    align-items: center;
    justify-content: space-evenly;

    text-align: center;
}

.sidebar-icon:hover {
    cursor: pointer;
}

.sidebar-icon>img {
    width: 50%;

}

#subt {
    white-space: pre-wrap;
    /* or 'pre' if you don't want wrapping */
}

#cv {
    width: 100%;
    height: 100%;
    background-image: url('../images/cv.svg') !important;
    background-size: 70% !important;
    background-position-x: center;
    color: white;
    background-repeat: no-repeat;
    background-position-y: center;
    z-index: 10000;
    position: relative;
}

.inv {
    filter: invert(100%);
}

.leftbar {
    width: 5vw;
    position: absolute;
    height: 100vh;
    padding: 0;
    top: 0;
    background-color: rgba(149, 186, 255, 0.288);

    backdrop-filter: blur(10px);
    left: -5%;
    z-index: 100001;
    transition: left 0.1s ease-in;
    display: grid;
    gap: 10px;
    justify-content: center;
    align-items: center;
    grid-template-rows: repeat(12, 1fr);
}

.cell {
    background-color: transparent;
    width: 100px;
    height: 100px;
    position: relative;
    transition: 0.5s ease;
}

:root {
    --trbf: 0;
    --bsbf: none;
    --zindx: 10;
    --bcgrcl: #ffffff;
    --cnt: "";
    --rot: 0;
}

.cell::before {
    transition: 1s ease-in;


    rotate: var(--rot);

    content: var(--cnt);

    text-align: center;
    line-height: 10vh;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;

    box-shadow: var(--bsbf);
    transform: translate(var(--trbf));
    background-color: var(--bcgrcl);
    /* value that that refers to CSS 'content' */
    width: 10vh;
    height: 10vh;
    position: absolute;


}



.otherpage {
    z-index: 20000000;
}

.project-wrapper-space,
.skill-wrapper-space {
    display: flex;
    flex-direction: column;
    width: 100%;

    gap: 20px;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    justify-items: center;

    position: relative;
    right: 12%;

}

.project-name,
.skill-name {
    width: 40%;
    text-align: left;
}

.project-wrapper,
.skill-wrapper {
    padding: 20px;
    font-weight: normal;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    font-size: 20px;
    width: 60%;
    z-index: 5000;
    background-color: rgba(255, 255, 255, 0.514);
    backdrop-filter: blur(10px);
    border: 1px solid rgb(12, 12, 126);
    border-radius: 500px;
}

.project-tags {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    align-items: center;
    align-content: center;
    justify-items: center;
}

.skill-links {
    display: flex;
    flex-direction: column;
    font-family: monospace;
    font-size: 20px;
    gap: 10px
}

.project-desc,
.skill-desc {
    font-size: 20px;
    color: black;
    font-family: monospace;
}

.project-tag {
    padding: 5px;
    max-width: 2000px;
    border: 1px solid black;
    border-radius: 100px;
    font-family: monospace;
}


.contact-wrapper-space {
    width: 60%;
    position: relative;
    left: 20%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 30px;



}



.contact-link {
    padding: 10px;
    border-radius: 1000px;
    width: 200px;
    height: 200px;
}

.contact-icon {
    max-width: 200px;
}

.discord {
    border-radius: 200px;
}



/* Tablet Landscape (1024px and below) */
@media screen and (max-width: 1024px) {
    .titleDiv {
        font-size: 60px;
        width: 90%;
        left: 5%;
    }

    .titleDiv > h3 {
        font-size: 35px;
        left: calc(50% - 300px);
        top: -40px;
    }

    .links {
        font-size: 45px;
        width: 85%;
        right: 7.5%;
        bottom: 25%;
    }

    .project-wrapper,
    .skill-wrapper {
        width: 70%;
        font-size: 18px;
        padding: 15px;
    }

    .project-wrapper-space,
    .skill-wrapper-space {
        right: 5%;
    }

    .contact-wrapper-space {
        width: 70%;
        left: 15%;
    }

    .contact-link {
        width: 150px;
        height: 150px;
    }

    .contact-icon {
        max-width: 150px;
    }
}

/* Tablet Portrait (768px and below) */
@media screen and (max-width: 768px) {
    .titleDiv {
        font-size: 50px;
        width: 95%;
        left: 2.5%;
    }

    .titleDiv > h3 {
        font-size: 28px;
        left: calc(50% - 200px);
        top: -30px;
    }

    .links {
        font-size: 35px;
        width: 90%;
        right: 5%;
        bottom: 20%;
    }

    .frontDiv {
        grid-template-columns: repeat(15, 10vh);
        grid-template-rows: repeat(8, 10vh);
    }

    .burger-selector {
        width: calc(5% - 10px);
    }

    .leftbar {
        width: 8vw;
        left: -8%;
    }

    .sidebar-icon {
        width: 6vw;
        height: 6vw;
    }

    .project-wrapper,
    .skill-wrapper {
        width: 80%;
        flex-direction: column;
        border-radius: 30px;
        font-size: 16px;
        padding: 15px;
    }

    .project-name,
    .skill-name {
        width: 100%;
        text-align: center;
    }

    .project-details {
        width: 100%;
    }

    .project-tags {
        flex-wrap: wrap;
    }

    .project-wrapper-space,
    .skill-wrapper-space {
        right: 0;
        width: 100%;
    }

    .contact-wrapper-space {
        width: 80%;
        left: 10%;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .contact-link {
        width: 120px;
        height: 120px;
    }

    .contact-icon {
        max-width: 120px;
    }

    .skill-links {
        font-size: 16px;
        text-align: center;
    }
}

/* Mobile Landscape (640px and below) */
@media screen and (max-width: 640px) and (orientation: landscape) {
    .titleDiv {
        font-size: 40px;
    }

    .titleDiv > h3 {
        font-size: 22px;
        left: calc(50% - 150px);
        top: -20px;
    }

    .links {
        font-size: 28px;
        bottom: 15%;
    }

    .frontDiv {
        grid-template-columns: repeat(12, 10vh);
        grid-template-rows: repeat(6, 10vh);
    }

    .project-wrapper,
    .skill-wrapper {
        width: 85%;
        font-size: 14px;
    }
}

/* Mobile Portrait (480px and below) */
@media screen and (max-width: 480px) {
    .titleDiv {
        font-size: 35px;
        width: 95%;
        left: 2.5%;
    }

    .titleDiv > h3 {
        font-size: 20px;
        left: calc(50% - 120px);
        top: -20px;
    }

    .links {
        font-size: 25px;
        width: 90%;
        right: 5%;
        bottom: 15%;
        text-align: center;
    }

    .links > a::after {
        --stripe-height: 3px;
        --stripe-width: 1.5px;
        --stripe-gap: 3px;
    }

    .frontDiv {
        grid-template-columns: repeat(10, 10vh);
        grid-template-rows: repeat(5, 10vh);
    }

    .burger-selector {
        width: calc(8% - 10px);
    }

    .burger-selector > div {
        height: 7px;
    }

    .leftbar {
        width: 15vw;
        left: -15%;
    }

    .sidebar-icon {
        width: 10vw;
        height: 10vw;
    }

    .project-wrapper,
    .skill-wrapper {
        width: 90%;
        flex-direction: column;
        border-radius: 20px;
        font-size: 14px;
        padding: 12px;
        gap: 15px;
    }

    .project-name,
    .skill-name {
        width: 100%;
        text-align: center;
        font-size: 18px;
    }

    .project-desc,
    .skill-desc {
        font-size: 14px;
    }

    .project-tag {
        font-size: 12px;
        padding: 4px 8px;
    }

    .project-wrapper-space,
    .skill-wrapper-space {
        right: 0;
        width: 100%;
        gap: 15px;
    }

    .contact-wrapper-space {
        width: 90%;
        left: 5%;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        font-size: 24px;
    }

    .contact-link {
        width: 100px;
        height: 100px;
    }

    .contact-icon {
        max-width: 100px;
    }

    .skill-links {
        font-size: 14px;
    }

    .skill-links a {
        word-break: break-word;
    }
}

/* Extra Small Mobile (360px and below) */
@media screen and (max-width: 360px) {
    .titleDiv {
        font-size: 28px;
    }

    .titleDiv > h3 {
        font-size: 16px;
        left: calc(50% - 90px);
        top: -15px;
    }

    .links {
        font-size: 20px;
        bottom: 12%;
    }

    .frontDiv {
        grid-template-columns: repeat(8, 10vh);
        grid-template-rows: repeat(4, 10vh);
    }

    .burger-selector {
        width: calc(10% - 10px);
    }

    .leftbar {
        width: 20vw;
        left: -20%;
    }

    .sidebar-icon {
        width: 12vw;
        height: 12vw;
    }

    .project-wrapper,
    .skill-wrapper {
        width: 95%;
        font-size: 12px;
        padding: 10px;
    }

    .project-name,
    .skill-name {
        font-size: 16px;
    }

    .project-desc,
    .skill-desc {
        font-size: 12px;
    }

    .project-tag {
        font-size: 11px;
        padding: 3px 6px;
    }

    .contact-wrapper-space {
        width: 95%;
        left: 2.5%;
        font-size: 20px;
    }

    .contact-link {
        width: 80px;
        height: 80px;
    }

    .contact-icon {
        max-width: 80px;
    }

    .skill-links {
        font-size: 12px;
    }
}
