html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: sans-serif;
    text-align: center;
    background: linear-gradient(to bottom right, #0077b6, #00b4d8);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card {
    background: #ffffff;
    width: 300px;
    margin: auto;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #0077b6;
}

.title {
    position: relative;
    display: inline-block;
    font-size: 2em;
    color: #0077b6;
}

.live-badge {
    position: absolute;
    top: .6em;
    right: -2.0em;
    font-size: 0.5em;
    color: #fb8f14;
    font-weight: bold;
    transform: rotate(-20deg);
    pointer-events: none;
    user-select: none;
    padding: 1px 1px;
    border-radius: 1px;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.0em;
    color: #555;
    margin-bottom: 25px;
}

.subtitle2 {
    font-size: 1.2em;
    color: #0077b6;
    margin-bottom: 25px;
}

.event-box {
  position: relative; /* ← required for absolute positioning inside */
  border: 2px solid #0077b6;
  border-radius: 12px;
  padding: 20px 10px;
  margin: 20px 0;
  width: 100%;
  box-sizing: border-box;
}


.section-label {
    font-size: 1.2em;
    color: #000;
    margin: 0 0 5px;
}

.lineup-note {
    font-size: 1.2em;
    color: #000;
    margin-top: 5px;
}

#eventNumber {
    font-size: 5em;
    margin: 5px 0;
    color: #023e8a;
    transition: background-color 0.5s ease;
}

#lastUpdated {
    position: absolute;
    bottom: 6px;
    right: 10px;
    font-size: 0.75em;
    color: #7d7d7d;
}

/* .flash {
  animation: flash-bg 0.5s ease;
}

@keyframes flash-bg {
  from { background-color: #eb740c; }
  to   { background-color: transparent; }
} */

form {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.inline-edit {
    width: 100%;
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

/* Shared button/input styling */
input[type="number"],
.btn {
    font-size: 1.0em;
    padding: 10px 20px;
    margin: 0;
    border-radius: 12px;
    height: 48px; /* fixed height for consistent vertical alignment */
}

/* Input-specific tweaks */
input[type="number"] {
    padding: 0;
    border: 3px solid #ccc;
    width: 120px;
    text-align: center;
}

/* Button-specific tweaks */
.btn {
    border: none;
    background: #0077b6;
    color: white;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn:hover {
    background: #005f8d;
}

.btn_text {
    font-size: 0.9em;
    padding: 10px 20px;
    margin: 15px 5px;
    color: #0077b6;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

@media (max-width: 480px) {

    form {
        width: 100%;
    }

    .inline-edit {
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }

    input[type="number"],
    .btn {
        width: 100%;
        font-size: 1.2em;
        padding: 10px 20px;
        margin: 7px 0;
        box-sizing: border-box;
        height: 48px;
    }

    .btn_text {
        width: 100%;
        font-size: 1.2em;
        padding: 10px 20px;
        margin: 7px 0;
        box-sizing: border-box;
        height: auto;
    }

    #eventNumber {
        font-size: 4em;
    }

    #lastUpdated {
    font-size: 0.65em;
    }
}
