
/* jersey 10 utility class from google fonts */
.jersey-10-regular {
  font-family: "Jersey 10", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* custom pixel font for titles */
@font-face {
    font-family: "Btseps";
    src: url("fonts/btseps2.TTF") format("truetype");
}

/* blinking prompt below 3d models */
.click-hint {
    font-family: "Press Start 2P", monospace;
    font-size: 8px;
    color: #2145e9;
    opacity: 0.6;
    margin-top: 10px;
    letter-spacing: 0.1em;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0; }
}

body {
    font-family: "Jersey 10", sans-serif;
    margin: 0;
    padding: 0;
    background: #dddde3;
    color: #c8c8d4;
}

/* left-side nav column, fixed */
.navbar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 28px;
    gap: 2px;
    background: none;
    z-index: 100;
}

/* nav link base and active states */
.navbar a {
    font-size: 18px;
    color: #181818;
    padding-left: 8px;
    border-left: 2px solid transparent;
}
.navbar a:hover {
    font-size: 22px;
    color: #2145e9;
    text-decoration: none;
}
.navbar a.active {
    color: #2145e9;
    border-left-color: #2145e9;
}

h1 {
    font-family: "Press Start 2P", monospace;
    font-size: 2.5em;
    color: #2145e9;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(126,232,194,0.25);
    margin: 0;
}
h2 {
    font-family: "Press Start 2P", monospace;
    font-size: 1em;
    color: #555;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: normal;
    margin: 0;
}

/* homepage center column */
.main {
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 60px 0;
    margin-left: 200px;
    margin-right: 200px;
    box-sizing: border-box;
}

/* project card title label */
.card-title {
    color: #ffffff;
    font-family: "Press Start 2P", monospace;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    margin: 0;
    padding: 0 14px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-link {
    text-decoration: none;
}

/* project card: 3d preview on top, title below */
.card {
    background: #2145e9;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
    width: 250px;
    height: 280px;
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-link:hover .card {
    border-color: #2145e9;
    box-shadow: none;
    transform: scale(1.06);
}

.card-image {
    background: #c8c8d4;
    width: 100%;
    height: 200px;
    aspect-ratio: unset;
}

/* card grid on the homepage */
.container {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    padding: 0;
}

/* social icon column, fixed to the right */
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    gap: 8px;
    background: none;
    z-index: 100;
}

.sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: opacity(0.5);
    transition: opacity 0.2s;
}

.sidebar a:hover {
    filter: opacity(1);
}

/* project detail page wrapper */
.project-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0 80px;
    margin-left: 200px;
    margin-right: 50px;
    padding-top: 60px;
    margin-right: 200px;
}

.project-title {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0 0 40px;
    text-align: center;
}

/* side-by-side layout: 3d figure left, description right */
.project-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 1100px;
    justify-content: center;
}

/* blue description box */
.description {
    background: #2145e9;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 22px 28px;
    overflow-y: auto;
    flex: 0 0 380px;
    max-width: 380px;
    min-height: 320px;
    margin-left: 0;
    display: flex;
    align-items: center;
}

/* intro paragraph on the homepage */
.home-text {
    color: #2145e9;
    font-family: "Pixelify Sans", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* container for the three.js canvas */
.td-figure {
    width: 420px;
    height: 420px;
    background: transparent;
    border: none;
    flex-shrink: 0;
}

/* smaller figure size when inside a card */
.card .td-figure {
    width: 100%;
    height: 210px;
    flex-shrink: 0;
}

.td-figure canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.description-text {
    font-family: "Pixelify Sans", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #ffffff;
}

/* wraps the 3d figure and the click hint below it */
.figure-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* pixel-style mute button, fixed top-right */
.sound-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #2145e9;
    border: none;
    cursor: pointer;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 0 0 #1535b8,
        4px 0 0 0 #1535b8,
        -4px 0 0 0 #1535b8,
        0 -4px 0 0 #3558f0;
    transition: background 0.2s;
}

/* grey out the button when muted */
.sound-btn.muted {
    background: #888;
    box-shadow:
        0 4px 0 0 #555,
        4px 0 0 0 #555,
        -4px 0 0 0 #555,
        0 -4px 0 0 #999;
}

.sound-btn img {
    filter: invert(1);
}
