.golden-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
}

.golden-spiral {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    grid-template-rows: repeat(14, 1fr);
    width: 80vmin;
    height: 60vmin;
    position: relative;
    gap: 0;
}

/* phi ≈ 1.618033988749895 */
/* 1/phi ≈ 0.618033988749895 */
/* 1/phi² ≈ 0.381966011250105 */
/* 1/phi³ ≈ 0.236067977499790 */
/* 1/phi⁴ ≈ 0.145898033988750 */

.golden-box {
    aspect-ratio: 1 / 1;
    background: var(--bg);
    grid-area: var(--ga);
    opacity: 0.8;
    transition: all 0.3s ease, box-shadow 0.2s;
    position: relative;
    z-index: 1;
    cursor: pointer;
    box-shadow: 0 0 0 0 transparent;
}

.golden-box:hover {
    box-shadow: 0 0 0 0px #64605a44;
    opacity: 1;
}

.golden-box:hover .box-label {
    opacity: 1;
}

/* first box (1x1) */
.box-1 {
    --bg: #64605a;
    --ga: 9 / 9 / 10 / 10;
    --font-scale: 0.8;
    cursor: pointer;
    box-shadow: 0 0 0 0 transparent;
    transition: box-shadow 0.2s;
}


/* second box (1x1) */
.box-2 {
    --bg: #594e50;
    --ga: 9 / 10 / 10 / 11;
    --font-scale: 0.8;
}

/* third box (2x2) */
.box-3 {
    --bg: #69695f;
    --ga: 10 / 9 / 10 / 11;
    --font-scale: 1.3;
}

/* fourth box (3x3) */
.box-4 {
    --bg: #6e7264;
    --ga: 9 / 11 / 14 / 14;
    --font-scale: 2.1;
}

/* fifth box (5x5) */
.box-5 {
    --bg: #79846e;
    --ga: 1 / 9 / 6 / 14;
    --font-scale: 2.1;
}

/* sixth box (8x8) */
.box-6 {
    --bg: #93b292;
    --ga: 1 / 1 / 9 / 9;
    --font-scale: 3.4;
}

.site-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: #608a68;
    font-weight: 1200;
    text-align: center;
    font-family: "JuliaMono", monospace;
    z-index: 2;
}

/* hover effects */
.golden-box:hover, .spiral-curve:hover {
    border-color: #fff;
    opacity: 1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.click-prompt {
    font-size: 1rem;
    margin-top: 1rem;
    opacity: 0.7;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0.7; }
    50% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.entries-header {
    text-align: center;
    margin: 2rem 0;
}

.back-home {
    display: inline-block;
    margin-top: 1rem;
    color: #f7e733;
    text-decoration: none;
    font-family: "JuliaMono", monospace;
}

.back-home:hover {
    text-decoration: underline;
}

.box-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    color: #fff;
    font-family: "JuliaMono", monospace;
    font-size: calc(var(--font-scale, 1) * clamp(0.4em, 1.5vw, 0.8em));
    font-weight: 600;
    pointer-events: none; /* so clicks go to the box */
    word-break: break-word;
    line-height: 1.1;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.golden-box {
    position: relative;
}

.text-box {
    position: absolute;
    bottom: 4rem;
    left: 21%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    padding: .5rem;
    color: #608a68;
    font-family: "JuliaMono", monospace;
    font-size: 2rem;
    line-height: 1.6;
    text-align: left;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 8.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
} 