:root {
    --colorp: #a7b0c0;
    --colors: #0c0e12;
    --colora: #615ac7;
    --colorb: #11141a;
}

*{
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    color: var(--colorp);
    height: fit-content;
    user-select: none;
}

::-webkit-scrollbar{
    display: none;
}

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background-color: var(--colors);
    animation: color 25s ease-in-out infinite;
    background-size: 300% 300%;

    display: grid;
    grid-template-columns: 275px 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
    "navbar navbar"
    "sidebar main"
    "sidebar footer";
}

.limit {
    position: sticky;
    z-index: 10000;
    display: none;
    height: 1000vh;
    width: 100vh;
    background-color: black;
    font-size: 100px;
}

@media(max-width: 300px) {
    .limit {
        display: block;
    }
    nav {
        display: none !important;
    }
}

@media(min-width: 300px) {
    .limit {
        display: none;
    }
}

nav {
    z-index: 10;
    height: 65px;
    top: 0;
    position: sticky;
    grid-area: navbar;
    background-color: #14181f;
    color: white;
    backdrop-filter: blur(1rem);

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}
aside {
    z-index: 10;
    height: calc(100vh - 65px);
    top: 65px;
    position: sticky;
    align-self: start;
    grid-area: sidebar;
    background-color: #11141a;
    backdrop-filter: blur(1rem);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: 0.5s;
}

main {
    grid-area: main;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

footer {
    grid-area: footer;
    background-color: rgba(0, 0, 0, 0.25);
    color: var(--colorp);
    padding: 1em;
    font-weight: 600;
}

main p {
    margin-bottom: 100em;
}

#shownav {
    margin-left: 1rem;
    margin-right: auto;
    padding: 12px;

    background-color: var(--colors);

    outline: none;
    border: none;
    border-radius: 15px;

    display: flex;
    align-items: center;

    color: #a7b0c03b;
    font-size: 15px;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;

    transition: 0.3s;
}

#shownav:focus {
    outline: none;
}

#shownav:active {
    color: var(--colora);
}

@media(max-width: 800px) {
    body {
        grid-template-columns: 0 1fr;
    }
    aside {
        position: fixed;
        width: 275px;
        display: none;
        opacity: 0;
    }

    .show {
        animation: sidemuncul 0.5s ease-in-out forwards;
        display: flex;
    }

    .dontshow {
        animation: sidehilang 0.5s ease-in-out forwards;
        display: flex;
    }

    #shownav {
        display: flex;
    }
    #shownav:hover {
        cursor: pointer;
    }
    
}

@media(min-width: 800px) {
    #shownav {
        display: none;
    }
}

@keyframes sidemuncul {
    0% {
        transform: translateX(-275px);
        opacity: 1;
    }
    100% {
        opacity: 1;
        display: flex;
    }
}

@keyframes sidehilang {
    0% {
        opacity: 1;
    }
    100% {
        transform: translateX(-275px);
        opacity: 1;
        display: none;
    }
}



nav div {
    padding: 5px 10px 5px 10px;
    margin: 3px auto 0 3.4rem;
    justify-self: flex-start;
    background-image: linear-gradient(135deg, #7877c5, #7b7bc5, #7e7ec5, #8182c4, #8485c4, #868ac4, #898fc4, #8c94c4, #919bc4, #97a3c3, #9ea9c2, #a7b0c0);
    background-size: 300% 300%;

    border-radius: 15px;
    box-shadow: 0 0 5px var(--colorp);

    display: flex;
    align-items: center;

    color: #14181f;
    font-size: 30px;
    font-weight: 800;
    text-transform: uppercase;

    animation: moveGradient 5s ease-in-out infinite, updown 3s ease-in-out infinite;
    transition: 0.3s;

}

@keyframes moveGradient {
    0%{
        background-position: 0, 50%;
    }
    50%{
        background-position: 100%, 50%;
    }
    100%{
        background-position: 0, 50%;
    }
}

@keyframes updown {
    0%{
        transform: translateY(0px);
    }
    50%{
        transform: translateY(-3px);
    }
    100%{
        transform: translateY(0px);
    }
}

@media(max-width: 800px) {
    nav div {
        margin: 3px auto 0 0;
    }
}

@media(max-width: 680px) {
    nav div {
        display: none;
    }
}



/*search*/

#searchInput {
    padding: 12px;
    margin-right: 1rem;
    background: var(--colors);

    outline: none;
    border: none;
    border-radius: 15px;

    display: flex;
    align-items: center;

    color: var(--colorp);
    font-size: 15px;
    font-weight: 600;

    transition: 0.2s;
}

@media(max-width: 470px) {
    #searchInput {
        display: none;
    }
}



/*logout*/

#logout {
    padding: 9px;
    margin-right: 1rem;
    background-color: var(--colors);

    outline: none;
    border: none;
    border-radius: 15px;

    display: flex;
    align-items: center;

    color: #a7b0c03b;
    font-size: 15px;
    font-weight: 600;

    transition: 0.3s;
    -webkit-tap-highlight-color: transparent;
}

#log-out {
    margin-left: 5px;
    color: #a7b0c03b;
    transition: 0.3s;
}

#logout:hover {
    cursor: pointer;
    color: rgb(189, 46, 46);
}

#logout:hover span {
    color: rgb(189, 46, 46);
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(1rem);
    z-index: 999;
}

#popup {
    display: none;
    flex-direction: row;
    align-items: center;
    position: fixed;
    flex-wrap: wrap;
    font-weight: 600;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 220px;
    padding: 2rem;
    border-radius: 30px;

    background-color: var(--colors);

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#popup button {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    background-color: var(--colors);
    outline: none;
    border-style: solid;
    border-width: 2px;
    border-color: #ffffff09;
    transition: 0.3s;
    font-size: 1rem;
    font-weight: 600;
    color: #6a6a6b;
}

#closebtn {
    margin-left: 0.75rem;
}

#closebtn:hover {
    cursor: pointer;
    transform: translateY(-3px);
    border-color: var(--colora);
    color: var(--colora);
}

#logoutbtn:hover {
    cursor: pointer;
    transform: translateY(-3px);
    border-color: rgb(189, 46, 46);
    color: rgb(189, 46, 46);
}
