*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}
 
/* Chrome */
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button { 
	-webkit-appearance: none;
	margin:0;
}
 
/* Opéra*/
input::-o-inner-spin-button,
input::-o-outer-spin-button { 
	-o-appearance: none;
	margin:0
}


::-webkit-scrollbar{
    display:none;
}

/* Location of the image */
body{
    background-image: url(parquet.jpeg);

	/* Background image is centered vertically and horizontally at all times */
	background-position: center center;

	/* Background image doesn’t tile */
	background-repeat: no-repeat;

	/* Background image is fixed in the viewport so that it doesn’t move when
	the content’s height is greater than the image’s height */
	background-attachment: fixed;

	/* This is what makes the background image rescale based
	on the container’s size */
	background-size: cover;
}
.flex-center{
    display:flex;
    justify-content: space-around;
}
.flex-vert{
    height:100%;
    display:flex;
    flex-direction: column;
    justify-content: space-around;
}
.flex-vert-center{
    height:100%;
    display:flex;
    flex-direction: column;
    justify-content: center;
}


*{
    font-family:'Karla', 'Calibri', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif
}

/* div en position absolute qui apparaît quand on clique pour choisir une couleur  d'équipe */
#colorChoice-main-container{ 
    display:none;

    position: absolute;
    z-index:2;

    height:500px;
    width:800px;
    
    top: 50vh; /*poussé de la moitié de hauteur de viewport */
    left: 50vw; /* poussé de la moitié de largeur de viewport */
    transform: translate(-50%,-50%); /* tiré de la moitié de ses propres largeur et hauteur */
    
    background-color:#d0d2db;              
    color:#000000;

    border:solid 15px #000000;
    border-radius: 20px;    
}
                .color-select{
                    height:120px;
                    width:155px;

                    border-radius:20px;
                    border: solid 2px black
                }
                .color-select[data-color="white"]{
                    background-color: white;
                }
                .color-select[data-color="orange"]{
                    background-color: orange;
                }
                .color-select[data-color="yellow"]{
                    background-color: yellow;
                }
                .color-select[data-color="#2286C7"]{
                    background-color: #2286C7;
                }
                .color-select[data-color="pink"]{
                    background-color: pink;
                }
                .color-select[data-color="green"]{
                    background-color: green;
                }
                .color-select[data-color="red"]{
                    background-color: red;
                }
                .color-select[data-color="purple"]{
                    background-color: purple;
                }
                .color-select[data-color="black"]{
                    background-color: black;
                }
                .color-select[data-color="blue"]{
                    background-color: blue;
                }
                .color-select[data-color="brown"]{
                    background-color: brown;
                }
                .color-select[data-color="cyan"]{
                    background-color: cyan;
                }

h1,
h2{
    width:100%;
    text-align: center;
}

h1{
    margin:15px 0;
    background-color: black;
    color: white;
}
h2{
    margin-bottom: 20px;    
}

/*  Boutons du nombre de'équipes  */
.howManyTeams{
    width:100px;
    height:100px;

    color:black;
    background-color: white;;

    border: solid 2px black;
    border-radius:20px;

    text-align:center;
    font-size: 40px;
    line-height: 95px;

    cursor:pointer;
}
            .active-number{
                color: white;
                background-color: black;
            }
/* Indication du nombre de matchs sous les boutons du nombre de'équipes */
.howManyMatchs{
    width:100px;
    text-align:center;
    font-weight:bold;

}
/*  Boutons du nombre de terrains  */
.howManyCourts{
    width:120px;
    height:60px;

    color:black;
    background-color: white;;

    border: solid 2px black;
    border-radius:20px;

    text-align:center;
    font-size: 20px;
    line-height: 57px;

    cursor:pointer;
    
    margin-top: 25px;
}
            .active-court{
                color: white;
                background-color: black;
}

/*  "Boutons Reset"  */
.resetScore,
.resetTournament
{
    width:120px;
    height:60px;

    color:black;
    background-color: white;;

    border: solid 2px black;
    border-radius:20px;

    text-align:center;
    font-size: 16px;

    cursor:pointer;
    
    margin-top: 25px;
}
                .resetScoreGhost,
                .resetTournamentGhost{
                    width:120px;
                }


#create-Teams-container{
    display:flex;
    justify-content: center;
    margin-top:50px;
    font-size: 25px;
}

.create-TeamName,
.create-TeamName input{
    width: 500px;
}
.create-TeamColor{
    width: 200px;
}
.create-TeamColor div{
    height: 30px;    
}

       

.create-TeamName input{
    height:30px;
    font-size: 20px;
    text-align: center;
    border:none;

}
th, td {
    border: 2px solid #ccc;
    text-align: center;
    height:30px;
    background-color: white;
}

th {
    background-color: lightgrey;
}

#createTournament{
    text-align: center;
    font-size:25px;
    font-weight:bold;

    width:300px;
    height: 60px;
    
    margin-top: 25px;
}
            /* div qui prend laa même place quele bouton du dessus pour faire un flex propre */
            .createTournamentGhost{
                width:300px;
            }

.howManyRounds{
    width:120px;
    text-align:center;
    font-weight:bold;
}