* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

::-webkit-scrollbar {
    width: 13px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(transparent, var(--scrollbar-hover));
    border-radius: 25px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(transparent, #25566b);
}

.button {
    list-style: none;
    text-decoration: none;
    color: var(--color-button);
    padding: 15px 30px;
    border: 2px solid var(--color-button);
    border-radius: 4em;
    margin-left: 44%;
    margin-top: 32%;
    position: absolute;
    animation: Slide_Up 1.5s ease;
    font-size: 1rem;
}

.button:hover {
    background: var(--button-hover);
    color: white;
    font-size: 1.1rem;
    margin-left: 43.6%;
    transition: 0.4s;
}

h2 {
    color: var(--color-text);
}

.popup-text {
    color: var(--color-text);
    font-size: 1.35rem;
}

.popup-button {
    border: 2px solid var(--border);
    color: var(--border-text);
    border-radius: 10rem;
    position: fixed;
    left: 97.7%;
    top: 93%;
    background-color: transparent;
    transform: translate(-50%, -50%);
    padding: 15px;
    font-size: 30px;
}

.popup-button:hover {
    background-color: var(--border);
    color: var(--bg);
    border: 1px solid white;
}

.popup .overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
    display: none;
}

.popup .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--bg);
    width: 500px;
    height: 250px;
    z-index: 2;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

.popup .close-btn {
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    background: #222;
    color: #fff;
    font-size: 25px;
    font-weight: 600;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
}

.popup.active .overlay {
    display: block;
}

.popup.active .content {
    transition: all 300ms ease-in-out;
    transform: translate(-50%, -50%) scale(1);
}

#to-top-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-image: linear-gradient( #206186, #28cebd);
    color: white;
    cursor: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    right: 5%;
    animation: Slide_Up 0.8s ease;
}

.pagep {
    font-family: serif;
    border-bottom: 0.5px solid var(--color-headings);
    position: absolute;
    font-size: 2.6rem;
    color: var(--color-headings);
    margin-top: 6%;
    left: 36.8%;
    transform: translate(-50%, -50%);
    cursor: none;
    font-weight: 535;
    text-transform: uppercase;
    animation: Slide_Up2 1.4s ease;
}

.project1 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: var(--color-text);
    text-align: center;
    cursor: text;
    border: 3px solid var(--border);
    border-radius: 3%;
    font-size: 1.5rem;
    letter-spacing: 2px;
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem 1rem;
    cursor: none;
}

.project1-image {
    display: none;
}

.project2 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: var(--color-text);
    text-align: center;
    cursor: text;
    border: 3px solid var(--border);
    border-radius: 3%;
    font-size: 1.5rem;
    letter-spacing: 2px;
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem 1rem;
    cursor: none;
}

h1 {
    font-family: Calibri, Arial, Helvetica, sans-serif;
    border-bottom: 0.5px solid var(--color-text);
    font-size: 2rem;
    color: var(--color-headings);
    text-align: left;
    cursor: none;
    letter-spacing: 8px;
    padding: 0 0px;
    font-weight: 700;
}

p {
    font-family: Calibri, Arial, Helvetica, sans-serif;
    font-weight: 1000;
    font-size: 1.2rem;
    margin-top: 2%;
    max-width: 75ch;
    padding: 0 10px;
    letter-spacing: 1.5px;
    text-align: start;
    line-height: 2;
}

.see-image {
    list-style: none;
    color: var(--source);
    text-align: left;
    margin-left: 60%;
    margin-top: 0%;
    position: absolute;
}

.see-source {
    list-style: none;
    color: var(--source);
    text-align: left;
    margin-left: 85%;
}

.cursor {
    z-index: 100;
    position: absolute;
    top: 0;
    left: 0;
    /* border: 2px solid white; */
    /* background-color: rgba(255, 255, 255, 0.356); */
    height: 60px;
    width: 30px;
    border-radius: 50px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cursor::after,
.cursor::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--cursor);
    height: 25px;
    width: 25px;
    border-radius: 50px;
}

.cursor::before {
    background-color: rgb(255, 255, 255);
}

.cursor.click::before {
    animation: click 1s ease forwards;
    background-color: var(--cursor-animation);
}

.cursor.change::before {
    width: 28px;
    height: 28px;
    background-color: transparent;
    border: 3px solid white;
    transition: 0.4s;
}

.cursor.change::after {
    width: 28px;
    height: 28px;
    background-color: transparent;
    border: 3px solid white;
    transition: 0.4s;
}

@keyframes click {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(7);
    }
}

html {
    height: 100%;
    font-family: 'Montserrat';
    display: grid;
    align-items: center;
    justify-items: center;
    --bg: #25566b;
    --bg2: #0F2027;
    --color-headings: White;
    --color-text: white;
    --nav: white;
    --nav-hover: #f25757;
    --socials: white;
    --socials2: #282828;
    --inv: white;
    --cursor: white;
    --cursor-animation: white;
    --border: white;
    --source: white;
    --border: #F0F0F0;
    --border-text: white;
    --label: black;
    --scrollbar-hover: #2d3748;
    --button-hover: #f25757;
    --color-button: white;
    cursor: none;
}

html[data-theme='dark'] {
    --bg: #FCFCFC;
    --bg2: #F5F5F5;
    --color-headings: #28cebd;
    --color-text: #349e94;
    --nav: #28cebd;
    --nav-hover: black;
    --inv: #28bdae;
    --cursor: #37b6a9;
    --cursor-animation: #2d3748;
    --border: #28bdae;
    --source: #349e94;
    --border: #28bdae;
    --border-text: #28bdae;
    --label: #28bdae;
    --scrollbar-hover: #28bdae;
    --button-hover: #40E0D0;
    --color-button: #1fcebc;
    cursor: none;
}

body {
    background-image: linear-gradient(215deg, var(--bg), var(--bg2));
    background-attachment: fixed;
    width: 100%;
    height: 150%;
    cursor: none;
    overflow-x: hidden;
    animation: fadein 2s ease-in;
}

.toggle-container {
    margin-top: 13.5%;
    margin-left: 1%;
    cursor: none;
}

input[type=checkbox] {
    height: 0;
    width: 0;
    visibility: hidden;
    cursor: none;
}

.simondev {
    position: fixed;
    text-decoration: none;
    float: left;
    color: var(--color-text);
    margin-top: -0.8%;
    margin-left: 1%;
    font-size: 1.2rem;
    padding: 10px 10px;
    animation: fadein 2s ease-in;
    border-radius: 0.3em;
    cursor: pointer;
    text-transform: uppercase;
}

.simondev:hover {
    background-color: var(--button-hover);
    transition: 0.8s;
    color: white;
    font-size: 1.3rem;
    margin-left: 0.8%;
    border-left: 2px solid var(--color-text);
    border-right: 2px solid var(--color-text);
    border-bottom: 2px solid var(--color-text);
    border-top: 2px solid var(--color-text);
}

.menu {
    transition: 0.4s;
    margin-left: 97%;
    margin-top: -1%;
    font-size: 30px;
    cursor: pointer;
    color: var(--nav);
    cursor: none;
    position: fixed;
    animation: Slide_Up 1.4s ease;
    text-shadow: 1px 1.5px 1px #919191, 1px 18px 6px rgba(16, 16, 16, 0.4), 1px 22px 10px rgba(16, 16, 16, 0.2), 1px 25px 35px rgba(16, 16, 16, 0.2), 1px 30px 60px rgba(16, 16, 16, 0.4);
}

.menu:hover {
    color: var(--nav-hover);
}

.underline::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width .3s;
}

.underline:hover::after {
    width: 100%;
    transition: width .3s;
}

.navp {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-top: -5%;
    margin-left: 0%;
    float: left;
    cursor: none;
}

label {
    cursor: pointer;
    text-indent: -9999px;
    width: 52px;
    height: 27px;
    background: #305696;
    border-radius: 100px;
    position: fixed;
    margin-left: -25%;
    margin-top: -2.5%;
    cursor: pointer;
    cursor: none;
}

label:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 90px;
    transition: 0.3s;
    cursor: none;
}

input:checked+label {
    background: var(--label);
}

input:checked+label:after {
    left: calc(100% - 5px);
    transform: translateX(-100%);
}

label:active:after {
    width: 45px;
}

html.transition,
html.transition *,
html.transition *:before,
html.transition *:after {
    transition: all 750ms !important;
    transition-delay: 0 !important;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    cursor: none;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
    cursor: none;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: inline-block;
    transition: 0.3s;
    cursor: none;
}

.overlay a:hover,
.overlay a:focus {
    color: #f1f1f1;
}

.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    cursor: none;
}

@media screen and (max-height: 450px) {
    .overlay a {
        font-size: 20px
    }
    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

@media screen and (max-width: 500px) {
    body {
        height: 180%;
    }
    .simondev {
        margin-top: 48%;
        margin-left: 1%;
        font-size: 0.7rem;
        border-left: 1px solid var(--color-text);
        border-right: 1px solid var(--color-text);
        border-bottom: 1px solid var(--color-text);
        border-top: 1px solid var(--color-text);
        padding: 10px 10px;
        animation: fadein 2s ease-in;
        border-radius: 0.3em;
    }
    .pagep {
        font-size: 1rem;
        margin-top: 52%;
        left: 39%;
    }
    .project1 {
        top: 35%;
        left: 50%;
    }
    .project1-image {
        display: none;
    }
    .see-source {
        font-size: 1rem;
        margin-left: 75%;
    }
    .see-image {
        font-size: 1rem;
        margin-left: 20%;
        margin-top: 3.4%;
    }
    .navp {
        font-size: 1.5rem;
        color: var(--color-text);
        margin-top: -5%;
        margin-left: 0%;
        float: left;
        cursor: none;
    }
    label {
        cursor: pointer;
        text-indent: -9999px;
        width: 52px;
        height: 27px;
        background: #305696;
        border-radius: 100px;
        position: fixed;
        margin-left: -25%;
        margin-top: -2.5%;
        cursor: pointer;
        cursor: none;
    }
    .menu {
        margin-top: 45%;
        margin-left: 92%;
        font-size: 25px;
    }
    h1 {
        font-size: 1rem;
        font-weight: 600;
        padding: 15px 0px;
    }
    p {
        font-size: 12px;
        padding: 15px 0px;
    }
    .button {
        list-style: none;
        text-decoration: none;
        color: var(--color-button);
        padding: 15px 30px;
        border: 2px solid var(--color-button);
        border-radius: 4em;
        margin-left: 36%;
        margin-top: 135%;
        position: absolute;
        animation: Slide_Up 1.5s ease;
        font-size: 0.8rem;
    }
    .button:hover {
        margin-left: 33.2%;
    }
    .popup-button {
        border: 2px solid var(--border);
        color: var(--color-text);
        border-radius: 3rem;
        position: fixed;
        left: 94%;
        top: 94%;
        background-color: transparent;
        transform: translate(-50%, -50%);
        padding: 15px;
        font-size: 21px;
    }
    .popup .overlay {
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1;
        display: none;
    }
    .popup .content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        background: var(--bg);
        width: 350px;
        height: 260px;
        z-index: 2;
        text-align: center;
        padding: 20px;
        box-sizing: border-box;
        font-family: "Open Sans", sans-serif;
    }
    .popup-text {
        font-size: 1.1rem;
        font-weight: 550;
    }
    #to-top-button {
        display: none;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 99;
        border: none;
        outline: none;
        background-image: linear-gradient( #206186, #28cebd);
        color: white;
        cursor: none;
        padding: 15px;
        border-radius: 10px;
        font-size: 18px;
        right: 12%;
        animation: Slide_Up 0.8s ease;
    }
}

@media screen and (max-width: 410px) {
    body {
        height: 180%;
    }
    .pagep {
        font-size: 0.7rem;
        margin-top: 55%;
        left: 44%;
    }
    .project1 {
        top: 35%;
        left: 50%;
        padding: 5px 5px;
    }
    .project2 {
        font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
        color: var(--color-text);
        text-align: center;
        cursor: text;
        border: 3px solid var(--border);
        border-radius: 3%;
        font-size: 3rem;
        letter-spacing: 2px;
        position: absolute;
        top: 90%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 5px 5px;
        cursor: none;
    }
    .see-source {
        font-size: 0.8rem;
        margin-left: 65%;
    }
    .see-image {
        font-size: 0.8rem;
        margin-left: 10%;
        margin-top: 6.4%;
    }
    .simondev {
        border: none;
        margin-top: 45%;
        margin-left: 1%;
        font-size: 0.7rem;
        padding: 10px 10px;
        animation: fadein 2s ease-in;
        border-radius: 0.3em;
    }
    .navp {
        font-size: 1.2rem;
        font-weight: lighter;
        color: var(--color-text);
        margin-top: -5%;
        margin-left: -1%;
        float: left;
        cursor: none;
    }
    label {
        cursor: pointer;
        text-indent: -9999px;
        width: 52px;
        height: 27px;
        background: #305696;
        border-radius: 100px;
        position: fixed;
        margin-left: -34%;
        margin-top: -3.8%;
        cursor: pointer;
        cursor: none;
    }
    .menu {
        margin-top: 45%;
        margin-left: 92%;
        font-size: 25px;
    }
    h1 {
        font-size: 0.3rem;
        font-weight: 900;
        padding: 5px 5px;
    }
    p {
        font-size: 6px;
        font-weight: 900;
        padding: 5px 5px;
    }
    .button {
        list-style: none;
        text-decoration: none;
        color: var(--color-button);
        padding: 15px 30px;
        border: 2px solid var(--color-button);
        border-radius: 4em;
        margin-left: 32.5%;
        margin-top: 220%;
        position: absolute;
        animation: Slide_Up 1.5s ease;
        font-size: 0.8rem;
    }
    .button:hover {
        margin-left: 33.2%;
        font-size: 0.85rem;
    }
    .popup-button {
        border: 2px solid var(--border);
        color: var(--color-text);
        border-radius: 3rem;
        position: fixed;
        left: 94%;
        top: 94%;
        background-color: transparent;
        transform: translate(-50%, -50%);
        padding: 15px;
        font-size: 21px;
    }
    .popup .overlay {
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1;
        display: none;
    }
    .popup .content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        background: var(--bg);
        width: 350px;
        height: 260px;
        z-index: 2;
        text-align: center;
        padding: 20px;
        box-sizing: border-box;
        font-family: "Open Sans", sans-serif;
    }
    .popup-text {
        font-size: 1.1rem;
        font-weight: 550;
    }
    #to-top-button {
        display: none;
        opacity: 0;
        all: unset;
    }
}

.navbar ul li a:hover {
    color: #7B68EE;
}

@keyframes Slide_Up {
    0% {
        transform: translateY(250px)
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes Slide_Up2 {
    0% {
        transform: translateY(40px)
    }
}

@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}