@font-face {
    font-family: Metropolis;
    src: url(fonts/metropolis/Metropolis-Regular.otf);
}

@font-face {
    font-family: Metropolis;
    src: url(fonts/metropolis/Metropolis-Bold.otf);
    font-weight: bold;
}

:root {
    --COLOR_BANNER: #5db5df;
    --COLOR_BANNER_BORDER: #5692c3;
    --COLOR_URL: #4b97bb;

    --COLOR_HOME: #60a0d6;
    --COLOR_AWAY: #00c4cc;
    --COLOR_HOME_TEXT: #5692c3;
    --COLOR_AWAY_TEXT: #01a4ab;
    --COLOR_HOME_BG: #d3e9fb;
    --COLOR_AWAY_BG: #d9eaeb;
    --COLOR_MARQUEE: #f0f8ff;

    --bs-font-sans-serif: "Metropolis", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

html{
    height: -webkit-fill-available;
}
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    width: 100vw;
    overflow: hidden;
    background-color: #2d2d2d;

    font-family: "Metropolis", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";;
}

a{
    color: #0d79ae;
    cursor: pointer;
}



.ctaDiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #fff;
    z-index: 99;
}

#startARButton{
    margin-top: 40px;
    border-radius: 50px;
    padding: 8px 55px;
    background-color: #4ca2d6;
    color: white;
    border: 1px solid #ebe7e7;
    font-size: 20px;
    box-shadow: 0px 0px 6px 3px #e1e1e1;
    font-family: "Metropolis", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

#start-unity-logo{
    width: 154px; 
    height: 130px; 
    background: url('TemplateData/unity-logo-light.png') no-repeat center;
    background-size: contain;
}

.keep-ratio16_9 {
    height: unset !important;
    aspect-ratio: 1.77777; 
    max-height: 100%;
}


#unity-container, #video-canvas{
/*    height: 100vh;*/
    width: 70% !important;
}

#video-canvas{
    top: 0px;
    left: 0px;
    z-index: -1;
}

#unity-container {
    position: relative !important;
}



.listMatches{
    list-style: none;
    padding-left: 0px;
}


.listMatches li{

    padding: 3px 0px;
/*    background-color: #f0f0f0; */
    border-bottom: 1px solid #146a95;
    background: #f0f8ff;
    border-radius: 10px;
    margin-bottom: 3px;
    cursor: pointer;
}

.matchListDivider{
    padding: 3px 0px;
    border-bottom: 1px solid #146a95;
    background: var(--COLOR_BANNER);
    color: white;
    border-radius: 10px;
    margin-bottom: 3px;
} 

.listMatches .score{
    font-size: 20px;
    font-weight: bold;
}

.listMatches li a{
    color: unset;
    text-decoration: unset;
}

.listMatches li.matchSelected{
    background-color: #e2fdff;
}

.matchTime{
    color: var(--COLOR_AWAY_TEXT);
}

.competitionLabel{
    font-size: 13px;
}

#matchLabel{
    background-color: var(--COLOR_MARQUEE);
    height: 35px;
    padding: 5px 10px;
}


/*###########  TABS  ############*/
/* Style the tab */

#statisticsContainer{
    position: fixed;
    top: 0px;
    left: unset;
    right: 0px;
    height: 100%;
    width: 30%;
    background-color: #e2e2e2;
    color: black;
    overflow: none;
}

.tabList {
    position: relative;
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    display: flex;
}

/* Style the buttons inside the tab */
.tabList button {
    color: #3b3b3b;
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 6px 8px;
    transition: 0.3s;
    font-size: 16px;
}

/* Change background color of buttons on hover */
.tabList button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tabList button.active {
    background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
    position: relative;
    height: calc(100% - 61px);
/*    display: none;*/
/*    padding: 6px 12px 147px 12px;*/
    padding: 6px 12px 60px 12px;
    padding-bottom: ;
    border: 1px solid #ccc;
    border-top: none;
    background-color: #e2e2e2;
    overflow-y: scroll;

/*    background: url(/img/app/bg-bet.png);*/
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    background-attachment: local;
}

#tabPastMatches{
    padding-top: 0px;
}

#containerFloatingLeft, #containerFloatingRight{
    position: absolute;
    top: 8px;
    font-size: 14px;
    cursor: pointer;
}

#containerFloatingLeft{
    left: 10px;
}

#containerFloatingRight{
    right: 3px;
}

#btnReturnToLive{
    position: fixed;
    right: 21px;
    padding: 1px 8px;
    margin-top: -2px;
    font-size: 12px;
    color: #fb6c2a;
    background: #f6f4f4;
    border-radius: 9px;
    cursor: pointer;
    z-index: 999999;
}

#btnGoToStatsOnly{
    display: inline;
    position: relative;
    margin: 5px;
}

/*##################    SHOTS     #####################*/
#lblTeamScore{
    font-weight: bold;
    font-size: 27px;
    line-height: normal;
}

#lblCurrTime{
    font-size: 13px;
    line-height: normal;
} 
#lblExtraTime{
    font-size: 13px;
    line-height: normal;
    color: green;
}
.teamLogo{
    height: 40px;
    max-height: 100px;
    margin: 0px 20px;
}
.teamName{
    margin-top: 7px;
    border-radius: 15px;
    color: white;
    font-size: 13px;
    padding: 6px 10px;
    box-shadow: #9a9a9a 3px 3px 5px 0px;
    width: fit-content;
}
.homeTeamName{
    background-color: var(--COLOR_HOME);
}
.awayTeamName{
    background-color: var(--COLOR_AWAY);
}
.homeRedCards, .awayRedCards{
    background-color: red;
    vertical-align: super;
    font-size: 16px;
    border-radius: 4px;
    /*padding: 4px 4px 2px 4px;*/
    padding: 3px 0px 1px 0px;
    width: 15px;
    display: inline-block;
    color: white;
    /*line-height: 13px;*/
    font-weight: normal;
}
.homeRedCards{
    transform: rotate(-17deg);
    margin-right: -8px;
}
.awayRedCards{
    transform: rotate(17deg);
    margin-left: -8px;
}



#tabPlayers .homeTeamName, #tabPlayers .awayTeamName{
    border-radius: 30px;
    color: white;
}

#lblXGoal{
    font-size: 11px;
}
#homeXGoal{
    color: var(--COLOR_HOME_TEXT);
}
#awayXGoal{
    color: var(--COLOR_AWAY_TEXT);
}

.lblSubtitle{
    color: white;
    background-color: var(--COLOR_BANNER);
    background: linear-gradient(47deg, rgba(0, 212, 255, 1) 0%, rgba(0, 212, 255, 1) 14%, rgba(93, 181, 223, 1) 22%);
    border-radius: 7px;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
    box-shadow: #9a9a9a 3px 3px 5px 0px;
}


.shotItemGoal .shotTime{
    font-size: 14px;
}

.shotTime{
    color: #5b5b5b;
}

.shotItemGoal .shotTime{
    font-size: 14px;
}

.shotTime{
    color: #5b5b5b;
}

#tabScore .playerHome{
    text-align: right;
/*            padding-right: calc(50% - 9.5px);*/
    margin-right: calc(50% - 9px);
    color: var(--COLOR_HOME);
}

#tabScore .playerAway{
    text-align: left;
/*            padding-left: calc(50% - 9.5px);*/
    margin-left: calc(50% - 9px);
    color: var(--COLOR_AWAY);
}

.shotItem:hover{
    cursor: pointer;
}

.shotItem{
    font-size: 13px;
}

.shotItemGoal{
    padding: 7px 0px;
    font-size: 17px;
}

.shotItem.playerHome.active{
    background: var(--COLOR_HOME_BG);
    border-radius: 10px;
/*    padding-right: 6px;*/
}

.shotItem.playerAway.active{
    background: var(--COLOR_AWAY_BG);
    border-radius: 10px;
/*    padding-left: 6px;*/
}

#modalShareIFrame .close{
    padding: 9px 16px;
    background-color: #d5d5d5;
    color: white;
    border: none;
    border-radius: 5px;
}


.tabcontent .btn{
    border-radius: 20px;
}

.btn{
    box-shadow: #9a9a9a 3px 3px 5px 0px;;
}

.btn-primary{
    background-color: #51a1d8;
    border-color: #51a1d8;
}

.btn-primary:hover{
    background-color: #4692cb;
    border-color: #286897;
}

.btn-primary:active{
    background-color: #4692cb !important;
}

.btn-primary[readonly]{
    background-color: #51a1d8;
    border-color: #51a1d8;
    cursor: default;
}
.btn-primary[readonly]:hover{
    background-color: #51a1d8;
    border-color: #51a1d8;
    cursor: default;
}



/*########################################################*/
/* #####################   SELECT 2   ####################*/
/* #######################################################*/
.pillFilter, .select2, .select2-selection{
    height: 40px;
    display: inline-block;
    padding: 0px 5px;
    margin-top: 5px;
    color: gray;
    font-size: 13px;    
    background-color: white;
    border: 2px solid var(--COLOR_BANNER_BORDER) !important;
    border-radius: 21px;
    transition: all 0.2s ease-in;
}

.select2-selection{
    border: 0px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow{
    top: 19px;
    right: 4px;
    font-size: 38px;
    margin-top: -14px;
    font-weight: normal;
    color: #5db5df;
}

.select2-container--default .select2-selection--single .select2-selection__clear{
    font-size: 38px;
    margin-top: -14px;
    font-weight: normal;
    color: #5db5df;
}

/* #######################################################*/
/* ###########   Replay Window Floating   ################*/
/* #######################################################*/
#replayFloatingContainer{
    position: absolute !important;
    aspect-ratio: 16 / 9;
    height: 154px;
    background: rgb(93, 181, 223);
    bottom: 10%;
    left: 10%; 
    border-radius: 13px;
    cursor: pointer;
    filter: grayscale(0.7);
}

#overlayToDrag{
    width: 100%;
    height: 100%;
    position: absolute;
}

#replayIframe{
    width: 100%;
    height: 100%;
    padding: 2px;
    border-radius: 11px;
}

#btnFloatingClose{
    background: white;
    border-radius: 15px;
    width: 27px;
    text-align: center;
    position: absolute;
    top: 0px;
    right: 0px;
    /*top: -11px;*/
    /*right: -11px;*/
    border: 1px solid #5db5df;
    cursor: pointer;
}

#btnFloatingFullscreen{
    position: absolute;
    bottom: 0px;
    right: 0px;
    /*bottom: -11px;*/
    /*right: -11px;*/
    width: 27px;
    height: 27px;
    padding-top: 2px;
    background: white;
    border: 1px solid #5db5df;
    text-align: center;
    border-radius: 15px;
    cursor: pointer;
}

/* #######################################################*/
/* ################   2D TAB CONTENT   ###################*/
/* #######################################################*/

._2DStatsSubtitle{
    color: #324250;
    text-align: center;
}

/*._2DStatsSubtitle:hover{
    cursor: pointer;
}*/

._2DStatContainer{
    width: 100%;
    text-align: center;
}

._2DStatHomeValue, ._2DStatAwayValue, ._2DStatPercentageContainer{
    display: inline-block;
    color: #5c5c5c;
    font-size: 14px;
}
            
._2DStatPercentageContainer{
    display: inline-block;
    width: calc(100% - 77px);
    padding: 0px 9px;
}

._2DStatHomePercentage{
    background-color: var(--COLOR_HOME);
    height: 100%;
    border-radius: 10px 0px 0px 10px;
}

._2DStatAwayPercentage{
    width: 100%;
    height: 13px;
    background-color: var(--COLOR_AWAY);
    border-radius: 10px;
}


#rowPastMatchFilters{
    position: sticky;
    top: 0px;
    left: 0px;
    background: #e2e2e2;
    padding-top: 7px;
    padding-bottom: 12px;
    z-index: 9;
}





/*############################################################*/

@media only screen and (max-width: 575px) {
    ._2DStatsSubtitle{
        font-size: 13px;
    }

    ._2DStatHomeValue, ._2DStatAwayValue, ._2DStatPercentageContainer{
        font-size: 13px;
    }

    #replayFloatingContainer{
        height: 82px;
    }

    #containerFloatingLeft, #containerFloatingRight{
        display: none;
    }

    .matchTime{
        font-size: 13px;
    }

    .homeRedCards, .awayRedCards{
        padding: 1px 0px 0px 0px;
    }
}

/*############################################################*/

@media only screen and (max-width: 1280px) {
    #unity-container, #video-canvas{
        width: 60% !important;
    }

    #statisticsContainer{
        width: 40%;
    }
}

@media only screen and (max-width: 1024px) {
    #unity-container, #video-canvas{
        width: 100% !important;
/*        height: 50%;*/
    }

    #startARDiv{
        width: 100%;
        margin-right: auto;
    }

    #statisticsContainer{
        position: relative;
        top: 50%;
/*                bottom: 0px;*/
        left: 0px;
        width: 100%;
        height: 50%;
    }

    .tabList{
        overflow-x: auto;
    }

    .tabList button {
        padding: 6px 13px;
    }
}
