/* Basic Reset and Font */
* {
    box-sizing: border-box;
}

body, html {
    font-family: 'Courier', monospace;
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
}

/* Main Container */
main {
    max-width: 700px;
    margin: 20px auto;
    padding: 0 20px;
}

h1, h2 {
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    margin-top: 30px;
}

h1 {
    text-align: center;
    border-bottom: none;
}

p {
    line-height: 1.4;
}

/* Tab Navigation */
nav {
    border-bottom: 1px solid #000;
    margin-bottom: 20px;
}

.tab-btn {
    font-family: 'Courier', monospace;
    font-size: 16px;
    padding: 10px 15px;
    border: 1px solid #000;
    border-bottom: none;
    background: #fff;
    color: #000;
    cursor: pointer;
    margin-bottom: -1px; /* Aligns with nav border */
}

.tab-btn.active {
    font-weight: bold;
    background: #fff;
    border-bottom: 1px solid #fff;
}

.tab-content {
    display: block;
}

/* Score Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    border: 1px solid #000;
    padding: 8px 10px;
    text-align: left;
}

th {
    background: #fff;
    font-weight: bold;
}

td:first-child { /* Rank column */
    text-align: center;
    width: 50px;
}

/* Form Styling */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="number"],
select,
button {
    font-family: 'Courier', monospace;
    font-size: 14px;
    padding: 8px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    width: 100%;
}

button {
    font-weight: bold;
    cursor: pointer;
}

button:active {
    background: #eee; /* Only non-color active state */
}

#submit-message {
    margin-top: 15px;
}