html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 0.85em;
}

.wrapper {
    background: center center url("../images/deer-silhouette-bg.jpg") / contain no-repeat;
}

@media print {
    .wrapper {
        background: none;
    }
}

.bracket {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.round {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

@media print {
    .round {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
        width: 18%;
    }
}

.round:nth-of-type(1) {
    -webkit-box-ordinal-group: 5;
    -ms-flex-order: 4;
    order: 4;
}

.round:nth-of-type(2) {
    -webkit-box-ordinal-group: 4;
    -ms-flex-order: 3;
    order: 3;
}

.round:nth-of-type(3) {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
}

.round:nth-of-type(4) {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
}

.round:first-child .match::before {
    display: none;
}

.round:first-child .match__content::before {
    display: none;
}

.round:nth-of-type(1) .match:nth-child(2n + 1) {
    margin-top: 5px;
}

.round:nth-of-type(1) .match:nth-child(2n + 2) {
    margin-bottom: 5px;
}

.round.first .match__content {
    background-color: #e2edf6;
    border-color: #1161a7;
}

    .round.first .match__content::before {
        border-color: #1161a7;
    }

.round.second .match__content {
    background-color: #e2f5d2;
    border-color: #84a56a;
}

    .round.second .match__content::before {
        border-color: #84a56a;
    }

.round.second .match::after {
    border-color: #1161a7;
}

.round.third .match__content {
    background-color: #fbf5b1;
    border-color: #ccc768;
}

    .round.third .match__content::before {
        border-color: #ccc768;
    }

.round.third .match::after {
    border-color: #84a56a;
}

.round.fourth .match__content {
    background-color: #f4cf92;
    border-color: #d3a456;
}

    .round.fourth .match__content::before {
        border-color: #d3a456;
    }

.round.fourth .match::after {
    border-color: #ccc768;
}

.round.fifth .match__content {
    background-color: #f49292;
    border-color: #d25555;
}

    .round.fifth .match__content::before {
        border-color: #f49292;
    }

.round.fifth .match::after {
    border-color: #d3a456;
}

@media (max-width: 599px) {
    .round.third .match__content::before {
        display: none;
    }

    .round.fourth {
        display: none;
    }
}

@media (max-width: 839px) {
    .round.fourth .match__content::before {
        display: none;
    }

    .round.fifth {
        display: none;
    }
}

.match {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 0 14px;
    padding: 3px 0;
    position: relative;
}

    .match::after {
        border: 3px solid transparent;
        border-left-color: #000;
        border-right-color: transparent !important;
        content: "";
        display: block;
        height: calc(50% + (3px / 2));
        left: -14px;
        position: absolute;
        width: 14px;
    }

    .match:nth-child(odd)::after {
        border-bottom-color: transparent !important;
        border-top-color: #000;
        top: calc(50% + (3px / 2));
    }

    .match:nth-child(even)::after {
        border-bottom-color: #000;
        border-top-color: transparent !important;
        bottom: calc(50% + (3px / 2));
    }

.match__content {
    border: 2px solid;
    border-radius: 8px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-family: sans-serif;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    line-height: 1;
    min-height: 3.25em;
    padding: 0.625em;
    position: relative;
    width: 100%;
}

@media print {
    .match__content {
        page-break-inside: avoid;
    }
}

.match__content::before {
    content: "";
    border-bottom: 3px solid #000;
    display: block;
    margin-left: -3px;
    position: absolute;
    right: calc(-14px - 2px);
    top: 50%;
    width: 14px;
}

