html,
body {
    width: auto;
    height: 100%;
    margin: 0px;
    padding: 0px;
    font-size: 1em;
    font-family: sans-serif;
    overflow: hidden;
}

polygon {
    fill: url(#grad);
}

@keyframes bounce-3 {
    0% {
        transform: translateX(-200%);
    }

    30% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-80%);
    }
}

/* The animation code */
@keyframes static-animation {
    0% {
        background-color: red;
    }

    25% {
        background-color: yellow;
    }

    50% {
        background-color: blue;
    }

    100% {
        background-color: green;
    }
}

@keyframes ball-animation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes ball-animation-2 {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ball-animation-3 {
    0% {
        transform: scale(.5);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

@-prefix-keyframes slide {
    from {
        height: 0;
    }

    to {
        height: 300px;
    }
}

.show {
    display: '';
}

.hide {
    display: none !important;
}

.trans {
    opacity: 0;
}

.error {
    width: 100%;
    height: 100%;
    background-color: #00000080;
    color: #fff;
    top: 0;
    position: absolute;
}

.error-message {
    width: 100%;
    height: 100%;
    line-height: calc(100vh - 20vh);
    font-size: 6vh;
}

.fixture {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    height: 10vh;
    color: #000;
    display: block;
    width: calc((100*5)/3.47*1vh);
    color: inherit;
}

.fixture-soccer {
    background-color: #16350e;
    color: #fff;
}

.fixture-basketball {
    background-color: #994104;
    color: #fff;
}

.fixture-volleyball {
    background-color: #134a5b;
    color: #fff;
}

.fixture-tennis {
    background-color: #134a5b;
    color: #fff;
}

.fixture-baseball {
    background-color: #134a5b;
    color: #fff;
}

.fixture-table-tennis {
    background-color: #134a5b;
    color: #fff;
}

.participants-holder {
    display: flex;
    color: inherit
}

.home-holder {
    width: calc(50vw - 25vh);
    font-size: 5vh;
    line-height: 10vh;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 3vh;
    margin-right: auto;
    cursor: help;
    color: inherit
}

.away-holder {
    width: calc(50vw - 25vh);
    font-size: 5vh;
    line-height: 10vh;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: auto;
    margin-right: 3vh;
    cursor: help;
    color: inherit
}

.jerseys {
    /* position:absolute;
    top: 10vh;
    height:0.5vh;
    z-index: 100; */
    position: absolute;
    top: 10vh;
    height: 0.5vh;
    z-index: 1000;
    left: 50%;
}

.jersey-home {
    /* width: 6vw;
    height: 100%;
    position: absolute;
    left: 40vw;
    transform: translateX(-50%); */
    width: 16vh;
    height: 100%;
    position: absolute;
    transform: translateX(-50%);
}

.jersey-away {
    /* width: 6vw;
    height: 100%;
    position: absolute;
    left: 50vw;
    transform: translateX(-120%); */
    width: 8vh;
    height: 100%;
    position: absolute;
}

.score {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    line-height: 10vh;
    font-size: 7vh;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #00000040;
    font-weight: bold;
    color: #ffdf1b;
}

.vl-court-holder {
    max-width: 2560px;
    max-height: 1600px;
    width: auto;
    height: 100%;
    display: block;
}

.vl-court-box {
    text-align: center;
    border: 0px;
    padding: 0px;
    max-width: 2560px;
    max-height: 1600px;
    width: auto;
    height: 100%;
}

.court-holder {
    background-size: contain;
    background-position: center;
    resize: both;
    object-fit: cover;
    display: block;
    max-width: 2560px;
    max-height: 1600px;
    width: auto;
    height: 100%;
}

.court-soccer-short {
    background-image: url('../svgs/soccer-field-short.svg');
}

.court-soccer-short-soft {
    background-image: url('../svgs/soccer-field-short-soft.svg');
}

.court-soccer-plain {
    background-image: url('../svgs/soccer-field-plain.svg');
}

.court-soccer-plain-soft {
    background-image: url('../svgs/soccer-field-plain-soft.svg');
}

.court-soccer-wide {
    background-image: url('../svgs/soccer-field-wide.svg');
}

.court-soccer-wide-soft {
    background-image: url('../svgs/soccer-field-wide-soft.svg');
}



.court-basketball-plain {
    background-image: url('../svgs/basketball-field-plain.svg');
    transform: scale(136%);
}

.court-basketball-plain-soft {
    background-image: url('../svgs/basketball-field-plain.svg');
    transform: scale(136%);
}

.court-basketball-wide {
    background-image: url('../svgs/basketball-field-wide.svg');
    transform: scale(136%);
}

.court-basketball-wide-soft {
    background-image: url('../svgs/basketball-field-wide.svg');
    transform: scale(136%);
}




.court-tennis-plain {
    background-image: url('../svgs/tennis-field-plain.svg');
    transform: scale(2) rotate(90deg);
}

.court-tennis-plain-soft {
    background-image: url('../svgs/tennis-field-plain.svg');
    transform: scale(2) rotate(90deg);
}

.court-tennis-wide {
    background-image: url('../svgs/tennis-field-plain.svg');
    transform: scale(2) rotate(90deg);
}

.court-tennis-wide-soft {
    background-image: url('../svgs/tennis-field-plain.svg');
    transform: scale(2) rotate(90deg);
}



.court-volleyball-plain {
    background-image: url('../svgs/volleyball-field-plain.svg');
    transform: scale(1.9) rotate(90deg);
    transform-origin: 48% 48%;
}

.court-volleyball-plain-soft {
    background-image: url('../svgs/volleyball-field-plain.svg');
    transform: scale(2.25) rotate(90deg);
    transform-origin: 47.75% 48.5%;
}

.court-volleyball-wide {
    background-image: url('../svgs/volleyball-field-plain.svg');
    transform: scale(2.25) rotate(90deg);
    transform-origin: 47.75% 48.5%;
}

.court-volleyball-wide-soft {
    background-image: url('../svgs/volleyball-field-plain.svg');
    transform: scale(2.25) rotate(90deg);
    transform-origin: 47.75% 48.5%;
}


.court-baseball {
    background-image: url('../svgs/soccer-field-short.svg');
}

.court-table-tennis {
    background-image: url('../svgs/soccer-field-short.svg');
}

.court-holder-short {
    background-image: url('../svgs/soccer-field-short.svg');
    background-size: contain;
    /* height: calc(100% - 4em - 10px);
    width:auto; */
    background-position: center;
    resize: both;
    object-fit: cover;
    display: block;
    max-width: 2560px;
    max-height: 1600px;
    width: auto;
    height: 100%;
}

.court-holder-short-soft {
    background-image: url('../svgs/soccer-field-short-soft.svg');
    background-size: contain;
    /* height: calc(100% - 4em - 10px);
    width:auto; */
    background-position: center;
    resize: both;
    object-fit: cover;
    display: block;
    max-width: 2560px;
    max-height: 1600px;
    width: auto;
    height: 100%;
}

.court-holder-plain {
    background-image: url('../svgs/soccer-field-plain.svg');
    background-size: contain;
    /* height: calc(100% - 4em - 10px);
    width:auto; */
    background-position: center;
    resize: both;
    object-fit: cover;
    display: block;
    max-width: 2560px;
    max-height: 1600px;
    width: auto;
    height: 100%;
}

.court-holder-plain-soft {
    background-image: url('../svgs/soccer-field-plain-soft.svg');
    background-size: contain;
    /* height: calc(100% - 4em - 10px);
    width:auto; */
    background-position: center;
    resize: both;
    object-fit: cover;
    display: block;
    max-width: 2560px;
    max-height: 1600px;
    width: auto;
    height: 100%;
}

.court-holder-wide {
    background-image: url('../svgs/soccer-field-wide.svg');
    background-size: contain;
    /* height: calc(100% - 4em - 10px);
    width:auto; */
    background-position: center;
    resize: both;
    object-fit: cover;
    display: block;
    max-width: 2560px;
    max-height: 1600px;
    width: auto;
    height: 100%;
}

.court-holder-wide-soft {
    background-image: url('../svgs/soccer-field-wide-soft.svg');
    background-size: contain;
    /* height: calc(100% - 4em - 10px);
    width:auto; */
    background-position: center;
    resize: both;
    object-fit: cover;
    display: block;
    max-width: 2560px;
    max-height: 1600px;
    width: auto;
    height: 100%;
}

.court-mask {
    max-width: 2560px;
    max-height: 1600px;
    width: calc((100*5)/3.47*1vh);
    height: calc(100% - 10vh);
    transform: translateX(-50%);
    position: absolute;
    left: 50%;
    top: 10vh;
}

.ball-holder {
    width: auto;
    height: 100%;
    z-index: 10000;
    position: relative;
}

.ball-holder>svg {
    filter: drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.4));

}

#events {
    max-width: 80%;
    max-height: 50%;
    display: block;
    overflow: auto;
}

.ball-animation-1 {
    border-radius: 999px;
    border: 2px solid #fff;
    animation-name: ball-animation;
    animation-duration: 2s;
    animation-delay: .15s;
    animation-iteration-count: infinite;
    animation-direction: forwards;
    animation-timing-function: cubic-bezier(0, 0, .115, .99);
    transform: scale(0);
}

.ball-animation-2 {
    position: absolute;
    background: #fff;
    width: 12px;
    height: 12px;
    top: 0;
    left: 0;
    margin-top: 16px;
    margin-left: 16px;
    border-radius: 999px;
    animation-name: ball-animation-2;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: cubic-bezier(0, 0, .115, .99);
}

.vertical-center {
    margin: 0;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.clock-holder {
    -webkit-transition-property: font-size, line-height, min-width;
    transition-property: font-size, line-height, min-width;
    margin-top: 1px;
    font-size: 5vh;
    line-height: 8vh;
    min-width: 12vh;
    text-align: center;
    padding: 0 8px 1px;
    border-radius: 0 0 1px 1px;
    position: absolute;
    top: 10vh;
    left: 50%;
    z-index: 41;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    background-color: #165031;
    color: #12e096;
}

.clock-soccer {
    background-color: #165031 !important;
    color: #12e096 !important;
}

.clock-basketball {
    background-color: #733103d1 !important;
    color: #e0b612 !important;
}

.clock-volleyball {
    background-color: #0e3844a3 !important;
    color: #12c3e0 !important;
}



.event {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 10;
    width: max-content;
    height: max-content;
    /* border: 1px solid #000;
    background-color: #00000075; */
    color: #fff;
    padding: 20px;
    transform: translate(-50%, -50%);
    text-align: center;
    animation: 'slide' 3s ease 0s forwards
}

.event-box {
    border: 1px solid #000 !important;
    background-color: #00000075;
    text-align: center !important;
    padding: 20px !important;
    max-width: 50%;
}

.no-event {
    display: none;
}

.event-1 {
    text-align: right;
    border-right: 3px solid;
    padding: 5px 10px;
}

.event-2 {
    text-align: left;
    border-left: 3px solid;
    padding: 5px 10px;
}

.fixture-event {
    font-size: 6vh !important;
    font-weight: bold;
    color: #FFF !important;
}

.s-pos-1 {
    width: 50%;
    height: 100%;
    position: absolute;
    background-image: linear-gradient(to right, #00000050, #00000080);
    z-index: 9;
    left: 50%;
    transform: translateX(-100%);
}

.s-pos-1>.event-1 {
    min-width: 50% !important;
    max-width: 50% !important;
}

.s-pos-1>.event-1>.participant {
    max-width: 35vw;
}

.s-pos-2 {
    width: 50%;
    height: 100%;
    position: absolute;
    background-image: linear-gradient(to left, #00000050, #00000080);
    z-index: 9;
    left: 50%;
}

.s-pos-2>.event-2 {
    min-width: 50% !important;
    max-width: 50% !important;
}

.s-pos-2>.event-2>.participant {
    max-width: 35vw;
}

.a-1 {
    width: 65%;
    height: 100%;
    position: absolute;
    background-image: linear-gradient(to right, #00000010, #00000020, #00000050, #00000080, #00000090, #ff000030);
    z-index: 9;
    left: 65%;
    transform: translateX(-100%);
}

.a-1>.event-1 {
    min-width: 65% !important;
    max-width: 65% !important;
    transform: translate(-30%, -50%) !important;
}

.a-1>.event-1>.participant {
    max-width: 35vw;
}

.a-1::after {
    background-image: url('../svgs/a-arrow.svg');
    content: ' ';
    position: absolute;
    left: 100%;
    max-width: 400px;
    max-height: 2000px;
    height: calc(100vh - 10vh);
    background-size: contain;
    width: calc((100vh - 10vh)/5);
    z-index: 9;
}

.a-2 {
    width: 65%;
    height: 100%;
    position: absolute;
    background-image: linear-gradient(to left, #00000010, #00000020, #00000050, #00000080, #00000090, #ff000030);
    z-index: 9;
    left: 35%;
}

.a-2>.event-2 {
    min-width: 65% !important;
    max-width: 65% !important;
    transform: translate(-75%, -50%) !important;
}

.a-2>.event-2>.participant {
    max-width: 35vw;
}

.a-2::after {
    background-image: url('../svgs/a-arrow.svg');
    content: ' ';
    position: absolute;
    left: calc(-1*(100vh - 10vh)/5);
    max-width: 400px;
    max-height: 2000px;
    height: 100vh;
    background-size: contain;
    width: calc((100vh - 10vh)/5);
    z-index: 9;
    transform: rotate(180deg);
    top: -10vh;
}

.da-1 {
    width: 80%;
    height: 100%;
    position: absolute;
    background-image: linear-gradient(to right, #00000010, #00000020, #00000050, #00000080, #00000090, #ff000050);
    z-index: 9;
    left: 80%;
    transform: translateX(-100%);
    /* animation-duration: 2s;
    animation-iteration-count: 1;
    animation-name: bounce-3;
    animation-timing-function: ease; */
}

.da-1>.event-1 {
    max-width: 80%;
    left: 74% !important;
}

.da-1>.event-1>.participant {
    max-width: 35vw;
}

.da-1::after {
    background-image: url('../svgs/da-arrow.svg');
    content: ' ';
    position: absolute;
    left: 100%;
    max-width: 400px;
    max-height: 2000px;
    height: calc(100vh - 10vh);
    background-size: contain;
    width: calc((100vh - 10vh)/5);
    z-index: 9;
}

.da-2 {
    width: 80%;
    height: 100%;
    position: absolute;
    background-image: linear-gradient(to left, #00000010, #00000020, #00000050, #00000080, #00000090, #ff000050);
    z-index: 9;
    left: 20%;
}

.da-2>.event-2 {
    max-width: 80%;
    left: 26% !important;
}

.da-2>.event-2>.participant {
    max-width: 35vw;
}

.da-2::after {
    background-image: url('../svgs/da-arrow.svg');
    content: ' ';
    position: absolute;
    left: calc(-1*(100vh - 10vh)/5);
    max-width: 400px;
    max-height: 2000px;
    height: 100vh;
    background-size: contain;
    width: calc((100vh - 10vh)/5);
    z-index: 9;
    transform: rotate(180deg);
    top: -10vh;
}

.whistle {
    font-size: 4.5vh;
    padding-bottom: 2vh;
    color: #11e180;
    color: #e1ca11;
}

.participant {
    font-size: 5vh;
    font-weight: bold;
}

.event-icon {
    position: absolute;
    content: '';
    width: 10vh;
    height: 10vh;
    line-height: 2vh;
    filter: drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.4));
}

.courts {
    display: flex;
    gap: 10px;
    row-gap: 10px;
    column-gap: 10px;
    flex-wrap: wrap;
    height: calc(100vh - 200px);
    overflow: scroll;
}

.ball-round-holder {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.corner {
    background-image: url('../svgs/corner.svg');
}

.freekick {
    background-image: url('../svgs/corner.svg');
}

.throwin {
    background-image: url('../svgs/corner.svg');
}

.shotontarget {
    background-image: url('../svgs/corner.svg');
}

.shotofftarget {
    background-image: url('../svgs/corner.svg');
}

.yellowcard {
    background-image: url('../svgs/yellow-card.svg');
}

.redcard {
    background-image: url('../svgs/corner.svg');
}

.substitution {
    background-image: url('../svgs/corner.svg');
}