/* Intégration des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');



h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif; /* Police pour les titres */
    text-transform: uppercase; /* Met les titres en majuscules pour plus d'effet */
}

button, input, .btn {
    font-family: 'Oswald', sans-serif;
    font-size: 4vw;
}

/* General Styles */
body {

    background-color: #1a1a1a;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    //display: flex;
    justify-content: center;
    background: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(58,58,58,1) 40%, rgba(29,29,29,1) 100%);
	overflow-x: hidden;
	  font-family: 'Roboto', sans-serif; /* Police par défaut pour le corps du texte */
		text-align: -webkit-center;
}

p {
    font-size: min(5vw, 110%);
}

p#score-joueur-par {
    background-image: url('../images/score.png');
    background-size: cover;
    margin: 8vw;
    aspect-ratio: 4.5;
    align-content: center;
    font-size: 6vw;
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
    text-align: center;
}

#splash-content {
    //font-family: 'Arial', sans-serif;
    animation: fadein 2s ease-in-out;
}

#main-content {
    display: none;
}

.container {
	
    background-color: #222126;
    background: radial-gradient(circle, rgb(57 63 66) 0%, rgb(53 57 58) 40%, rgb(34 33 36) 100%);
    padding: 1%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    width: 98%;
    max-width: 66vh;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    background-image: url(../images/bckapp.jpg);
    background-size: cover;
}
img#mainlogo {
    width: -webkit-fill-available;
}


h1 {
    font-size: 2em;
    color: #f1c40f;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

#contract-info, #eliminated-info, #leaderboard, #contreespionnage-info {
    margin: 20px auto;
    padding: 20px;
    width: 80%;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    text-align: center;
	overflow: hidden;
}

.contract h2 {
    background-color: #851414;
    text-transform: uppercase;
    padding: 2vw;
    margin: -5vw;
    color: #fffae3;
    font-size: 5vw;
}

/* Leaderboard container */
#leaderboard {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    margin: 20px;
    padding: 20px;
    text-align: center;
}

#leaderboard h2 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 20px;
}

/* Leaderboard list */
#leaderboard-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#leaderboard-list li {
    background-color: #f9f9f9;
    border: 1px solid #dddddd;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 15px;
    font-size: 18px;
    color: #555555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

#leaderboard-list li:nth-child(even) {
    background-color: #efefef;
}

#leaderboard-list li:hover {
    background-color: #e0e0e0;
}

/* Status styling */
.status {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

.status.alive {
    color: #ffffff;
    background-color: #4caf50; /* Green for alive */
}

.status.eliminated {
    color: #ffffff;
    background-color: #f44336; /* Red for eliminated */
}



button {
    background-color: #525055;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
    transition: background-color 0.3s, transform 0.3s;
    width: 100%;
}

button:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

button.redbut {
    background-color: #e74c3c;
}

input[type="text"], input[type="password"], input[type="file"] {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    text-align: center;
}

#game-info {
    margin: 15px 0;
    color: #f1c40f;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.contract {
    margin: 15px 0;
    border: 1px solid #e74c3c;
    padding: 10px;
    border-radius: 5px;
    background-color: #333;
	position:relative;
	left:0;
	top:0;
}

.contract p {
    margin-top: 10vw;
}

img.pucelogo {
    position: absolute;
    z-index: 100;
    left: 0vw;
    margin-top: -5vw;
    width: 24vw;
}

button#upload-photo-btn {
    z-index: 19;
    position: absolute;
    left: 44vw;
    top: 39vw;
    width: 49vw;
}

button#upload-photo-btn2 {
    z-index: 19;
    position: absolute;
    left: 44vw;
    top: 39vw;
    width: 49vw;
	background-color: #4b4645;
}

#profile-photo-section {
    margin: 15px 1vw;
    position: relative;
    top: 0;
    left: 0;
    width: 91vw;
    padding: 4vw;
    height: 44vw;
}

img#avatarget {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 54vw;
}

#profile-photo {
    width: 44vw;
    height: 44vw;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e74c3c;
    display: block;
    margin: 0 auto;
    position: absolute;
    left: 5vw;
    top: 3vw;
    z-index: 3;
}

#target-photo {
    width: 44vw;
    height: 44vw;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e74c3c;
    display: block;
    margin: 0 auto;
    /* left: 5vw; */
    /* top: 3vw; */
    /* z-index: 3; */
    /* position: relative; */
    margin-top: 8vw;
    margin-bottom: -8vw;
}


h1#titreapp {
    /* position: absolute; */
    top: -7vw;
    right: 6vw;
    z-index: 20;
    border-bottom: 2px solid #c9c9c9;
    border-top: 2px solid #afafaf;
    border-radius: 2vw;
    padding: 1vw 2vw 1vw 2vw;
    background: linear-gradient(to right, #d9d9d9, #b3b3b3, #ff2828);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 2px #4f0a0a4a;
}



#profile-placeholder {
    font-size: 1em;
    color: #e74c3c;
    z-index: 12;
    position: absolute;
    top: 34vw;
    width: 24vw;
    left: 15vw;
    text-shadow: 0px 1px 2px black,-1px -1px 2px black;
}


p#profile-name {
    background-color: #363a3b;
    color: #ffffff;
    border: none;
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
    margin: 10px 0;
    transition: background-color 0.3s, transform 0.3s;
    position: absolute;
    top: -1vw;
    right: 6vw;
    z-index: 13;
    border: 1px solid #5b4646;
}

.hidden {
    display: none;
}

img#mainlogo {
    width: -webkit-fill-available;
}

/* Player count styles */
#player-count-container {
	
    position: absolute;
    right: 13vw;
    background-color: #00000045;
    padding: 1vw;
    border-radius: 6px;
    top: 8vw;
    display: none;
    text-align: center;
    
}

#player-count {
    font-size: 1.5em;
    color: #f1c40f;
}

/* Sonar animation */
@keyframes sonar {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.sonar-wrapper {
    position: relative;
    display: inline-block;
}

.sonar {
    position: absolute;
    top: 1vw;
    left: 9vw;
    width: 7vw;
    height: 7vw;
    border-radius: 50%;
    background-color: rgba(241, 196, 15, 0.5);
    animation: sonar 1.5s infinite;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 80%;
}

.modal h2 {
    margin: 0 0 20px;
}

.modal input {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.infotexte {
    background: #333333f0;
    padding: 3vw;
    border-radius: 10px;
    text-align: center;
    margin: 8vw;	
}

/* CSS for the dialog */
#custom-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 300px;
}

.dialog-hidden {
    display: none !important;
}

#dialog-ok-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

#dialog-ok-btn:hover {
    background-color: #d02f57;
}

p#dialog-message {
    color: #000;
}