*,::after,::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html {
    overflow-y: scroll !important;
    overflow-x: visible !important;
}

a {
    color: #78baf8;
}

nav {

    background-color:rgb(44, 45, 60);
    width:60px;
    height:100%;

    position:fixed;
    display:flex;

    align-items: center;
    justify-content: center;
    z-index: 3;
}

#navcontents {
    z-index: 2 !important;
    display:flex;
    flex-direction: column;
    align-items: center;

}

#navmenu {
    z-index: 2 !important;
    position:fixed;
    top:0;
    left:-100vw;
    right:0;
    width:calc(100vw - 60px);
    height:100%;

    background-color: rgba(59, 59, 59, 0.844);
    display:flex;
    flex-direction: column;
    justify-content: center;
    padding:30px;
}
#navmenu h2{
    font-size: 2rem;
}
#navmenu h2, #navmenu a {
    color:white;
    width:fit-content;
}

#navmenu a  {
    font-size: 1rem;
}

.navappear {
    animation: 0.8s navappearanim ease-out;
    animation-fill-mode: forwards;
    outline: 1px solid transparent;
}
@keyframes navappearanim {
    0% {
        left:-100vw;
    }
    100%{
        left:60px;
    }
}
.navdisappear {
    animation: 1s navdisappearanim;
    animation-fill-mode: forwards;
    outline: 1px solid transparent;
}

@keyframes navdisappearanim {
    0% {
        left: 60px;
    }
    100% {
        left: -100vw;
    }
}


.dropdown h2:hover {
    cursor: pointer;
}

.dropdowndisapp {
}

.dropdown-content {
    display:flex;
    flex-direction: column;
}

@media only screen and (max-width:700px) {
    nav {
        position: fixed;
        top:0;
        left:0;
        right:0;
        height:60px;
        width:auto;
        
        align-items: center;
        padding: 0 10px;
    }
    #navcontents{
        flex-direction: row;
        justify-content: space-between; 
        padding: 0 10px; 
        width: 100%; /* Add this line */
    }

    #navmenu{
        left: 0 !important;
        top:-100vh;
        height:calc(100vh - 60px);
        width:100%;
    }

    @keyframes navappearanim {
        100%{
            top:60px;
        }
    }

    @keyframes navdisappearanim {
        0% {
            top: 60px; /* Start from the current position */
        }
        100% {
            top: -100vh;
        }
    }
}




body {
    width:100%;
    height:auto;
    position: absolute;
    z-index:0 !important;
    background-color: rgb(75, 77, 101);

    display: flex;
    overflow-x: visible;
}


main{
    margin: 0px 0px 0px 60px;
    width:100%;
    height:auto;

    z-index:1 !important;
    background-color: transparent;

    display:flex;
    flex-direction: column;
    align-items: center;
}

.title{
    width: 100%;
    font-size: 2rem;

    display:flex;
    justify-content:center;
    margin: 0px 30px 0px 30px;
    padding:20px;
    
    background-color: rgb(65, 95, 215);
    color: white;
    
}

.undertext{
    width: 100%;
    font-size: 1rem;

    display:flex;
    justify-content:center;
    margin: 0px 30px 30px 30px;
    padding:20px;
    
    background-color: rgb(43, 64, 146);
    color: white;
    
}

.article {
    padding: 0px 0px 50px 0px;
}

.article p{
    text-align: justify;
    font-size: 1.15rem;
    font-weight: 1px;
    color:white;

    max-width: 700px;
    padding: 10px 40px;
    overflow-y: auto !important;
    white-space: pre-wrap; 

    width:100%;
    height:auto;
}

.article p b{
    font-weight: 0px;
    font-size: 1.8rem;
}

.article p mark{
    color: white;
    background: rgb(124, 134, 176);

}


@media only screen and (max-width:700px) {
    body {
        flex-direction: column;
    }
    main {
        margin:60px 0px 0px 0px;
    }
}


footer {
    z-index:3 !important;
    position: fixed;
    bottom:0;
    width:100%;
    height:30px;
    padding:30px;
    background-color: rgba(55,56,59,0.3); 
    border: rgba(163, 144, 144, 0.2);

    display:flex;
    justify-content: center;
    align-items: center;
    color: #f5f5f5;
}







#indexmain {
    z-index: 5 !important;
    position: fixed;
    display: flex;
    flex-direction: row;
    background-color: transparent;
    height: 100%;
    width:100%;    
    overflow: hidden;
}

#leftside {
    color: rgb(255, 255, 255);
    font-size: 5rem;
    font-weight:bolder;
    background-color: rgb(44, 45, 60);
    
    
    height: 100%;
    width: 50%;
    z-index: 2 !important;

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

}

.FlowUni {
    font-size: 4.5rem;
    overflow: visible;
    animation: 1s ease-in-out 0s downSlide;
}

@keyframes downSlide {
    0% {
        transform: translateY(-30%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
    }
}

.undertitle {
    text-align: center;
    font-weight: lighter;
    font-size: 1.7rem;
    overflow: visible;
    animation: 1s ease-in-out 0s downSlide;
}

@keyframes appear {
    0% {
        opacity: 0;
    }
    100% {
    }
}

.startslide {
    animation: 1.5s forwards slideleft;
}

@keyframes slideleft {
    10% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(-100%);
    }
}

.leftfade {
    display:none !important;
    position:absolute;
}


#rightside {
    height: 100%;
    width: 50%;
    z-index:1 !important;
    background-color: white;

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

    color:rgb(0, 0, 0);
    font-size: 2.3rem;
    gap:30px;
}

.buttonlink {
    width:300px;
    height:50px;
    background-color: rgb(65, 95, 215);
    border-radius:12px;
    border:none;

    display:flex;
    align-items: center;
    justify-content: center;
    cursor:pointer;

    text-decoration: none;
    color: rgb(255, 255, 255);
    transition: color 0.1s;
    font-size: 25px;
}

.buttonlink:hover{
    color: rgb(178, 196, 255);
}

.rightfade{
    animation: 1.5s rightdisappear;
}

@keyframes rightdisappear {
    0% {
        opacity:100%;
    }
    100%{
        opacity:0%;
    }
}

.rightgone {
    display: none !important;
    position: absolute !important;
}

.indexmaindeleted{
    position: absolute !important;
    margin-top: -9999px;
}


@media only screen and (max-width:700px) {
    #indexmain {
        flex-direction: column;
    }
    #leftside, #rightside {
        width:100%;
    }
    #leftside {
        font-size: 6rem;
    }
    #rightside{
        font-size: 2rem;
    }
    .rightfade{
        animation: 1.5s forwards slideleft;
    }
    .navbounce{
        animation: 0s;
    }
}
