body,
html {height: 100%!important}

html {
    scroll-behavior: smooth;
    --border-radius: 5px;
}

html {
    --back: #f3f3f3;
    --back-rgba: #f3efed80;
    --head: #e26868;
    --menu: #cdc5ba;
    --active: #c4ad91;
    --scroll: #a08164;
    --font: #0e0e0e;
    --subtitle: #555555;
    --accent: #ff4b4b;
    --secondary: #ea8e32;
    --box-shadow: #342b25aa;
}

header,
footer,
#mm {
    --back: #0e0e0e;
    --head: #0e0e0e;
    --font: #f3f3f3;
    --subtitle: #aaaaaa;
}

body {
    background-color: var(--back);
    margin: 0
}

body * {
    box-sizing: border-box;
}

body.fixed {overflow: hidden!important}

@font-face {
    font-family: Basic;
    src: url('/inserts/fonts/Basic.ttf');
    font-display: fallback
}

@font-face {
    font-family: JosefinSans;
    src: url('/inserts/fonts/JosefinSans.ttf');
}

@media (prefers-reduced-motion: reduce) {html {scroll-behavior: auto;}}

h1,
h2,
h3,
h5,
h6,
p {color: var(--font)}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "JosefinSans";
    font-weight: 600;
    scroll-margin-top: 25px;
}

h2 {
    font-size: 2.75rem;
    font-weight: 300;
    margin: 0;
    color: var(--secondary);
}
h2:first-of-type {margin-top: 0}
@media only screen and (max-width: 500px) {h2 {font-size: 2rem}}

h3 {
    font-size: 1.5rem;
    margin: 25px 0
}

h4 {
    color: var(--secondary);
    font-style: italic;
}

p {line-height: 1.5em}

a h2:hover,
a p:hover,
p a:hover {color: var(--accent)}

p,
li,
text,
span,
label,
table {
    font-family: "Basic";
    font-size: 1rem;
    color: var(--font)
}

a {
    font-family: "Basic";
    font-size: 1rem;
}

#content a p,
#content p a,
#content span a,
#content li a,
#content .li a,
table a,
.tracklist a {
    text-decoration: underline;
    color: var(--font)
}

#content p a:hover,
#content span a:hover,
#content li a:hover,
#content .li a:hover,
table a:hover,
.tracklist a:hover {
    text-decoration: underline;
    color: var(--accent)
}

#content p a:active,
#content span a:active {
    text-decoration: none;
    color: var(--accent)
}

footer a,
#content a h2,
#content a h3,
#content a:active {text-decoration: none!important;}

header a {text-decoration: none;}

.img-round {border-radius: var(--border-radius)}

.button-div {
    background-color: var(--font);
    clip-path: polygon(
        0 0,
        calc(100% - 5px) 0,
        100% 100%,
        5px 100%
    );
    padding: 2px;
    display: inline-block;
    transition: .2s ease-in-out
}

button {
    cursor: pointer;
    border: none;
    font-family: "Basic";
    padding: 12.5px 20px;
    font-size: 1rem;
    background: var(--back);
    transition: .2s;
    position: relative;
    display: block;
    clip-path: polygon(
        0 0,
        calc(100% - 5px) 0,
        100% 100%,
        5px 100%
    );

    a {
        position: relative;
        background-color: transparent;
        color: var(--font);
        display: block;
        text-decoration: none;
    }
}

button,
button:hover {text-decoration: none}

.button-div:hover,
.button-div:hover button {background: var(--accent)}

.button-div:active button {
    transition: none;
    color: var(--accent);
    
    span{color: var(--accent)}
}

.menu-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;

    svg {
        width: 45px;
        height: 45px;
        fill: var(--font);
    }
}

.menu-btn:hover {cursor: pointer}

.title {
    font-family: "JosefinSans";
    padding: 45px 0;
    margin: 0 auto;
    overflow: hidden;
    max-width: 800px;
    font-size: 4rem
}

span {
    font-family: inherit;
    font-size: inherit
}

.title.sub {padding-bottom: 1rem}

.subtitle {
    color: var(--subtitle);
    max-width: 700px;
    margin: 0 auto 45px;
    padding: 0 15px
}

.subtitle.mid {text-align: center}

.hello {
    height: 105px;
    display: flex;
    position: absolute;
    margin-left: 15px;

    a {
        display: flex;
        align-items: center;
        
        svg {
            height: 45px;
            fill: var(--font);
            stroke: var(--font)!important;
        }
    }

    h3 {
        color: var(--font);
        margin: 15px;
        transition: color .2s
    }

    a:hover h3 {
        color: var(--accent)!important;
        transition: color .2s
    }

    a:active svg {
        fill: var(--accent)!important;
        transition: none
    }

    #logo-not-a-piano {display: none}
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--back);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);
}

header {
    height: 110px;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    position: relative;

    #desk {
        display: flex;
        position: absolute!important;
        top: 0;
        right: 0;
        height: 80px;
        align-items: center;
        margin-right: 10px;

        @media only screen and (max-width:700px) {display: none}
        
        .box {
            display: flex;
            align-items: center;
            margin-right: 20px;

            .icon {
                display: block;
                border-left: solid 2px var(--active);
                border-bottom: solid 2px var(--active);
                width: 6px;
                height: 6px;
                transform: rotate(-45deg);
                margin: 0 4px 4px 0;
                transition: border-color .2s ease-in-out
            }
        }
    }

    .box a {
        font-size: 1.15rem;
        color: var(--font);
        transition: color .2s ease
    }

    .box a:hover {color: var(--accent)}

    .box a:active {text-decoration: underline}
}

.home .pop-p-home,
.about-me .pop-p-about,
.writing .pop-p-writing,
.music .pop-p-music {
    text-decoration: underline !important;
    color: var(--font);
}

#mm-button-div,
.mm-btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

#mm-button-div {
    width: 70px;
    height: 80px;
    position: absolute;
    right: 0;
    top: 0
}

@media only screen and (min-width:700px) {
    #mm-button-div {display: none}
    #mm-button-div.fixed {display: flex}
    #desk.fixed {display: none!important}
}

#mm-open.fixed {display: none}

#mm-open-svg {
    width: 25px;
    height: 25px
}

#mm-close {display: none}

#mm-close.fixed {display: flex}

#mm-close-svg {
    width: 20px;
    width: 20px
}

#mm {
    display: none;
    z-index: 200;
    background-color: var(--head);
    padding: 110px 1.5rem 0;

    a {text-align: left}

    .menu {
        box-sizing: border-box;
        max-width: 600px;
        margin: auto;
        padding: 0 0 45px;
        display: flex;
        column-gap: 5px;
        row-gap: 12px;
        flex-wrap: wrap;

        .link-main {
            display: flex;
            align-items: center;
            padding: 7.5px 0;
        }
    }
}

#mm.fixed {
    display: block;
    width: 100vw;
    height: 100vh
}

#content {
    padding: 0 1.5rem 50px;
    margin: auto
}
@media only screen and (min-width: 1400px) {
    #content {
        max-width: 1400px;
    }
}

@media only screen and (min-width:500px) {
    #content {min-height: calc(100vh - 220px)!important; box-sizing: border-box}
    .project #content {min-height: calc(100vh - 190px)!important}
}

@media only screen and (max-width:500px) {
    #content {min-height: calc(100vh - 310px)!important}
    .project #content {min-height: calc(100vh - 350px)!important}
}

::-webkit-scrollbar {width: 15px}

::-webkit-scrollbar-track {background: var(--head)}

::-webkit-scrollbar-thumb {
    background: var(--menu);
    border-radius: 50px;
    border: solid;
    border-width: 3px;
    border-color: var(--head)
}

::-webkit-scrollbar-thumb:hover {background-color: var(--active)}

::-webkit-scrollbar-thumb:active {background: var(--scroll)}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--back);
    clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
}

footer {
    width: 100%;
    display: flex;
    box-sizing: border-box;
    background-color: transparent;
    padding: 0 25px;
    position: relative;

    p {margin: 0!important}

    div {
        display: flex;
        align-items: center
    }

    .footer-left,
    .footer-right {
        gap: 25px;
        position: relative
    }

    .copy {
        font-size: 0.85rem;
        color: var(--subtitle)
    }
}

#content.fixed,
footer.fixed {
    display: none;
}

@media only screen and (min-width:500px) {
    footer {
        justify-content: space-between;
        align-items: end;
        height: 110px;

        .footer-left,
        .footer-right {
            height: 80px;
            align-items: center
        }

        .footer-right {height: 105px}
    }
}

@media only screen and (max-width:500px) {
    footer {
        height: 165px;
        flex-direction: column;
        justify-content: end;
        gap: 25px;

        .footer-right,
        .footer-left {
            flex-direction: column;
            align-items: start;
            gap: 25px;
        }

        .footer-right {padding-bottom: 15px}
    }
}