@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900');


body {
	font-family: 'Roboto', sans-serif;
	margin: 0;
	color: #414244;
}


header{
	margin: 10px;
}
header h1 {
    text-transform: uppercase;
    font-style: italic;
    text-align:center;
    margin-top:50px;
}

#cpt-ctnr {
    display:inline-block;
    width:100%;
}

.cpt-bloc {
    display: inline-block;
    margin: 30px 0.4%;
    width: 47%;
    max-width:100vw;
    box-sizing: border-box;
    text-align: center;
    background-color: #1231;
    border: solid 7px #00c9ff;
    /*border: solid 7px #2196ef;*/
    border-radius: 22px;
    box-shadow: 0px 6px 80px #1232;
    position: relative;
}

.cpt-ttl, .cpt-ttl-teams, .match-bloc { margin-top: 18px; }
.cpt-ttl h3 {
	margin: 0;
	text-transform: uppercase;
    font-size: 23px;
    color: #3A3D3F;
    text-shadow: 2px 1px 0px #FFF;
}

.cpt-ttl-teams {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-image: linear-gradient(126deg, #00c9ff 50%,#fff 50%);
}
.cpt-ttl-teams .cpt-tt-bloc{ width:50%; box-sizing:border-box; }
.cpt-ttl-teams .cpt-tt-bloc.mp1{
    background: none;
    text-align: right;
    padding-bottom: 8px;
}
.cpt-ttl-teams .cpt-tt-bloc.mp2{
    background: none;
	text-align:left;
    padding-top: 8px;
    color: #2A2B2C;
}
.cpt-ttl-teams h4{
    margin: 10px;
    font-size: 21px;
    font-weight: 300;
    letter-spacing: 0.3px;
    height: 36px;
    overflow-y: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cpt-ttl-teams h4 span.team-score {
    font-weight: 700;
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 28px;
    text-align: center;
    border: solid 4px;
    border-radius: 30px;
    box-sizing: border-box;
    margin: 0 2%;
}

.home-icon {
    display:inline-block;
    height: 32px;
    width: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 1px 6px 0;
}
.mp1 .home-icon {
    background-image: url('../img/home-w.svg');
    float:left;
}
.mp2 .home-icon {
    background-image: url('../img/home-b.svg');
    float:right;
}



/* MATCH */

.match-bloc:first-child { border: none; }

.match-bloc {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position:relative;
}

.mp1{ background-color: #00c9ff; color: #fff; text-shadow: 1px 1px 1px #6AF; }
.mp2{ background-color: #fff; color: #4A4B4D; }

.mp-name{
	width: 50%;
	height: 56px;
	display:flex;
}
.mp-name.mp1{
	justify-content:flex-end;
	align-items: flex-start;
    background-image: linear-gradient(126deg, #00c9ff calc(100% - 17px),#fff calc(100% - 16px));
    background-size: calc(100% + 1px);
}
.mp-name.mp2{
	justify-content:flex-start;
	align-items: flex-end;
	background-image: linear-gradient(126deg, #00c9ff 16px,#fff 17px);
}
.mpn{
	padding: 4px 2vw 5px 2vw;
	font-weight: 500;
    font-size:17px;
    position:relative;
}
.mp1 .mpn{ padding-left: 2px; text-align:right; }
.mp2 .mpn{ padding-right: 2px; text-align:left; }
.match-bloc:last-child .mp-name.mp1{ border-bottom-left-radius: 14px; }
.match-bloc:last-child .mp-name.mp2{ border-bottom-right-radius: 14px; }

.mscore {
	display:flex;
	/*font-weight:300;*/
}
.sc-blc {
	display: flex;
	flex-direction: column;
	justify-content:space-around;
	align-items:center;
	/*border-right: solid 1px #F0F4F7;*/
}
.sc-blc:last-child{ border-right:none; }
.sc-blc span {
	padding: 3px;
	width: 29px;
	height: 28px;
	box-sizing: border-box;
}
.sc-blc .mp1{
	border-right:solid 2px #fff;
	font-weight:500;
}
.sc-blc .mp2{
	border-right:solid 2px #00c9ff;
}

/* win - loss */
.match-won .mpn, .cpt-won h4 {
    text-decoration: underline;
    font-weight: 900;
}
.sc-blc span.set-won { font-weight:900;text-decoration:underline; }
.sc-blc span.set-lost {  }

.match-finished .sc-blc.score-pts { display: none; }

.sc-blc:last-child span{ border-right:none; }

.score-pts span { width: 34px; }
.icon-serve {
    height: 18px;
    width: 18px;
    background-image: url('../img/ball.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius:20px;
    display: none;
}
.serving .icon-serve { display:inline-block; }
.mp1 .icon-serve { margin: 2px -11px 10px 6px; float:right; }
.mp2 .icon-serve { margin: 3px 6px 0px -11px; float:left; }
.match-finished .icon-serve { display:none; }
/*
.match-won .mpn::before {
    content: '';
    display: block;
    height: 22px;
    width: 22px;
    background-image: url('../img/trophy.svg');
    background-size:contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top:5px;
}
.match-won.mp1 .mpn::before { left: -28px; }
.match-won.mp2 .mpn::before { right: -28px; }
*/

.match-won .icon-serve {
    background-image: url('../img/trophy.svg');
    display: inline-block;
    border-radius:0px;
    height:22px;
    width:22px;
    margin-top:1px;
}
.match-won.mp1 .icon-serve { margin-right:-8px; }
.match-won.mp2 .icon-serve { margin-left:-8px; }


/* FOOTER */

#copyright {
    color: #C2C5C7;
    font-size: 0.8em;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.2px;
    margin: 45px 5% 25px 5%;
    text-align: center;
}
#copyright .cpycpy { font-style:normal; font-weight:500; }



/* EDIT */


.match-bloc {
    margin-top: 30px;
}

.edit-plus {
    font-size: 20px;
    height: 25px;
    width: 25px;
    border-radius: 30px;
    border: solid 3px;
    line-height: 17px;
    box-sizing: border-box;
    display: inline-block;
    margin: 0px 5px;
    text-align: center;
}
.edit-plus:hover {
    cursor:pointer;
    opacity:0.8;
}
.mp1 .edit-plus { margin: -1px -1px -2px 4px; float: right; color: #E4E8EF; }
.mp2 .edit-plus { margin: -1px 5px -1px -3px; float: left; color: #84888D; }
.match-finished .edit-plus{ display:none; }


.add-cpt {
    width: 99%;
    margin: 30px 0;
    box-sizing:border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}
.add-btn-bloc {
    display: block;
    text-align: center;
    color: #808488;
    text-decoration: none;
}
.add-btn-bloc:hover {
    color: #AAA;
}
.add-btn-bloc .ac-plus {
    display: block;
    height: 34px;
    width: 34px;
    font-size: 33px;
    font-weight: 400;
    line-height: 34px;
    border: solid 4px;
    border-radius: 60px;
    text-align: center;
    margin: 2px auto;
    text-decoration: none;
}
.add-btn-bloc .ac-txt {
    font-size: 14px;
}

.add-btn-bloc.add-match-btn {
    margin: 10px auto;
    width: 140px;
}

/* DELETE CROSS */
.delete-btn {
    position: absolute;
    top: -24px;
    left: 0px;
    border: solid 4px;
    border-radius: 40px;
    height: 30px;
    width: 30px;
    font-size: 30px;
    color: #ff490e;
    line-height: 30px;
    background-color: #EEE;
}
.delete-btn:hover {
    opacity:0.8;
    cursor:pointer;
}


.btn-options{
    position: absolute;
    top: -13px;
    left: 10px;
    border: solid 4px;
    border-radius: 40px;
    height: 20px;
    width: 20px;
    font-size: 20px;
    font-weight: 800;
    color: #84888D;
    line-height: 9px;
    background-color: #EEE;
    text-decoration:none;
    z-index: 10;
}
.btn-options:hover{
    opacity:0.8;
    cursor:pointer;
}


/******************/
/**  RESPONSIVE  **/
/******************/

@media all and (min-width: 901px) {
    div.cpt-bloc {
        margin-top: 10px;
        margin-bottom: 20px;
    }
    div.cpt-bloc:nth-child(2n+1){
        float:left;
        margin-left: 2%;
    }
    div.cpt-bloc:nth-child(2n){
        float:right;
        margin-right: 2%;
    }
}


/* BLOCS VERTICAL */ 

@media all and (max-width: 900px) and (min-width:721px) {
    .cpt-bloc {
        margin: 30px 9% 30px 10%;
        width: 80%;
    }
}

@media all and (max-width: 720px) and (min-width:601px){
    .cpt-bloc {
        margin: 30px 4% 30px 5%;
        width: 90%;
    }
}



/*****************************/
/* BLOCS AND MATCHS VERTICAL */
/*****************************/

@media all and (max-width:600px) {
    
    .cpt-bloc {
        margin: 30px 1.5% 30px 2%;
        width: 96%;
    }

    #cpt-ctnr .match-bloc, #cpt-ctnr .cpt-ttl-teams{
        flex-direction:column;
    }
    .match-bloc:last-child .mp-name.mp1{ border-bottom-left-radius:0px; }
    .match-bloc:last-child .mp-name.mp2{ border-bottom-left-radius:14px; }

    #cpt-ctnr div.cpt-tt-bloc{
        width:100%;
        padding:0;
        text-align:center;
    }

    #cpt-ctnr div.mp-name{
        width: 100%;
        justify-content:center;
    }
    #cpt-ctnr .mscore{
        /* height:0; */
        z-index:2;
        /* GA 04/2025 - Changement interprétation navigateur */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .cpt-ttl-teams .cpt-tt-bloc.mp1{
        background-image: linear-gradient(126deg, #00c9ff calc(100% - 17px),#fff calc(100% - 16px));
    }
    .cpt-ttl-teams .cpt-tt-bloc.mp2{
        background-image: linear-gradient(126deg, #00c9ff 16px,#fff 17px);
    }


    .edit-plus {
        position: absolute;
        height: 38px;
        width: 38px;
        font-size: 33px;
        font-weight: 400;
        line-height: 27px;
        border-width: 4px;
    }
    .mp1 .edit-plus {
        right: -55px;
        top: 7px;
    }
    .mp2 .edit-plus {
        left: -55px;
        bottom: 8px;
    }

}








