/* Continue.css */
/* 1) Constrain and center the page content */

#scoretable-container {
    margin: 0 auto;
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#scoretable-container::-webkit-scrollbar {
    height: 6px;
}

/* Table structure */
table#scoreTable {
    margin: 0;
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    border-radius: 12px;
}

/* Header row */
table thead {
    border: 0px;
    background-color: #303030;
    color: white;
    font-weight: bold;
    font-size: 1rem; /* 12pt → 16px → 1rem */
}

thead th {
/*    position: sticky;
    top: 0px;
    z-index: 0; */
    border-radius: 12px;
}

/* Table cells */
#scoretable-container th,
#scoretable-container td {
    padding: 6px;
    white-space: nowrap;
    min-width: 56px;
}

#scoretable-container td {
    border: 1px solid black;
}

th {
    background-color: #202020;
    color: white;
}

td {
    font-style: italic;
    font-size: 0.666rem; /* 8pt → 10.66px → ~0.666rem */
    font-weight: bold;
    color: darkgreen;
    text-align: center;
    vertical-align: middle;
}

#scores tr:first-child td {
	border-top: 0;
}
#scores tr:last-child td {
	border-bottom: 0;
}
#scores td:first-child {
	border-left: 0;
}
#scores td:last-child {
	border-right: 0;
}
#scores tr:first-child td:first-child {
    border-top-left-radius: 12px;
    border-top: none;
    border-left: none;
}
/* top-right body cell */
#scores tr:first-child td:last-child {
    border-top-right-radius: 12px;
    border-top: none;
    border-right: none;
}
/* bottom-left body cell */
#scores tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
    border-bottom: none;
    border-left: none;
}
/* bottom-right body cell */
#scores tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
    border-bottom: none;
    border-right: none;
}

tr:nth-child(even) {
    background: rgba(255,255,255,0.6);
}

tr:nth-child(odd) {
    background: rgba(180,180,180,0.6);
}

/* Input style */
.transparent {
    background: transparent;
    border: none;
    color: black;
    font-size: 1.166rem; /* 14pt → 18.66px → ~1.166rem */
    font-weight: bold;
    width: 50%;
    text-align: center;
}

.name {
    color: white;
    width: 100%;
}

/* Input box when add player is clicked */
.addplayerinput {
	width:200px;
	display:block;
	margin:10px auto;
	padding:5px;
	border-radius:5px;
	border:1px solid #ccc;
	background:#f0f0f0;
	color:#000;
	font-size:24px;
}

.total {
    text-align: center;
    font-style: italic;
    font-weight: bold;
    font-size: 1.166rem; /* 14pt → ~1.166rem */
    color: white;
    width: 100%;
}

.place {
    float: right;
    font-size: 0.833rem; /* 10pt → 13.33px → ~0.833rem */
}

#inprogress-container {
    padding-top: 10px;
    text-align: center;
}

/* Buttons */
#reset, #remplayer, #remnine, #newplayer, #addnine {
    padding: 6px 10px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.166rem; /* 14pt → ~1.166rem */
}

#newplayer, #addnine {
    background-color: rgb(9,63,27);
}

#reset, #remplayer, #remnine {
    background-color: maroon;
}

#shareScore {
    padding: 6px 20px;
    background-color: navy;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem; /* 16pt? → but original was 16px? It said 16pt? Actually 16pt → 21.33px → 1.333rem */
    font-size: 1.333rem; /* Correct conversion */
}

/* ---------- No Game in Progress Card ---------- */

.no-game-wrapper {
    display: flex;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.no-game-card {
    width: 100%;
    max-width: 26rem;
    background: rgba(5, 46, 22, 0.95);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem 1.9rem;
    text-align: center;
    box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(163, 230, 53, 0.3);
}

.no-game-icon {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.no-game-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    color: #e9f5e9;
}

.no-game-text {
    margin: 0 0 1.4rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(226, 232, 240, 0.9);
}

.no-game-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    background: #38b000;
    color: #f1faee;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.5);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.no-game-btn:hover {
    background: #2d9100;
    transform: translateY(-1px);
    box-shadow: 0 0.6rem 1rem rgba(0, 0, 0, 0.6);
}
