@charset "UTF-8";
/* General Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #160f40;
  margin: 0;
  padding: 0;
}
h1 {
  margin: 20px;
  text-align: center;
}
h3 {
  font-size: 2.00rem;
  font-weight: bold;
  display: block;
}


hr {
  display: block;
  width: 50%;
  border: 2px solid #fff;
  border-radius: 5px;
  margin-left: auto;
  margin-right: auto;
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
}


/* Header Section */
.header {
    width: 100%;
    height: 500px;
    background: url('./images/header-background.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.header-content p {
    font-size: 16px;
    color: #eee;
    line-height: 1.3;
    margin: 0;
}

.texteformation{
	font-size: 2.00rem;
	color: #ffffff;
	font-weight: bold;
	display: block;
	
}

/* images */
.imagelogo{
	
}

.imagelogorespon{

	width: 210px;
}

.imagesperso-gauche{
display: block;
  position: absolute;
  left: -40px;
  width: 510px;
  top: -200px;
}

.imagesperso-droite{
display: block;
  position: absolute;
  right: -110px;
  width: 460px;
  top: -150px;
}



/* Field Styles */
#field {
    width: 100%;
	max-width: 550px;
    height: 320px;
    margin: 10px auto;
    background: url('./images/terrain.png') no-repeat center center;
    background-size: cover;
    position: sticky;
    top: 20px;
    z-index: 10;
    border: 3px solid #fff;
    border-radius: 15px;
    overflow: hidden;
    background-color: aliceblue;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	background-color: white; /* Fond blanc pour éviter les problèmes de capture */
}

.field-container {
    background-color: #10944d;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.player-slot {
    width: 60px;
    height: 60px;
    border: 2px dashed #fff;
    border-radius: 50%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transform: translate(-50%, -50%);
}
.player-slot.dragover {
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid #007bff;
}
/* Players Section */
.category {
    margin-bottom: 20px;
}

.category h3 {
    margin: 20px 0;
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    text-align: left;
}

.player-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

.player {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 150px;
  height: 170px;
  background-color: #d9182e;
  color: #fff;
  border-radius: 5px;
  padding: 10px;
  font-size: 14px;
  cursor: grab;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.player img {
   width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 5px;
  align-self: center;
  border: 3px solid #fff;
}

.player div {
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  margin-top: 5px;
}

.player.disabled {
    background-color: #718096;
    cursor: not-allowed;
}

#players {
  display: flex;
  /* justify-content: center; */
  flex-wrap: wrap;
  margin-top: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

#formation-select {
    text-align: center;
    margin: 20px 0;
}

/* modal Styles */

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 860px;
    text-align: center;
    height: 690px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.modal-content {
    position: relative;
	border: none !important;
}

.dragover {
    border: 2px solid #00f;
    background-color: rgba(0, 0, 255, 0.1);
}





.share-buttons button {
    margin: 5px;
}



/* bouton Styles */

.fb-share-button {
	padding-top: 20px;
	
}



.btn-download {
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  background-color: #e1001a;
  color: #fff;
	
}
.btn-download:hover {
	background-color: #a30013;
	color: #fff;
	
}


.share-facebook {
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
	background-color: #3b5998;
	color: #ffffff;
	transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.share-facebook:hover {
	background-color: #223867;
	color: #ffffff;
}



.share-twitter {
	text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
	background-color: #00acee;
	color: #ffffff;
	transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.share-twitter:hover {
	background-color: #007aa9;
	color: #ffffff;
}



.share-email {
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
	background-color: #282c34;
	color: #ffffff;
	transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.share-email:hover {
	background-color: #545454;
	color: #ffffff;
}





.btn-resultat {
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  background-color: #e1001a;
  color: #fff;
	
}
.btn-resultat:hover {
	background-color: #a30013;
	  color: #fff;
	
}


.btn-close {
text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  background-color: #FFFFFF;
  position: absolute;
  right: 0px;
  color: #ffffff;
	
}
.btn-close:hover {
  background-color: #C5C5C5;
}

button:focus {
    outline: none;
}




/* footer Styles */
.footer {
	background-color: #eee;
}

.credit {
    font-size: 13px;
    padding-top: 40px;
    text-align: center;
    padding-bottom: 20px;
	background-color: #160f40;
	color: #fff;
}

.credit a {
	color: red;
	text-decoration: none;
}


/* Loader */
#loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    z-index: 1000;
}
#loader::after {
    content: '';
    display: block;
    margin: 10px auto 0;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* Responsive Styles */
@media (max-width: 576px) {
    .player-slot {
        width: 30px;
        height: 30px;
    }

    .player {
      width: 90px;
      height: 150px;
    }
	
	.player div {
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  margin-top: 5px;
}
	
  .player img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 5px;
  align-self: center;
  border: 3px solid #fff;
}

    #popup-canvas {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
	
	.imagesperso-gauche{
  display: none;

}

.imagesperso-droite{
  display: none;

}
	
	
}

@media (max-width: 390px) {
    .player {
        width: 115px;
        height: 140px;
    }
	.player img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 5px;
  align-self: center;
  border: 3px solid #fff;
}
}


@media (max-width: 375px) {
    .player {
        width: 110px;
        height: 150px;
    }
}



