::-webkit-scrollbar{
    display: none;
}
:root {
    --bg: rgb(255, 241, 214);
    --ink: black;
    --wit: white;
    --red: red;
    --yelo: rgb(255, 190, 0);
    --blu: blue;
}
body {
    display: flex;
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    color: black;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
}
a {
    color: inherit;
    text-decoration: none;
    transition: color linear 0.2s;
}
a:hover, a:active {
    color: white;
}
.arrow {
    position: absolute;
    top: 0;
    left: 0;
    margin: 50px;
    transition: filter ease-in-out 0.1s;
    clip-path: inset(0 8px 0 0);
    z-index: 10;
}
.arrow:hover, .arrow:active {
    filter: invert(100%);
}
.social {
    position: absolute;
    text-align: right;
    font-size: 12px;
    right: 50px;
    top: 0;
    margin-top: 48px;
    z-index: 10;
}
.contact {
    position: absolute;
    text-align: right;
    font-size: 12px;
    right: 50px;
    bottom: 0;
    margin-bottom: 50px;
    padding-bottom: 4px;
    z-index: 10;
    cursor: pointer;
    transition: ease-in-out .15s;
}
.contact::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100vw;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--ink);
    clip-path: inset(0 0 0 100px);
    pointer-events: none;
}
.contact:hover {
    text-shadow: 0 0 10px var(--ink);
}
.about {
    position: absolute;
    text-align: left;
    font-size: 12px;
    left: 50px;
    bottom: 50px;
    padding-bottom: 4px;
    z-index: 10;
}
.scene {
    z-index: 1;
}
.card {
    position: relative;
    width: 160px;
    height: 185px;
    background: black;
    overflow: hidden;
    box-sizing: border-box;
    transition:
        width 0.6s ease-in-out,
        height 0.6s ease-in-out,
        transform 0.6s ease-in-out;
}
.card.spin {
    width: 300px;
    max-height: 65vh;
    transform: rotateZ(180deg);
}
.card-front, .card-back {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    transition: opacity 0.6s ease-in-out;
}
.card-front {
    opacity: 1;
    pointer-events: auto;
}
.card-back {
    opacity: 0;
    pointer-events: none;
}
.card.spin .card-front {
    opacity: 0;
    pointer-events: none;
}
.card.spin .card-back {
    opacity: 1;
    pointer-events: auto;
}
.card-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}
.theme-row {
    padding: 5px 8px;
    font-size: 14px;
    color: var(--wit);
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    transition: opacity ease-in-out 0.15s;
    text-align: right;
}
.theme-row:hover, .theme-row:active {
    opacity: 0.5;
}
.theme-line {
    height: 1px;
    margin: 0 0px;
    background: white;
    opacity: .5;
    flex-shrink: 0;
}
.card-back {
    display: flex;
    transform: rotateZ(180deg);
    flex-direction: column;
    color: var(--wit);
}
.close {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 22px;
    color: var(--wit);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity ease-in-out 0.15s;
    line-height: 1;
    z-index: 2;
}
.close:hover, .close:active {
    opacity: 1;
}
.back-head {
    flex-shrink: 0;
    padding: 10px 10px 10px;
    border-bottom: 1px dashed white;
}
.back-title {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: var(--wit);
}
.back-desc {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.65);
}
.projects {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.project {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-bottom: 1px dashed var(--bg);
    background: linear-gradient(90deg, rgba(190,138,64,0) 70%, blue 102%);
}
.project-photo {
    flex-shrink: 0;
    width: 100%;
    height: 85px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
}
.project-info {
    box-sizing: border-box;
    padding: 12px 10px 20px;
}
.project-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: bold;
    color: var(--wit);
}
.project-date {
    font-size: 11px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.65);
    margin-left: 8px;
}
.project-text {
    margin: 0;
    font-size: 12px;
    line-height: 17px;
    color: var(--wit);
}
.project-link {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    width: fit-content;
    color: var(--wit);
}
.project-link:hover, .project-link:active {
    opacity: 0.6;
}

@media (max-width: 700px) {
    .social {
        display: none;
    }
    .arrow {
        margin: 10px;
        width: 20px;
        height: 20px;
        clip-path: inset(0 6px 0 0);
    }
    .contact {
        right: 10px;
        margin-bottom: 10px;
    }
    .about {
        left: 10px;
        bottom: 10px;
    }
    .scene {
        transform: scale(0.86);
    }
}
