:root {
    --md-sys-color-primary: #3d63dd;
    --md-sys-color-secondary: #A6BFF9;
    --md-sys-color-tertiary: #D0DFFF;
    --md-sys-color-error: #f7665f; 
    --md-sys-color-background: #fdfdfe;
    --md-sys-color-surface: #F8F1F6; 
    --md-sys-on-surface: #1E1F24;

    --md-ref-typeface-brand: 'Inter';
    --md-ref-typeface-plain: 'Inter';
    --md-sys-typescale-title-medium-weight: 600; 
    --md-sys-typescale-title-medium-size: 1.25rem;   
}

[data-theme="dark"]  {
    --md-sys-color-primary: #3d63dd;
    --md-sys-color-secondary: #375098;
    --md-sys-color-tertiary: #243974;
    --md-sys-color-error: #f7665f; 
    --md-sys-color-background: #111113;
    --md-sys-color-surface: #19191B;
    --md-sys-on-surface: #EEEEF0;
}

* {
    font-family: 'Inter', sans-serif;
    color: var(--md-sys-on-surface);
    transition: color 0.25s, background 0.25s;
}

body {
    min-height: 100dvh;
    overflow-x: hidden;
    display: grid;
    margin: 0;
    grid-template-columns: repeat(2, 1fr);
    box-sizing: border-box;
    background-color: var(--md-sys-color-background);
}

section#sidebar {
    width: 5rem;
    display: flex;
    flex-direction: column;
    background-color: var(--md-sys-color-surface);
    box-sizing: border-box;
    min-height: 100dvh;
    position: fixed;
    padding: 0.5rem;
}

section#sidebar > :nth-child(1) {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-sizing: border-box;
}

#logo {
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo_light, .logo_dark {
    width: 100%;
    height: 100%;
    transition: display 0.25s, opacity 0.25s;

}

[data-theme="light"] .logo_dark {
    display: none;
    opacity: 0;
}

[data-theme="dark"] .logo_light {
    display: none;
    opacity: 0;
}

#content {
    width: 100dvw;
    padding-left: 5rem;
    box-sizing: border-box;
}

.nav_btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: smaller;
    color: var(--md-sys-on-surface);
    text-decoration: none;
}

.nav_btn > p {
    margin: 0;
    margin-top: 5px;
    font-weight: 500;
    text-align: center;
}

[data-theme="dark"] .nav_btn > p {
    color: var(--md-sys-on-surface);
    font-weight: 400;
}

.nav_btn > .nav_icon {
    padding: 0.15rem 1rem;
    border-radius: 1rem;
    transition: all 0.25s;
}

.nav_btn_icon {
    padding: 1rem;
    border-radius: 1rem;
    transition: all 0.25s;
    display: flex;
    justify-content: center;
    align-items: center;
    width: min-content;
    height: min-content;
}

.nav_btn:hover > .nav_icon, .nav_btn_icon:hover {
    background-color: var(--md-sys-color-tertiary);
    font-weight: 700;
}

section#sidebar md-outlined-icon-button {
    margin: 1rem auto;
}

footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5rem;
    padding: 2rem 4rem;
}

@media (max-width: 768px) {
    footer {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 1rem;
    }
}

footer .logo_light, footer .logo_dark {
    height: 3rem;
    width: 3rem;
}

footer #footer_summary {
    grid-column: 1 / 3;
}

@media (max-width: 768px) {
    footer #footer_summary {
        grid-column: 1 / 2;
    }
}

#footer_summary p {
    text-align: justify;
}

footer h3 {
    margin: 0;
}

footer ul {
    display: grid;
    list-style-type: none;
    padding: 0;
    gap: 0.5rem;
}

footer a {
    color: var(--md-sys-color-primary);
    transition: filter 0.25s;
}

footer a:hover {
    filter: brightness(0.75);
}