/* Base Layout */
body {
    font-family: "Times New Roman", Times, serif;
    background-color: #c0c0c0;
    background-image: url(image.png);
    background-repeat: no-repeat;
    background-position: left 0 bottom 0;
    background-attachment: fixed;
    color: #000000;
    /* Removed margin: 0 to restore browser default breathing room */
}

.dashboard {
    width: 600px;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 20px 30px 30px 30px; /* Original padding */
    
    /* Classic 3D border */
    border: 2px solid;
    border-color: #f0f0f0 #808080 #808080 #f0f0f0;
    
    /* Center everything by default (Classic Web 1.0 style) */
    /* text-align: center; */
    text-align: left;

}

.text-center {
    text-align: center;
}

h1 {
    font-size: 24px;
    font-weight: bold;
    /* CRITICAL: Allows the construction GIF to sit on the same line */
    display: inline-block; 
    margin-top: 20px;
    margin-bottom: 20px;
}

hr {
    height: 2px;
    border-top: 1px solid #808080;
    border-bottom: 1px solid #f0f0f0;
    border-left: 0;
    border-right: 0;
    margin: 20px 0;
}

/* Buttons */
.buttons { 
    margin-top: 30px; 
    text-align: center;
}

.btn {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-decoration: none;
    color: black;
    background-color: #c0c0c0;
    padding: 8px 18px; /* Restored original padding */
    margin: 0 10px;    /* Restored original wider spacing */
    border: 2px outset #f0f0f0;
    cursor: pointer;
    display: inline-block;
}

.btn:active, .btn-mini:active, .btn-symbol:active {
    border-style: inset;
}

/* Small buttons for the Git list */
.btn-mini {
    font-family: Arial, sans-serif;
    font-size: 12px;
    background-color: #c0c0c0;
    color: black !important;
    padding: 5px 10px;
    border: 2px outset #f0f0f0;
    text-decoration: none;
    cursor: pointer;
    margin-left: 10px;
}

.btn-symbol {
    font-family: Arial, sans-serif;
    font-size: 16px;
    background-color: #c0c0c0;
    padding: 2px 8px;
    border: 2px outset #f0f0f0;
    cursor: pointer;
    margin-left: 5px;
    height: 100%;
}

/* Utilities */
.back-link {
    font-size: 12px;
    text-decoration: none;
    color: blue;
    display: block; /* Ensure it sits on its own line */
    text-align: left; /* Keep back link to the left */
    margin-bottom: 10px;
}

.loading { padding: 20px; font-style: italic; }

/* Main Dashboard Specifics */
.construction-gif {
    vertical-align: middle;
    margin-left: 15px;
    width: 80px;
}

.hit-counter {
    margin-top: 40px;
    font-size: 12px;
    font-family: "Courier New", monospace;
    border: 1px solid black;
    padding: 5px;
    background-color: black;
    color: lime;

    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Git Page Specifics */
.header-actions {
    margin-bottom: 10px;
}

#project-list {
    text-align: left; /* Override parent center alignment for the list */
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
    border: 2px inset #f0f0f0;
    background: #fff;
}

.project-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px dotted #ccc;
}

.project-row:hover {
    background-color: #dcdcdc;
    color: black;
}

.project-name {
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 14px;
    flex-grow: 1;
    text-decoration: none;
    color: black;
    display: block;
}

/* Help Box */
#help-box {
    text-align: left; /* Override parent center alignment */
    display: none;
    background-color: #ffffcc;
    border: 1px solid black;
    padding: 15px;
    margin-bottom: 15px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.code-container {
    display: flex;
    align-items: stretch;
    background-color: #000;
    border: 1px solid #808080;
    margin: 5px 0 15px 0;
}

.code-text {
    color: #0f0;
    font-family: "Courier New", monospace;
    padding: 8px;
    white-space: pre-wrap;
    word-break: break-all;
    flex-grow: 1;
    display: block;
}

/* Classic Web 1.0 Links */
a:link {
    color: #0000ff;
    text-decoration: underline;
}

a:visited {
    color: #800080;
}

a:hover {
    color: #ff0000;
    text-decoration: underline;
}

a:active {
    color: #ff0000;
}