main {
    display: flex;
    flex-direction: column;
}

main div {
    width: 100%;
}

nav ul, footer ul {
    display: flex;
    list-style: none;
    flex-flow: wrap;
    gap: 1.6rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 0;
    margin: 0;
    justify-content: center;
}

nav ul a, footer ul a {
    text-decoration: none;
    font-weight: 900;
}

nav ul a:hover, footer ul a:hover {
    text-decoration: underline solid 1px var(--tx);
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: var(--tx);
    text-decoration-thickness: 1px;
    color: var(--tx);
    background: none;
    font-weight: 900;
}

header h1, .subtitle {
    width: 100%;
    display: inline-block;
    text-align: center;
}

.subtitle {
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.section {
    border: solid 2px var(--bu);
    border-top: none;
    padding: 1.6rem;
}

.section:nth-child(-n + 1) {
    border-top: solid 2px var(--bu);
}

#booru:hover {
    color: var(--a1);
}

#wiki:hover {
    color: var(--a3);
}

header, footer {
    display: flex;
    flex-flow: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

#top-nav {
    position: sticky;
    z-index: 10000;
    top: 0;
    background: var(--bl);
    border-bottom: solid 2px var(--bu);
    backdrop-filter: blur(4px);
}

#call {
    background: var(--a1);
    border: none;
    color: var(--bg);
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    padding: 0.6rem;
    border-radius: 0.26rem;
    list-style-type: none;
}

#call:hover {
    background: var(--a3);
    font-weight: 900;
    cursor: pointer;
}

details[open] #call {
    background: var(--bb);
    color: var(--a1);
    font-weight: 900;
}

details {
    position: relative;
}

#socials-drop {
    position: absolute;
    background: var(--bu);
    border: solid 1px var(--bb);
    left: 1.6rem;
    padding: 0;
    flex-direction: column;
    gap: 0;
    z-index: 10001;
    margin-top: 10px;
}

#socials-drop::before {
    content: "";
    position: absolute;
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent var(--bb) transparent;
    transform: rotate(0deg);
    top: 0;
    left: 0.9rem;
    margin-top: -10px;
}

#socials-drop a {
    width: 3rem;
    height: 3rem;
    display: block;
}

#socials-drop a:hover {
    background: var(--bb);
    border-radius: 0;
}

footer {
    flex-direction: column;
    padding-bottom: 1rem;
}

.icons {
    list-style-type: none;
    margin: 0.2em;
    display: flex;
    width: fit-content;
    padding: 0;
    gap: 0.6em;
}

.blu:hover {
    color: var(--a3);
    background: none;
}

.org:hover {
    color: var(--a2);
    background: none;
}

.grn:hover {
    color: var(--a1);
    background: none;
}

.projects {
    list-style-type: none;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-content: space-between;
    padding: 0;
    margin: 0;
    gap: 1rem;
    & :hover {
        background: var(--bb);
        border-radius: 0;
    }
}

.projects li {
    border: solid 1px var(--bb);
    background: var(--bu);
    min-width: calc(50% - 0.5rem);
    padding-right: 1rem;
    padding-bottom: 1rem;
}

.projects a {
    display: block;
    width: calc(100% - 1rem + 2px);
    height: calc(100% - 1rem + 2px);
    top: -1px;
    left: -1px;
    box-sizing: content-box;
    position: relative;
    text-decoration: none;
    font-weight: normal;
    padding: 1rem;
}

.projects a:hover {
    background: transparent;
}

.projects li:hover h4 {
    text-decoration-line: underline;
    text-decoration-color: var(--tx);
    text-decoration-thickness: 1px;
    text-decoration-style: solid;
}

.projects li h4 {
    margin: 0;
    color: var(--a1);
}

.projects p {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

header {
    padding-top: 1rem;
}

#to-top {
    position: fixed;
    right: 0.6rem;
    bottom: 0.6rem;
    background: var(--a1);
    color: var(--bg);
    border-radius: 0.26rem;
    height: 2rem;
    width: 2rem;
}

#to-top svg {
    padding-top: 0.5rem;
    padding-left: 0.36rem;
}

#title {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.266rem;
}

@media (max-width: 680px) {
    #title {
        display: none;
    }

    .projects li {
        width: 100%;
    }

    .section {
        border-left: none;
        border-right: none;
    }

    header {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body {
        width: fit-content;
    }
}
