* {
    box-sizing: border-box;
}
/* Main page elements */
html {
    height: 100%;
    font-size: 16px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #222;
    margin: 0px;
    padding: 0px;
    height: 100vh;
}

h1 {
    font-size: 2.0rem;
    font-weight: normal;
    color: darkblue;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

h2 {
    font-size: 1.5rem;
    font-weight: normal;
    color: darkblue;
    margin-block-start: 8px;
    margin-block-end: 5px;
}

h3 {
    font-size: 1.2rem;
    font-style: italic;
    margin-block-start: 8px;
    margin-block-end: 3px;
    font-weight: normal;
    color: red;
}

.container {
    max-width: 780px;
    margin: 24px auto;
    background: #fff;
    padding: 18px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

input[type=text], input[type=password], input[type=email], input[type=number],
input[type=tel], input[type=date], select {
    width: 100%;
    padding: 8px;
    margin: 6px 0 12px;
    /*    box-sizing: border-box;*/
}

label {
    font-weight: bold;
    display: block;
    margin-top: 8px;
}

button {
    padding: 8px 14px;
    border: none;
    background: rgb(0, 120, 215);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

    button:disabled {
        background: rgba(0, 120, 215, 0.5);
        color: #ddd;
    }
    button.link {
        text-decoration: underline;
        font-size: 1.0rem;
        padding: 8px 0;
        border: none;
        color: blue;
        background-color: transparent;
        border-radius: 0;
        cursor: pointer;
    }

.field-validation-error {
    color: #842029;
    background-color: #f8d7da;
    font-style: italic;
}
.field-validation-success {
    color: green;
    background-color: palegreen;
    font-style: italic;
}

table {
    border-collapse: collapse;
    margin-bottom: 6px;
}

    table thead {
        color: white;
        background-color: darkblue;
        font-weight: bolder;
    }

    table tr {
        vertical-align: top;
    }

    table td, table th {
        border-bottom: 1px solid darkblue;
        padding: 5px 25px 5px 5px;
    }

        table td.right, table th.right {
            text-align: right;
        }

        table td.center, table th.center {
            text-align: center;
        }

    table tr:last-child > td, table tr:last-child > th {
        border-color: red;
        border-width: 2px;
    }

    /******************* TODO: These should become obsolete *************************/
    table .team-column {
        min-width: 200px;
    }

    table .email-column {
        min-width: 300px;
    }

    table .fullname-column {
        min-width: 200px;
    }

    table .uniform-column {
        max-width: 50px;
    }
/******************* TODO: These should become obsolete *************************/

.highlight {
    background-color: yellow;
}

.Win {
    color: green;
    font-weight: bold;
    font-style: italic;
}

.Loss {
    color: darkred;
}

.validation-summary-errors {
    border: 1px solid #dc3545;
    background-color: #f8d7da;
    color: #842029;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.validation-summary ul {
    margin: 0;
    padding-left: 1.2rem;
}

.validation-summary-valid {
    display: none;
}

/* styling for all grid-tables */
.grid-table {
    display: inline-grid;
    row-gap: 8px;
    /* This is a default value only, 2 columns */
    grid-template-columns: repeat(2, auto);
}

    .grid-table > div {
        padding: 2px 10px;
        border-bottom: 1px solid darkblue;
    }

    .grid-table > .grid-heading {
        color: white;
        background-color: darkblue;
        border-bottom: 2px solid red;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .grid-table  .right {
        text-align: right;
    }

    .grid-table  .center {
        text-align: center;
    }

    .grid-table > .grid-section-1 {
        font-weight: bolder;
        /* This is a default value only, 2 columns */
        grid-column: span 2;
        color: red;
        font-size: 1.1rem;
        font-style: italic;
        margin-top: 0px;
        margin-bottom: 3px;
        border-bottom: 1px solid red;
/*        text-align: center;*/
    }

        .grid-table > .grid-section-1:not(:first-child) {
            margin-top: 20px;
        }

    .grid-table > .grid-section-2 {
        font-weight: bold;
        grid-column: span 2;
        color: darkblue;
        font-size: 1.1rem;
        font-style: italic;
        margin-top: 0px;
        margin-bottom: 3px;
    }

        .grid-table > .grid-section-2:not(:first-child) {
            margin-top: 10px;
        }

/* Mobile */
@media (max-width: 768px) {
    /* A little extra vertical space to click on a row */
    .grid-table.clickable > div {
        padding-top: 15px;
        padding-bottom: 12px;
    }
}
