
@font-face {
    font-family: 'Hylian';
    src: url('fonts/hylia.otf') format('opentype');
}

.button-container a:active, .button-container a.Home{
    box-shadow: 0px 0px 0px var(--btn-shadow);
    transform: translate(4px, 4px);
    background-color: var(--btn-pressed-bg);

    border-top: 3px solid var(--btn-border-dark);
    border-left: 3px solid var(--btn-border-dark);
    border-bottom: 3px solid var(--btn-border-light);
    border-right: 3px solid var(--btn-border-light);
}

.updates p{
    color: var(--text-main);
}

.content-wrapper{
    display:flex;
    min-height: 600px;
    border-bottom: 2px solid var(--border-nav);
}

.main-content {
    flex-grow: 1; /* Greedily takes up all remaining space (roughly 70%) */
    padding: 20px;
}

.sidebar {
    width: 20%;
    margin-right: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.updates {
    width: 100%;
    background-color: var(--bg-panel);
    border-top: 2px solid var(--border-main);
    border-left: 2px solid var(--border-main);
    border-bottom: 2px solid var(--border-panel);
    border-right: 2px solid var(--border-panel);
    padding: 20px;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

.updates h1, .updates li {
    color: var(--text-highlight);
}

.updates h1 {
    font-size: 3.2em;
    font-weight: normal;
    margin-bottom: 15px;
    color: var(--text-title);
    border-bottom: 1px dashed var(--border-main);
    padding-bottom: 10px;
    font-family: 'Hylian', sans-serif;
    letter-spacing: 4px; /* Give the characters more breathing room */
    text-shadow: 2px 2px 0px #111; /* Add a slight drop shadow for depth */
}

.updates ul {
    display: inline-block; /* Allows the center alignment from .updates to affect the whole list */
    text-align: left;
}

.updates li{
    font-size: 1em;
    margin-bottom: 5px
}


.first-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.first-row img {
    height: 120px; /* slightly smaller to fit better in the row */
    width: auto;
    object-fit: contain; /* ensures images fit nicely */
}

.first-row .kirby {
    height: 80px; /* adjusted to match others proportionally */
    width: auto;
}




.sim-row {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.threebody-container,
.lissajous-container,
.orbital-container {
    flex-shrink: 0;
}

#threebody-canvas {
    background: var(--bg-main);
    image-rendering: pixelated;
    display: block;
    border-top: 2px solid var(--border-main);
    border-left: 2px solid var(--border-main);
    border-bottom: 2px solid var(--border-panel);
    border-right: 2px solid var(--border-panel);
}

#lissajous-canvas {
    background: var(--bg-panel-light);
    display: block;
    border: 1px solid var(--border-nav);
    border-radius: 6px;
    box-shadow:
        0 0 8px var(--border-panel),
        0 0 20px var(--border-panel);
}

.orbital-container {
    position: relative;
    display: inline-block;
}

#orbital-canvas {
    background: var(--bg-main);
    display: block;
    border: 1px solid var(--border-nav);
    border-radius: 12px;
}

.orbital-label {
    position: absolute;
    bottom: 10px;
    right: 12px;
    color: var(--border-panel);
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    letter-spacing: 1px;
    transition: color 0.5s;
}


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

.indie-status-bar {
    background-color: var(--bg-panel-light);
    border: 1px solid var(--border-nav);
    border-radius: 4px;
    padding: 12px 18px;
    margin: 10px 0 20px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.status-prompt {
    color: var(--text-accent);
    font-weight: bold;
    margin-right: 10px;
    user-select: none;
}

.status-text {
    color: var(--text-title);
    outline: none;
    min-width: 10px;
    white-space: nowrap;
}

.blinking-cursor {
    color: var(--text-highlight);
    animation: blink 1s step-end infinite;
    font-weight: bold;
    margin-left: 2px;
}

.visitor-counter {
    text-align: center;
    margin-top: auto; /* Pushes the counter all the way to the bottom of the sidebar */
    margin-bottom: 20px;
}

.visitor-counter p {
    margin: 0 0 5px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--border-panel);
}

.retro-counter {
    display: inline-block;
    background: var(--bg-panel-light);
    color: var(--text-accent);
    border: 2px inset var(--border-main);
    padding: 8px 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    text-shadow: 0 0 5px var(--text-accent);
}

/* Mobile Responsive Layout */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: auto; /* expands to fill the column rather than 20% width */
        margin-left: 20px;
        margin-right: 20px;
    }
    .updates {
        width: 100%;
    }
    .sim-row {
        justify-content: center;
    }
    .indie-status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .status-text {
        white-space: normal; /* allows long text to wrap on small screens */
        word-break: break-all;
    }
}
