* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    cursor: none;
}

/*@font-face {
    font-family: AlibabaPuHuiTi;
    src: url(https://static.igem.wiki/teams/4594/wiki/alibabafont.ttf);
}*/

::selection {
    color: red;
    background: yellow;
}

body * {
    scroll-margin-top: 100px;
}

html {
    scroll-behavior: smooth;
    /*height: 100%;*/
}

/*Custom Cursor Hidden except for <p>*/
body {
    background: white;
    /*cursor: url(../resources/pointer-final.png) 2 2, auto;*/
}

/** {*/
/*    cursor: url(../resources/pointer-final.png) 2 2, auto;*/
/*}*/

a:hover {
    cursor: none;
}

.sidebarTab:hover {
    cursor: none;
}

p {
    cursor: url('../resources/text-select.png') 5 25, auto; /* Text cursor for text */
}

#loading {
    position: fixed;
    z-index: 100000000;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    /*display: none;*/
}

#loading img {
    height: 50%;
    width: 50%;
    object-fit: cover;
    display: block;

}


/*Custom Cursor div that follows mouse by js*/
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 33px;
    background-image: url('/resources/pointer-final.png');
    background-size: cover;
    pointer-events: none; /* Ensure that the cursor doesn't interfere with mouse events */
    z-index: 100000; /* Ensure the cursor appears on top of other elements */
}

/*Blood element created after click via js*/
.blood {
    opacity: 60%;
    /*transform: rotate(90deg);*/
    z-index: 10000;
    position: absolute;
    pointer-events: none;
    user-select: none;
    transition: opacity 2s ease; /* Transition for opacity */
}


/* Scroll Indicator */
#progress-container {
    position: fixed;
    top: 64px;
    z-index: 100;
    width: 100%;
    height: 6px;
    left: 0;
}

#progress-bar {
    height: 10px;
    background: linear-gradient(90deg, #f7e4ba, #f47971);
    width: 0;
    border-radius: 5px;
}

#progress-gif {
    background-image: url('/resources/flying.gif');
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    /*transform: rotateX(0deg) rotateY(180deg) rotate(-60deg);*/
    top: -25px; /* Adjust based on half the height of the gif minus half the height of the progress bar. */
    left: -20px; /* This shifts the GIF to the left, so it sits on the edge of the progress bar. Adjust as needed. */
    width: 40px; /* Adjust to your desired size. */
    height: 40px; /* Adjust to maintain the GIF's aspect ratio. */
    z-index: 100000;
}

#progress-attract {
    position: absolute;
    right: 0;
    transform: rotateY(180deg) rotate(90deg);
}

.my-nav {
    /*visibility: hidden;*/
    top: 0;
    width: 100%;
    height: 78px;
    /*background: rgba(0, 0, 0, 0.2);*/
    /*background: linear-gradient(#7180b7ff, #7180b788 80%, #00000000);*/
    background: #7180b7;
    /*background: linear-gradient(to right, #aadbe6, #5d7c9e, #010f49);*/
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    position: sticky;
    z-index: 10;
    transition: all 0.2s linear;
}

.my-nav .icon {
    margin-top: 10px;
    margin-left: 15px;
    margin-bottom: 10px;
    text-decoration: none;
    background-repeat: no-repeat;
}

.my-nav .icon img {
    width: auto;
    height: 100%;
    /*transition: 2s;*/
}

.my-navbar {
    height: 67px;
    margin-left: 20px;
    margin-right: 70px;
    margin-top: 24px;
    list-style: none;
    text-wrap: normal;
}


.my-navbar > li {
    float: left;
    width: 120px;
    height: 110%;
}

#human-practice {
    width: 250px;
}

#edu {
    width: 90px;
}

.my-navbar > li a {
    color: var(--text, var(--text, white));
    font-family: AlibabaPuHuiTi;
    font-size: 25px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    transition: color 0.15s linear;
}

.my-navbar > li a:hover {
    color: var(--text, var(--text, yellow));
}

/*a:hover {*/
/*    color: yellow;*/
/*    transition: color 0.15s linear;*/
/*}*/

.son {
    margin-top: 30px;
    /*list-style: none;*/
    list-style-image: url('../resources/pointer.png');
    list-style-position: outside;
    display: none;
    text-align: left;
    transition: all 0.3s ease-out;
    opacity: 0;
}

.bottomright {
    position: fixed;
    bottom: -10px;
    color: #010f49;
    right: -10px;
    width: 100px;
    height: 100px;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(5px);
    border-radius: 100px;
}

.bottomleft {
    position: fixed;
    bottom: 10px;
    color: #010f49;
    left: 10px;
    width: 70px;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(5px);
    border-radius: 100px;
}

#toTopButton {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 100px; /* adjust size as needed */
    height: 100px; /* adjust size as needed */
    background: none;
    border: none;
    overflow: hidden; /* hide overflow */
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    padding: 0;
    display: none;
}

#toTopButton img {
    height: 135%;
    object-fit: cover;
    /*width: auto;*/
    /*height: auto;*/
    transition: transform 0.3s ease-in-out;
}


#toTopButton:hover img:not(.clicked) {
    content: url('../resources/to-top-hover.png');
}

.clicked {
    content: url('../resources/to-top-clicked.png');
}

@keyframes shoot {
    0% {
        bottom: 10px;
        opacity: 1;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}


@media screen and (min-width: 1800px) {
    #sidebar {
        display: initial;
    }

    .my-navbar > li {
        width: 150px;
    }

    #human-practice {
        width: 280px;
    }

    .my-nav > ul > li a {
        font-size: 30px;
    }

    .my-navbar {
        margin-top: 25px;
    }

    .my-nav .icon {
        flex-basis: 240px;
        margin-left: 25px;
        margin-top: 15px;
    }

    .my-nav {
        height: 84px;
    }
}

@media screen and (max-width: 1450px) and (min-width: 1280px) {
    #sidebar {
        display: initial;
    }

    .my-navbar > li {
        width: 100px;
    }

    #human-practice {
        width: 210px;
    }

    .my-nav > ul > li a {
        font-size: 22px;
    }

    /*.my-navbar {*/
    /*    margin-top: 23px;*/
    /*}*/
    .my-nav .icon {
        flex-basis: 200px;
        margin-left: 18px;
    }

    .my-nav {
        height: 74px;
    }
}

@media screen and (max-width: 1280px) and (min-width: 1120px) {
    #sidebar {
        display: initial;
    }

    .my-navbar > li {
        width: 88px;
    }

    #human-practice {
        width: 190px;
    }

    #edu {
        width: 80px;
    }

    .my-nav > ul > li a {
        font-size: 20px;
    }

    .my-navbar {
        margin-top: 21px;
    }

    .my-nav .icon {
        flex-basis: 150px;
        margin-left: 5px;
        background-position-x: -25px;
        background-position-y: 5px;
        background-size: 130%;
    }

    .my-nav {
        height: 70px;
    }
}

@media screen and (max-width: 1130px) {
    #sidebar {
        display: initial;
    }

    .my-navbar > li {
        width: 78px;
    }

    #human-practice {
        width: 160px;
    }

    #edu {
        width: 70px;
    }

    .my-nav > ul > li a {
        font-size: 18px;
    }


    .my-navbar {
        margin-top: 15px;
        margin-left: 20px;
        margin-right: 0px;
    }

    .my-nav .icon {
        flex-basis: 0px;
        margin: 0;
    }

    .my-nav {
        height: 55px;
        justify-content: center;
    }

    .son {
        margin-top: 20px;
    }
}

/* hide the navigation */
@media screen and (max-width: 830px) {
    .my-navbar {
        display: none;
    }

    #sidebar {
        display: none;
    }

    /*.my-nav .icon {*/
    /*    align-self: center;*/
    /*    width: 100%;*/
    /*}*/

}

/*!* width *!*/
::-webkit-scrollbar {
    /*width: 10px*/
    display: none;
}

/*!* Track *!*/
/*::-webkit-scrollbar-track {*/
/*    background: linear-gradient(lawngreen, lightseagreen, midnightblue);*/
/*}*/

/*!*Handle*!*/
/*::-webkit-scrollbar-thumb {*/
/*    background: #888;*/
/*    background: rgba(0, 0, 0, 0.5);*/
/*    -webkit-backdrop-filter: blur(5px);*/
/*    backdrop-filter: blur(5px);*/
/*    border-radius: 10px;*/
/*}*/

/*!*Handle on hover*!*/
/*::-webkit-scrollbar-thumb:hover {*/
/*    background: rgba(0, 0, 0, 0.8);*/
/*    -webkit-backdrop-filter: blur(5px);*/
/*    backdrop-filter: blur(5px);*/
/*}*/

/*::-webkit-scrollbar-button {*/
/*    background: transparent;*/
/*}*/


.animated-button {
    position: relative;
    border: none;
    outline: none;
    overflow: hidden;
}

.animated-button::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #2B5D6F;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.animated-button:hover::after {
    width: 100%;
    left: 0;
}