:root {
    --utma-primary-color: #BA1200;
    --utma-primary-color-darker: #910f01;
    --utma-primary-color-text: white;
    --utma-border-radius: 3px;
    --utma-primary-color-border: 1px solid #000000;
    --utma-primary-color-text-shadow: 1px 1px black;
}
body {
    background: black;
}
div {
    font-family: 'Poppins';
    font-style: normal;
    color: white;
}

input {
    font-family: 'Poppins';
    font-style: normal;
    text-align: center;
}

table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Poppins';
    font-style: normal;
}

td, th {
    text-align: left;
    padding: 8px;
}

tr {
    background-color: #353535;
}
.matchups-container {
    display: flex;
    flex-wrap: wrap;
    column-gap: 50px;
    margin-bottom:300px;
}
.single-fight-actions-container {
    border-top: 1px var(--utma-primary-color) solid;
    padding:10px 0 10px 0;
}
.single-fight-actions-container span {
    display:block;
    max-width:90%;
    margin:auto;
    text-align: center;
    font-weight: bold;
    padding-bottom:10px;
}
.single-fight-actions-container-2 {
    display:flex;
    justify-content: center;
    gap:10px;
    flex-wrap:wrap;
}
.single-fight-info-container {
    padding:10px 0 10px 0;
    border-bottom: 1px var(--utma-primary-color) solid;
    text-align: center;
}
.single-fight-info-container span {
    display:block;
    max-width:90%;
    margin:auto;
}
.bout-container {
    position: relative;
    text-align: center;
    min-height: 45px;
    margin: 50px auto 0 auto;
    max-width: 100%;
    border: 1px solid var(--utma-primary-color);
    border-radius: var(--utma-border-radius);
    box-shadow: 0 1px 15px var(--utma-primary-color);
    padding: 0;
    box-sizing: border-box;
    max-width: 500px;
    width:100%;
    height:fit-content;
}
.bout-container-top-button {
    border:0;
    width:100%;
    outline:none;
    -webkit-tap-highlight-color: transparent;
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    font-weight: bold;
    background:transparent;
    color:white;
    cursor:pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.bout-container-top-button img {
    width: 35px;
    filter:invert(1);
    transition:0.3s all;
}
.rotate-540 {
    transform: rotate(540deg);
}
.single-fight-container {
    border-top: 1px var(--utma-primary-color) solid;
    box-sizing: border-box;
}
.single-fight-container-2 {
    display:flex;
    justify-content: space-between;
}
.fighter-name-small {
    display: block;
    margin-block: 0;
    font-weight: bold;
}
.fighter-name-big {
    display: block;
    margin-block: 0;
    font-weight: bold;
    font-size: 20px;
}
/*tr:nth-child(even) {*/
/*    background-color: var(--utma-primary-color);*/
/*}*/
finalized-result-container
tr:hover > td {
    background: #005100 !important;
}
.confirmed {
    background: #baae7c;
}
tr:hover > th {
    background: #005100 !important;
}

body {
    font-family: arial, sans-serif;
}

.text-center {
    text-align: center;
}
hr {
    margin-bottom: 20px;
    height: 3px;
    background: #baae7c;
    box-shadow: 1px 1px 8px 2px var(--utma-primary-color);
    border: none;
    margin-top: 20px;
}
.main-title {
    text-align: center;
}
@media only screen and (max-width: 768px) {
    .main-title {
        font-size:1.5em;
        padding:0;
    }
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.btn-primary-big {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: var(--utma-primary-color-text);
    background: var(--utma-primary-color);
    padding: 15px 30px;
    text-decoration: none;
    transition: 0.3s all;
    cursor: pointer;
    border:var(--utma-primary-color-border);
}

.btn-primary-big:hover {
    opacity: 0.7;
    scale: 1.1;
    transition: 0.3s all;
}

.btn-primary {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    color: var(--utma-primary-color-text);
    background: var(--utma-primary-color);
    padding: 10px 20px;
    text-decoration: none;
    transition: 0.3s all;
    cursor: pointer;
    border-radius:var(--utma-border-radius);
    border:var(--utma-primary-color-border);
}
.btn-primary:disabled {
    background:grey;
    cursor:not-allowed;
}
.btn-primary-small {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 14px;
    text-align: center;
    color: var(--utma-primary-color-text);
    background: var(--utma-primary-color);
    padding: 5px 10px;
    text-decoration: none;
    transition: 0.3s all;
    cursor: pointer;
    border:var(--utma-primary-color-border);
}

.btn-primary-small:hover {
    opacity: 0.7;
    scale: 1.1;
    transition: 0.3s all;
}
.btn-primary-small:disabled {
    background:grey;
}
.btn-primary-small:disabled:hover {
    scale: 1.0;
}
select {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    text-align: left;
    color: var(--utma-primary-color-text);
    background: var(--utma-primary-color);
    padding: 10px 20px;
    text-decoration: none;
    transition: 0.3s all;
    outline: none;
    border: var(--utma-primary-color-border);
}

.btn-primary:hover {
    opacity: 0.7;
    scale: 1.1;
    transition: 0.3s all;
}

.red-blue-figther-columns {
    tr th:nth-child(3) {
        background: #bd0000;
    }

    tr td:nth-child(3) {
        background: #bd0000;
    }

    tr th:nth-child(4) {
        background: #bd0000;
    }

    tr td:nth-child(4) {
        background: #bd0000;
    }


    tr th:nth-child(5) {
        background: #0000cb;
    }

    tr td:nth-child(5) {
        background: #0000cb;
    }

    tr th:nth-child(6) {
        background: #0000cb;
    }

    tr td:nth-child(6) {
        background: #0000cb;
    }

}

.red-blue-figther-columns-matchups {
    tr th:nth-child(1) {
        background: #bd0000;
        border-bottom: 2px solid #baae7c;
    }

    tr td:nth-child(1) {
        background: #bd0000;
    }

    tr th:nth-child(2) {
        background: #0000cb;
        border-bottom: 2px solid #baae7c;
    }

    tr td:nth-child(2) {
        background: #0000cb;
    }
}

.match-result {
    padding: 10px;
    width: fit-content;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    border: 2px var(--utma-primary-color) solid;
}

.match-result p {
    margin-block: 5px;
}

.darker-border {
    border-top: 3px solid var(--utma-primary-color);
}

.alert-success {
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: var(--utma-border-radius);
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    font-weight: bold;
    text-align: center;
}

.alert-error {
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: var(--utma-border-radius);
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    font-weight: bold;
    text-align: center;

}

.result-main-container {
    width: 450px;
    border: 2px var(--utma-primary-color) solid;
    border-radius: 10px;
    box-sizing: border-box;
}

.result-container-top {
    display: flex;
    width: 100%;
    border-bottom: 2px var(--utma-primary-color) solid;
}

.result-container-top div {
    width: 50%;
    padding: 5px;
}

.result-container-top div:first-child {
    border-right: 2px var(--utma-primary-color) solid;
    text-align: left;
}

.result-container-top div:nth-child(2) {
    text-align: right;
}

.result-red-corner h2 {
    background: red;
    color: white;
    display: block;
    width: fit-content;
    margin-block: 10px;
    margin-block-start: 0px;
    padding-left: 8px;
    padding-right: 8px;
}

.result-blue-corner h2 {
    background: blue;
    color: white;
    display: block;
    width: fit-content;
    margin-block: 10px;
    margin-block-start: 0px;
    margin-left: auto;
    padding-left: 8px;
    padding-right: 8px;
}

.result-container-top span {
    display: block;
    margin-block: 0;
    font-weight: bold;
}

.result-container-top p {
    display: block;
    margin-block: 0;
    font-weight: bold;
    font-size: 20px;
}

.result-20x5-col {
    width: 100%;
    display: flex;
    border-bottom: 2px var(--utma-primary-color) solid;
}

.result-20x5-col div {
    width: 20%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-20x5-col div {
    border-right: 2px var(--utma-primary-color) solid;
}

.result-20x5-col div:last-child {
    border-right: 0;
}

.result-20x5-col-points {
    width: 100%;
    display: flex;
}

.result-20x5-col-points div {
    width: 20%;
    text-align: center;
}

.result-20x5-col-points div:nth-child(1), .result-20x5-col-points div:nth-child(4) {
    border-right: 2px solid grey;
    border-bottom: 2px solid grey;
}

.result-20x5-col-points div:nth-child(2), .result-20x5-col-points div:nth-child(5) {
    border-bottom: 2px solid grey;
}

.result-20x5-col-points div:nth-child(3) {
    border-left: 2px var(--utma-primary-color) solid;
    border-right: 2px var(--utma-primary-color) solid;
    border-bottom: 2px var(--utma-primary-color) solid;
}

.result-point-rows-container .result-20x5-col-points:last-child div {
    border-bottom: 2px var(--utma-primary-color) solid;
}

.result-40-20-40-col {
    display: flex;
    width: 100%;
}

.result-40-20-40-col div {
    text-align: center;
    line-height: 50px;
}

.result-40-20-40-col div:nth-child(1), .result-40-20-40-col div:nth-child(3) {
    width: 40%;
}

.result-40-20-40-col div:nth-child(2) {
    width: 20%;
    border-left: 2px var(--utma-primary-color) solid;
    border-right: 2px var(--utma-primary-color) solid;
}

.result-bottom-container {
    width: 100%;
    border-top: 2px var(--utma-primary-color) solid;
}

.result-bottom-container h2 {
    background: var(--utma-primary-color);
    margin-block: 10px;
    padding-left: 8px;
    padding-right: 8px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.result-bottom-container p {
    margin-block: 10px;
    font-size: 20px;
    text-align: center;
    font-weight: bold;
}

.results-containers {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.scorecard-main-container {
    width: 1440px;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 50px;
}

.scorecard-above-results-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 50px;
}

.scorecard-above-results-left {
    width: 45%;
    border-right: 2px #baae7c solid;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
}

.scorecard-above-results-right {
    width: 55%;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
}

.scorecard-top-col-33x3 {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 10px;
    box-sizing: content-box;
    margin-top: auto;
}

.scorecard-top-col-33x3 div {
    width: 33.3%;
}

.scorecard-top-col-33x3 div p {
    font-weight: bold;
    margin-block: 0;
    font-size: 14px;
}

.scorecard-above-results-right .col-3 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.scorecard-above-results-right .col-3 p {
    font-weight: bold;
}

.scorecard-above-results-right .col-3-big {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.scorecard-above-results-right .col-3-big p {
    font-size: 20px;
}

.scorecard-above-results-right .col-3-big h1 {
    font-size: 24px;
}

.scorecard-top-right-col-2 {
    width: 100%;
    display: flex;
    gap: 40px;
    margin-top: auto;
}

.scorecard-top-right-col-2 div span {
    display: block;
}

.scorecard-top-right-col-2 div p {
    font-weight: bold;
    margin-block: 0;
    font-size: 14px;
}

.scorecard-below-results-container {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    text-align: center;
}

.scorecard-below-results-container div {
    width: 450px;
    padding: 10px;
    box-sizing: border-box;
}

.scorecard-below-results-container div p {
    font-weight: bold;
    margin-block: 0;
}

.scorecard-below-results-container div:last-child {
    border: 2px var(--utma-primary-color) solid;
    border-radius: 10px;
}

.finalize-form {
    box-shadow: 1px 1px 8px 0px var(--utma-primary-color) !important;
    padding: 10px;
    width: fit-content;
    border-radius: 6px;
    text-align: center;
    margin: 20px auto 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Define the glow effect animation */
@keyframes glow {
    0% {
        box-shadow: 1px 1px 8px 3px var(--utma-primary-color);
    }
    100% {
        box-shadow: none;
    }
}

.glow {
    animation: glow 5s;
}

.lds-ring {
    color: #1c4c5b;
    margin-top: 20px;
    margin-bottom: 20px;

}

.lds-ring,
.lds-ring div {
    box-sizing: border-box;
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid currentColor;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: currentColor transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.current-round {
    color: white;
    text-align: center;
}

.round-completed {
    font-size: 12px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: var(--utma-primary-color);
    width: 200px;
    text-align: center;
}

input[type=checkbox] + label {
    display: block;
    margin: 0.3em;
    cursor: pointer;
    padding: 0.2em;
}

input[type=checkbox] {
    display: none;
}

input[type=checkbox] + label:before {
    content: "\2714";
    border: 0.1em solid white;
    border-radius: 0.2em;
    display: inline-block;
    width: 1em;
    height: 1em;
    padding-left: 0.2em;
    padding-bottom: 0.3em;
    margin-right: 0.2em;
    vertical-align: bottom;
    color: transparent;
    transition: .2s;
}

input[type=checkbox] + label:active:before {
    transform: scale(0);
}

input[type=checkbox]:checked + label:before {
    background-color: var(--utma-primary-color);
    border-color: var(--utma-primary-color);
    color: #fff;
}

input[type=checkbox]:disabled + label:before {
    transform: scale(1);
    border-color: #aaa;
}

input[type=checkbox]:checked:disabled + label:before {
    transform: scale(1);
    background-color: #bfb;
    border-color: #bfb;
}

.select-event-title {
    margin-top: 30px;
    text-align: center;
}

.select-event {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.action-btn {
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: var(--utma-border-radius);
    cursor: pointer;
    border: var(--utma-primary-color-border);
}

.edit-btn {
    background-color: #353535;
}

.delete-btn {
    background-color: #721c24;
}

/* Form styles */
.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: white;
}

.form-input {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    border: var(--utma-primary-color-border);
    border-radius: var(--utma-border-radius);
    background-color: #353535;
    color: white;
    font-family: 'Poppins';
    font-style: normal;
}

.form-textarea {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    border: var(--utma-primary-color-border);
    border-radius: var(--utma-border-radius);
    background-color: #353535;
    color: white;
    font-family: 'Poppins';
    font-style: normal;
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

.form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid var(--utma-primary-color);
    border-radius: var(--utma-border-radius);
    background-color: #1a1a1a;
}

.action-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.back-to-events {
    color: white;
    text-decoration: underline;
    text-align: center;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: 600;
}

.important-btn {
    background-color: forestgreen !important;
    color: white !important;
}
