@keyframes loadpage {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

body {
    background-color: rgb(0, 28, 50);
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

body::after {
    animation: loadpage 3000ms ease;
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgb(0, 28, 50);
    left: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: #33CC88; 
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #33EEAA;
}

#nav {
    position: fixed;
    color: white;
    width: 20%;
    list-style-type: none;
    background-color: rgb(0, 25, 45);
    height: 100vh;
    border-right: 2px solid gray;
    top: 70px;
    overflow-y: scroll;
}

.nav {
    padding: 10px;
    display: block;
    position: relative;
    border-radius: 8px;
    text-align: left;
    margin: 10px 10px 10px 10px;
    height: 20px;
    font-weight: bold;
    font-size: 17px;
    text-decoration: none;
    color: white;
    transition: 150ms ease;
    cursor: pointer;
    border: 2px solid #00FFF030;
}

.nav::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    animation: loadback 400ms ease;
    width: 0%;
    margin-left: 0.7%;
    background-color: #33EEAA;
    border-radius: 10px;
}

@keyframes load {
    from {
        width: 0%;
    }
    to {
        width: 98.6%;
    }
}

@keyframes loadback {
    from {
        width: 98.6%;
    }
    to {
        width: 0%;
    }
}

.nav:hover {
    background-color: #00FFF030;
}

.nav:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    animation: load 300ms ease;
    width: 98.6%;
    margin-left: 0.7%;
    background-color: #33EEAA;
    border-radius: 10px;
}

.active {
    background-color: #00FFF030;
    border: 3px solid #33EEAA;
}

.active::after {
    content: "";
    display: none;
}

#name {
    color: white;
    margin: 20px;
}

header {
    border-bottom: 1px solid gray;
    height: 70px;
    background-color:  rgb(0, 28, 50);
    top: 0;
    left: 0;
    width: 100%;
    position: absolute;
}

.back_top {
    margin-top: 30px;
    margin-bottom: 50px;
    text-align: center;
}

.coins {
    width: 100px;
    padding: 15px;
    background-color: #00ff8c45;
    right: 1%;
    top: 7px;
    position: absolute;
    border-radius: 8px;
    text-align: center;
    text-justify: center;
    font-weight: bold;
    color: #00ff8c;
    border: 1.4px solid #00ff8c;
    font-size: 20px;
}

@keyframes coin {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.5;
    }
}

@keyframes coinback {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 0;
    }
}

.coins::after {
    animation: coinback 300ms ease;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #00ff8c50;
    border-radius: 8px;
    opacity: 0;
}

.coins:hover::after {
    animation: coin 300ms ease;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #00ff8c50;
    border-radius: 8px;
    opacity: 0.5;
}

.pgcontent {
    height: calc(100% - 70px);
    width: 80%;
    position: fixed;
    right: 0;
    bottom: 0;
    color: white;
    display: grid;
    overflow-y: scroll;
}

.pgcontent h1 {
    margin-left: 50px;
    font-size: 40px;
}

#emptypg {
    text-align: center;
    font-size: 60px;
    opacity: 0.3;
}

.nav_bottom {
    margin-bottom: 100px;
}

/* RANGI.HTML */

.rangi_page .rangi {
    position: absolute;
    top: 100px;
    left: 20px;
    width: 95%;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-y: scroll;
}
.rangi_page .ranga {
    border: 3px solid #33EEAA;
    border-radius: 8px;
    font-weight: bold;
    font-size: 30px;
    text-decoration: none;
    text-align: center;
    list-style-type: none;
    padding: 20px 0;
}
.rangi_page .ranga a {
    background-color: #33EEAA;
    font-weight: bold;
    border-radius: 5px;
    padding: 5px 20px;
}