@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

:root {
    --light-blue: rgb(101, 190, 235);
    --dark-blue: rgb(17, 129, 196);
    --background: rgb(33, 37, 41);
    --text-color: rgb(218, 218, 218);
}

body, html {
    overflow-x: hidden;
    /* animation: hide-scroll 3s;
    animation-fill-mode: forwards;  */
}

body {
    margin: 0;
    background: var(--background); 
    font-family: "Poppins", sans-serif;
    color: var(--text-color); 
    background-size: 50px 50px;
    background-image: radial-gradient(circle, rgb(255, 255, 255, 0.5) 1px, rgba(0, 0, 0, 0) 0px);
    animation: animated-texture 100s linear infinite;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation Bar */
nav {
    padding-right: 15px;
    height: 50px;
    line-height: 50px;
    background-color: var(--background);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2), 0 1px 15px 0 rgb(0, 0, 0);
    margin-bottom: 15px;
    display: flex;
    flex-direction: row;
}

.nav-links {
    float: right;
    /* transform: translateX(0); */
}

nav .nav-links {
    background: rgb(29, 32, 36);
    float: right;
    transform: translateX(-200%);
    transition: 300ms;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin-top: 50px;
    width: 25vw; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 50px;
    z-index: 500 
}

nav .nav-links .nav-link {
    text-align: right;
    font-size: 16px;
    z-index: 5;
}

.nav-logo {
    /* float: right; */
    width: 2.5rem;
    margin-top: 3px;
    margin-left: 10px;
    cursor: pointer;
}

.nav-link {
    display: inline-block;
    position: relative;
    text-decoration: none;
    color: var(--text-color);
    padding: 0 5px;
    margin: 0 5px;
    transition: all 300ms ease;
}

.nav-link:hover {
    color: var(--dark-blue);
}

.nav-link:hover::before {
    width: 100%
}

.selected-nav-link {
    color: var(--text-color);
    font-weight: bold;
    background-color: var(--dark-blue);
}

.selected-nav-link:hover {
    color: var(--text-color)
}

.nav-link-icon {
    width: 1.5rem;
    margin-top: -5px;
    margin-right: 5px;
    margin-left: 3px;
    vertical-align: middle;
}

.bar-container {
    /* float: left; */
    margin-top: 7px;
    margin-left: 7px;
}

.bar-container:hover {
    cursor: pointer;
}

.top-bar, .mid-bar, .bottom-bar {
    width: 33px;
    height: 5px;
    background: var(--text-color);
    border-radius: 10px;
    margin: 5px 0;
    transition: 400ms;
    z-index: 5;
}

.selected-bar-container {
    margin-top: 10px
}

.selected-bar-container .top-bar {
    transform: rotate(-45deg) translate(0, 7px)
}

.selected-bar-container .mid-bar {
    display: none;
}

.selected-bar-container .bottom-bar {
    transform: rotate(45deg) translate(0, -7px);
}

/* Utils */
.text-center {
    text-align: center;
}

.rounded {
    border-radius: 50%;
}

.center {
    margin-left: auto !important;
    margin-right: auto !important;
}

.center-x {
    display: grid;
    justify-content: center;
    grid-auto-flow: row
    /* margin-left: auto !important;
    margin-right: auto !important; */
}

.center-y {
    display: grid;
    height: 100%;
    align-items: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.ml-1 {
    margin-left: 0.5rem;
}

.ml-2 {
    margin-left: 2rem;
}

.ml-3 {
    margin-left: 3rem;
}

.mr-1 {
    margin-right: 0.5rem;
}

.mr-2 {
    margin-right: 2rem;
}

.mr-3 {
    margin-right: 3rem;
}

.spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 100px;
    height: 100px;
    margin: -76px 0 0 -76px;
    border: 16px solid #9a9a9a;
    border-radius: 50%;
    border-top: 16px solid var(--dark-blue);
    animation: spin 1s linear infinite;
    transition: all 300ms;
    opacity: 0;
}

/* Footer */
footer {
    position:relative;
    margin-top: auto;
    bottom:0;
    width:100%;
    height: 50px;
    line-height: 50px;
    background-color: rgb(33, 37, 41);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2), 0 1px 15px 0 rgb(0, 0, 0);
}

footer .nav-links {
    margin-right: 10px;
}

/* Animations */
@keyframes spin {
    0% {  transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes animated-texture {
    from {
        background-position: 0 0;
      }
    
      to {
        background-position: 100% 0%;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    body {
        background-image: radial-gradient(circle, rgb(255, 255, 255, 0.5) 1.5px, rgba(0, 0, 0, 0) 0px);
        animation: animated-texture 30s linear infinite;
    }

    .nav-link-icon {
        /* display: none; */
        width: 2rem;
    }

    nav .nav-links {
        width: 100%;
    }

    nav .nav-links .nav-link {
        text-align: center;
    }
} 