/* Add your custom styles here */
.container {
    margin-top: 100px;
		font-size: 0.8rem;
}

.competitor-row {
    margin-bottom: 10px;
}

/*
.competitor-row {
	border: 1px solid #ccc;
	margin-bottom: 2px;
	width: 100%; /* Adjust width as needed *
	display: flex;
	flex-wrap: wrap;
}

.competitor-row > div {
	flex: 1;
	text-align: center;
}
*/

.competitor-row {
    display: grid;
    grid-template-columns: 
        auto         /* Checkbox */
        2fr          /* Name */
        1fr          /* Club */
        auto         /* Bib */
        auto         /* Emit */
        1fr          /* Class */
        auto;        /* Start time */
    border: 1px solid #ccc;
    margin-bottom: 2px;
    width: 100%;
    align-items: center;
    gap: 5px;
}

.no-starters {
    display: block;
    margin-bottom: 2px;
    width: 100%;
    align-items: center;
    font-size: 1.2em;
}

.no-starters-text {
    text-align: center;
    font-weight: bold !important;
}

.timeheader {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 20px;
    text-align: center;
}

@media (max-width: 580px) {
    .competitor-row {
        grid-template-columns: 
            auto 3fr auto 2fr; /* 4 columns per row, wraps automatically */
    }
}

@media (max-width: 400px) {
    .competitor-row {
        grid-template-columns: 
            1fr 1fr 1fr; /* 3 columns per row, wraps automatically */
    }
}

.competitor-row > div {
    min-width: 0;
    padding: 5px;
    text-align: center;
    box-sizing: border-box;
    /*word-break: break-word;*/
}

.competitor-row input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.namecol {
	padding-left: 5px;
	padding-right: 5px;
}

.updated {
	background-color: #bffc93;
}

hr {
	height: 50px;
}

div:has(> input.updated) { 
	background-color: #bffc93;
}

#message-list {
	margin-top: 30px;
}

#message-list div {
	border-top: 1px solid black;
}

.navisport {
	background-color: #e8feff;
}

.highlight {
    background-color: #ffff99 !important;
    border: 2px solid #ffcc00;
}

.clock-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.clock-content {
    font-size: 1.2em;
    text-align: center;
    flex: 1;
}

.clocktime {
    font-weight: bold;
}

.status-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: red; /* Default to disconnected */
}