* { box-sizing: border-box; } :root { --text-color: #cccccc; --text-color-highlight: #ffffff; scroll-behavior: smooth; overscroll-behavior-y: contain; } html { font-family: system-ui, sans-serif; font-weight: normal; color: var(--text-color); } body { display: flex; flex-direction: row; justify-content: start; align-items: start; color: var(--text-color); background-image: url("/img/bg.jpg"); background-repeat: no-repeat; background-size: cover; background-blend-mode: darken; background-color: rgba(0, 0, 0, 0.65); background-attachment: fixed; background-position: center; overflow-y: auto; } .text-center { text-align: center; } nav { padding-block: 0.5rem; background-color: #232323; width: 2rem; height: 150vh; display: flex; position: fixed; flex-direction: column; justify-content: start; padding-top: 10%; overflow: clip; } nav a { writing-mode: tb-rl; transform: rotate(-180deg); color: #cccccc; padding-block: 0.2rem; padding-inline: 0.5rem; transition: background-color 0.2s, color 0.2s; } nav a.active { background-color: rgba(255,255,255, 0.1); color: var(--text-color-highlight); } nav a.active::after { opacity: 1; background-color: var(--text-color-highlight); } nav a::after { content: ''; position: absolute; top: 0; left: 0.1rem; width: 1px; height: 100%; background-color: var(--text-color); opacity: 0; transition: opacity 0.2s; } nav a:hover { color: white; } nav a:hover::after { height: 100%; color: #cccccc; opacity: 1; } main { padding: 0; margin-left: 2rem; width: 100%; overscroll-behavior-y: contain; scroll-snap-type: y proximity; } section { padding: 0; margin: 0; width: 100%; height: 100vh; overflow-y: auto; overscroll-behavior: contain; scroll-snap-align: start; } article { width: 100%; } #about { display: flex; flex-direction: column; justify-content: center; align-items: center; } #projects { display: flex; flex-direction: column; justify-content: start; align-items: center; background-color: rgba(0,0,0, 0.85); background-blend-mode: darken; padding-top: 2rem; padding-bottom: 2rem; background-image: url("/img/bg-projects.jpg"); background-position: center; background-attachment: fixed; height: auto; } #projects.active { } #projects .links { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 0.5rem; padding-top: 0.5rem; } #projects .links a button { width: 2rem; height: 2rem; border: 1px solid #fff; border-radius: 0.2rem; padding: 0.2rem; background: transparent; cursor: pointer; } #projects .links a button:hover { background-color: rgba(255,255,255, 0.15); transition: background-color 0.2s; } #projects .links a button img { width: 100%; height: 100%; } .tags { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; padding: 1rem; max-width: 18rem; } .tags span { font-size: 0.65rem; border: 1px solid var(--text-color); padding: 0.2rem; border-radius: 0.2rem; cursor: default; user-select: none; transition: transform 0.2s, color 0.2s, border-color 0.2s } .tags span:hover { transform: scale(1.2); color: var(--text-color-highlight); border-color: var(--text-color-highlight); } #about article { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem; } #about h1 { color: var(--text-color-highlight); } #projects h2 { font-size: 1.5rem; color: var(--text-color-highlight); padding-bottom: 1.5rem; } #projects .project-scroller { height: 100%; max-width: 100vw; scroll-snap-type: y mandatory; scroll-snap-align: start; } #projects .project-scroller article { display: flex; flex-direction: row; justify-content: start; text-align: start; flex-wrap: wrap; max-width: 34rem; padding-top: 0.5rem; padding-bottom: 1.5rem; padding-inline: min(1rem, 5%); gap: 0.75rem; } #projects .project-scroller article:nth-child(2n+0) { justify-content: end; flex-direction: row-reverse; text-align: end; } #projects .project-scroller article .links { justify-content: flex-start; } #projects .project-scroller article:nth-child(2n+0) .links { justify-content: flex-end; } #projects .project-scroller article .title { font-size: 1.4rem; color: var(--text-color-highlight); text-align: inherit; } #projects .project-scroller article .description { width: fit-content; flex: 1; min-width: 14rem; } #projects .project-scroller article .description p { font-size: 0.8rem; color: var(--text-color); text-align: inherit; } #projects .project-scroller article .project-logo { min-width: 9rem; min-height: 9rem; max-width: 9rem; max-height: 9rem; border-radius: 0.5rem; } #projects .project-scroller article .project-logo img { width: 100%; height: 100%; border-radius: 0.5rem; }