@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-color: #063895;
    --onprimary-color: #e9e9f0;
    --onprimary-secondary-color: #b9b9c0;
    --lightest-primary-color: #3d71c5;
    --lighter-primary-color: #175ed0;
    --onsurface-primary-color: #0c48a9;
    --darker-primary-color: #022c71;
    --darkest-primary-color: #00173c;
    --main-color: #e7e7ec;
    --lighter-main-color: #ebebef;
    --secondary-main-color: #f1f1f7;
    --tertiary-main-color: #fdfdfd;
    --text-color: #333357;
    --secondary-text-color: #49494f;
    --tertiary-text-color: #52525f;
    --lightest-text-color: #92929f;
    --darkest-accent-color: #009c70;
    --darker-accent-color: #00bcb0; 
    --accent-color: #00ccbe; 
    --hi-accent-color: #0ef0e1; 
    --shadow-color: #e7e7e7cc;
    --lighter-shadow-color: #f7f7f7bb;
}

.darkmode {
    --primary-color: #0444aa;
    --onprimary-color: #e9e9f0;
    --onprimary-secondary-color: #b9b9c0;
    --lightest-primary-color: #8db1eb;
    --lighter-primary-color: #175ed0;
    --onsurface-primary-color: #0c48a9;
    --darker-primary-color: #022c71;
    --darkest-primary-color: #00173c;
    --main-color: #252526;
    --lighter-main-color: #333337;
    --secondary-main-color: #414142;
    --tertiary-main-color: #5d5d5e;
    --text-color: #f0f0f0;
    --secondary-text-color: #d9d9d9;
    --tertiary-text-color: #c0c0cf;
    --lightest-text-color: #90909f;
    --darkest-accent-color: #009c70;
    --darker-accent-color: #00bcb0; 
    --accent-color: #00ccbe; 
    --hi-accent-color: #0ef0e1; 
    --shadow-color: #373737aa;
    --lighter-shadow-color: #575757bb;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 10pt;
    font-family: Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    background-color: var(--main-color);
    margin: auto;
}

nav {
    width: 100vw;
    height: 90px;
    background-color: var(--tertiary-main-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 8;
}

.nav-fill {
    height: 60px;
}

.links-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    margin-right: 2rem;
}

nav a {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

nav a:hover {
    background-color: var(--secondary-main-color);
}

nav .home-link {
    margin-right: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.home-link img {
    height: 60px;
    margin-left: 30px;
}

.deep {
    margin-left: 12px;
    color: rgba(253, 253, 253);
    font-size: 1.5rem;   
}

nav svg {
    fill: var(--text-color)
}

#sidebar-active {
    display: none;
}

.open-sidebar-button, .close-sidebar-button {
    padding: 20px;
    display: none;
}

@media(min-width: 501px) {
    #theme-label {
        display: none;
    }
}

@media(max-width: 500px) {

    #theme-label {
        display: block;
    }
    
    .links-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 60vw;
        background-color: var(--lighter-primary-color);
        box-shadow: -5px 0 5px rgba(0,0,0,0.2);
        transition: 0.4s ease-out;
    }
    nav a {
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }
    .open-sidebar-button, .close-sidebar-button {
        display: block;
    }

    #sidebar-active:checked ~ .links-container {
        right:0 ;
    }

    #sidebar-active:checked ~ #overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
    }
}

#theme-switch{
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#theme-switch:hover {
    cursor: pointer;
    background-color: var(--secondary-main-color);
}

#theme-switch svg {
    fill: var(--text-color);
}

#theme-switch svg:last-child {
    display: none;
}

.darkmode #theme-switch svg:first-child {
    display: none;
}

.darkmode #theme-switch svg:last-child {
    display: block;
}