/* =========================
   General page styling
   ========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 4;
    padding: 4;
    font-family: Arial, sans-serif, Helvetica;
    font-size: 16px;
    line-height: 1.5;
    color: #222;
    background-color: #f4f4f4;
}

.centered-div {
  width: 100%;
  max-width: 400px;
  text-align: center;  
}


/* =========================
   Main page container
   ========================= */

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}


/* =========================
   Headings
   ========================= */

h1 {
    font-size: 30px;
    margin-top: 0;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

h3 {
    font-size: 20px;
}


/* =========================
   Links
   ========================= */

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =========================
   Forms
   ========================= */

form {
    margin-bottom: 1px;
}

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

input,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    max-width: 400px
}

input:focus,
select:focus {
    outline: none;
    border-color: #0066cc;
}


/* Don't make checkboxes full width */

input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}


/* =========================
   Buttons
   ========================= */

button,
input[type="submit"],
input[type="reset"] {
    width: auto;
    padding: 10px 18px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

button,
input[type="submit"] {
    color: white;
    background-color: #0066cc;
}

button:hover,
input[type="submit"]:hover {
    background-color: #004f9e;
}

input[type="reset"] {
    color: #222;
    background-color: #ddd;
}

input[type="reset"]:hover {
    background-color: #ccc;
}


/* =========================
   Tables
   ========================= */

.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

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

th {
    background-color: #0066cc;
    color: white;
}

tr:hover {
    background-color: #f2f2f2;
}


/* =========================
   Messages
   ========================= */

.success {
    padding: 10px;
    margin-bottom: 15px;
    color: #155724;
    background-color: #d4edda;
    border-radius: 4px;
}

.error {
    padding: 10px;
    margin-bottom: 15px;
    color: #721c24;
    background-color: #f8d7da;
    border-radius: 4px;
}


/* =========================
   Images
   ========================= */

img {
    max-width: 100%;
    height: auto;
}


/* =========================
   Mobile devices
   ========================= */

@media (max-width: 600px) {

    .container {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 21px;
    }

    h3 {
        font-size: 18px;
    }

    button,
    input[type="submit"],
    input[type="reset"] {
        width: 100%;
        margin-bottom: 10px;
    }

    th,
    td {
        padding: 8px;
        font-size: 14px;
    }
}

/* Pediction page style */
.page-container {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.page-header h1 {
    margin: 0;
}

.user-links {
    white-space: nowrap;
    font-size: 0.7rem;
}

.user-links a {
    color: #185abd;
}

.message {
    padding: 12px;
    margin-bottom: 5px;
    border-radius: 5px;
}

.success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.game-card {
    margin-bottom: 10px;
    padding: 5px;
    background: #fff;
    border: 1px dashed #b1b3b6;
    border-radius: 8px;
    
    /* box-shadow: 0 2px 5px rgb(0 0 0 / 6%); */
}

.game-card.closed {
    color: #777;
    background: #e5e5e5;
    border-color: #ccc;
    box-shadow: none;
}

.game-information {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 5px;
}

.game-date {
    font-weight: bold;
    /*text-decoration: underline;*/
    color: #232422;
    padding: 5px 10px;
    border-radius: 15px;
    background: #c4c4c5;
    text-transform: capitalize;
    text-align: center;
    font-size: 0.95rem;
    /*background-color: #969696*/
}

.game-time {
    font-weight: bold;
    color: #007FFF;
    text-align: center;
    font-size: 0.8rem;
}

.closed .game-date {
    color: #777;
}

.game-stage {
    margin-top: 5px;
    font-size: 0.9rem;
    padding: 1px 0px;
    padding-right: 40px; 
}

.status {
    padding: 5px 10px;
    border-radius: 15px;
    background: #edf3fa;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.status a {
    padding: 5px 10px;
    background: #185abd;
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    font-size: 0.85rem;
}

.closed .status {
    background: #d1d1d1;
}

.teams {
    display: grid;
    grid-template-columns:
        minmax(100px, 1fr)
        65px
        20px
        65px
        minmax(100px, 1fr);
    gap: 10px;
    align-items: center;
}

.home-team {
    text-align: right;
    font-weight: bold;
    padding-bottom: 13px;
}

.away-team {
    text-align: left;
    font-weight: bold;
    padding-bottom: 13px;
}

.score-separator {
    text-align: center;
    font-weight: bold;
    padding-bottom: 13px;
}

.score-input {
    width: 65px;
    padding: 2px;
    border: 1px solid #999;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
}

.score-input:disabled {
    color: #777;
    background: #d5d5d5;
    border-color: #bbb;
    cursor: not-allowed;
}

.game-actions {
    margin-top: 3px;
    text-align: center;
}

.save-button {
    padding: 5px 22px;
    color: #fff;
    background: #185abd;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.update-button {
    padding: 5px 14px;
    color: #FFFFFF;
    background: #817804;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.save-button:hover {
    background: #12478f;
}

.prediction-status {
    margin-top: 4px;
    color: #555;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 0;
}

.points {
    font-weight: bold;
}

.actual-result {
    margin-top: 12px;
    font-weight: bold;
    text-align: center;
}

.no-games {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
}

.save-status {
    min-height: 18px;
    margin-top: 5px;
    font-size: 0.85rem;
}

.save-status.saving {
    color: #555;
}

.save-status.success {
    color: #168336;
    font-weight: bold;
}

.save-status.error {
    color: #b42318;
    font-weight: bold;
}

.save-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* Filter CSS */
.game-filters {
    display: flex;
    gap: 5px;
    margin-bottom: 0px;
    flex-wrap: wrap;
    align-items: flex-end;
    font-size: 0.9rem;

}
 
.game-filters a {
    padding: 5px 10px;
    background: #185abd;
    color: rgb(131, 31, 31);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
}


.status-link {
    padding: 0px 5px;
    border-radius: 2px;
    background: #cddbea;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.status-link-active {
    padding: 0px 5px;
    border-radius: 2px;
    background: #85afdd;
    font-size: 0.85rem;
    text-transform: capitalize;
}


.navigation {
    margin-top: 10px;
    white-space: normal;
}

@media (max-width: 650px) {
    body {
        padding: 10px;
    }

    .page-header {
        display: block;
    }

    .user-links {
        margin-top: 10px;
    }

    .teams {
        grid-template-columns: 1fr 55px 15px 55px 1fr;
        gap: 5px;
    }

    .score-input {
        width: 55px;
    }

    .game-date {
        font-size: 0.79rem;
        text-transform: capitalize;
        white-space: nowrap;
        font-weight: bold;
        padding: 5px 10px;
        border-radius: 15px;
        background: #ccccd6;
    }
    .game-stage {
        white-space: nowrap;
        padding-right: 0px; 
    }

    .save-button {
        width: 60%;
        padding: 5px 10px;
        color: #fff;
        background: #185abd;
        cursor: pointer;
        font-size: 0.9rem;
    }

    .save-button.hover {
        color: #FFFFFF;
        background: #817804;
    }

    .update-button {
        width: 60%;
        padding: 5px 8px;
        color: #FFFFFF;
        background: #817804;
        cursor: pointer;
        font-size: 0.9rem;
    }
    
    .update-button.hover {
        color: #FFFFFF;
        background: #817804;
    }

    .game-filters {
        display: grid; 
        grid-template-columns: repeat(2, 1fr);
    }   

    .status-link {
        padding: 4px 5px;
        text-align: center;
    }

    .status-link-active {
        padding: 4px 5px;
        text-align: center;
    }
    /* .filter-buttons {
        display: grid; 
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-button {
        width: 100%;
        padding: 6px;
        font-size: 0.78rem;
    } */

} 


