* {
    box-sizing: border-box;

    font-family: 'Roboto', sans-serif;
    color: inherit;
}

body {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;

    cursor: none;
    overflow: hidden;
    background: #000;
    /* background-image: repeating-linear-gradient(180deg, rgba(97, 97, 97, 0.1) 0px, rgba(97, 97, 97, 0.1) 2px, transparent 2px, transparent 4px), linear-gradient(225deg, rgb(15, 15, 15), rgb(15, 15, 15)); */
    font-size: 2rem;
    color: #dbdbdb;
}

button,
a {
    display: flex;

    border: none;
    gap: 0.25em;
    padding: 0.5em;

    cursor: none;
    background: transparent;
    text-decoration: none;
}

button *,
a * {
    position: relative;
    z-index: -100;
}

i {
    color: inherit;
}

/* ===== cousor ===== */
.cursor,
.cursor-border {
    position: absolute;
    pointer-events: none;

    width: 0.5em;
    height: 0.5em;
}

.cursor {
    border-radius: 50%;

    background: #dbdbdb;
}

.cursor-border {
    border: 0.1em solid #dbdbdb;
    border-radius: 50%;
    padding: 2em;

    transition: all 0.2s ease-out;
}

.cursor-border.on-focus {
    border-radius: 0;
    padding: 0.5em;
}

/* ===== Navbar ===== */
.navbar {
    position: absolute;
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    box-sizing: border-box;
    gap: 1em;
    width: 100%;
    padding: 1.5em;
}

.navbar .name {
    flex: 1;

    margin: 0;

    font-weight: bolder;
    text-wrap: nowrap;
    text-align: center;
}

.navbar .center {
    flex: 1;

    margin: 0;

    font-size: 0.75em;
    text-align: center;
}

.navbar .center span {
    margin: 0 0.25em;

    text-wrap: nowrap;
}

.navbar .right {
    display: flex;
    justify-content: center;
    flex: 1;
}

/* ===== Projects ===== */
.projects {
    position: absolute;
    top: 50%;
    display: flex;
    flex-direction: column;

    width: 35%;
}

.projects button {
    display: flex;

    gap: 0.5em;
    padding: 0.25em 0.5em;

    text-align: left;
    font-size: 1em;
}

.projects button .num,
.projects button .year {
    flex: 1;
}

.projects button .name {
    display: flex;
    flex: 4;
}

.projects button .year {
    text-align: right;
}

/* ===== Overlay ===== */
.project {
    display: block;
    cursor: auto;
    transform: translateY(200%) rotate(20deg);
    transition: 0.5s;
    transform-origin: bottom center;
    will-change: bottom;
    left: auto;
    top: auto;
    right: 0;
    bottom: 0;

    border: none;
    max-width: 125rem;
    height: calc(100% - 5em);
    padding: 0 2em;

    color: #000;
    background: #fff;
}

.project:popover-open {
    transform: rotate(0);
}

.project:hover+.cursor {
    display: none;
}

.project a {
    cursor: pointer;
}

.project header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 4em 0;

    width: 100%;
}

.project button {
    cursor: pointer;
}

.project header .left {
    flex: 1;
}

.project header .left h1 {
    margin: 0;

    color: #000;
}

.project header .left p {
    margin: 0;

    color: #000;
}

.project header .right {
    flex: 2;
}

.project header .right button {
    color: #ff7f7f;
    font-size: 1em;
}

.project .description {
    display: flex;
    justify-content: space-between;

    width: 100%;
    padding: 1em 0 4em 0;
}

.project .description .links {
    flex: 1;
}

.project .description p {
    flex: 2;
}

.project .thumbnail {
    width: 100%;
    max-height: 100em;
}

.project .md {
    img {
        max-width: 100%;
    }

    pre code {
        border-radius: 1em;
    }

    .float-right {
        float: right;
        padding-left: 1.5em;
    }

    a {
        display: inline-block;

        padding: 0;

        color: #ff7f7f;
        text-decoration: underline;
    }
}

@media (max-width: 75rem) {
    .project {
        font-size: 1rem;
    }
}

@media (max-width: 475px) {
    .navbar .right {
        flex-wrap: wrap;
    }
}
