/* 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');



/* General Styles */
body {
    //font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	//font-family: monospace;
	//font-family: 'Roboto', sans-serif; /* Police par défaut pour le corps du texte */
	font-family: 'Comic Neue', sans-serif;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    //display: flex;
    justify-content: center;
	background: rgb(245 111 58);
	background: linear-gradient(180deg, rgb(186 57 29) 22%, rgb(236 119 75) 41%, rgb(234 174 121) 66%, rgb(228 76 36) 98%, rgba(210, 15, 56, 1) 100%);
	overflow-x: hidden;
	color: #fdf2f2;
    font-size: 5vw;
	text-align: -webkit-center;
}

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 */
	//font-family: 'Bangers', cursive;
}

button, input, .btn, textarea {
    font-family: 'Oswald', sans-serif;
    font-size: min(4vw, 80%);
}


p {
    font-size: min(5vw, 91%);
    margin: 0vw 5vw;
    background-color: #a1434580;
    padding: 2vw;
    border-radius: 3vw;
}

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 {
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 66vh;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    background-size: cover;
    padding-bottom: 1vw;
}

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: rgb(255,236,238);
    background: linear-gradient(180deg, rgba(255,236,238,1) 2%, rgba(255,179,201,1) 4%, rgba(248,119,137,1) 41%, rgba(252,86,119,1) 73%, rgba(251,37,87,1) 91%, rgba(210,15,56,1) 97%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4.5vw;
    cursor: pointer;
    margin: 1vw 5vw 5vw 5vw;
    transition: background-color 0.3s, transform 0.3s;
    width: -webkit-fill-available;
    border: 2px solid #ffaaba;
    box-shadow: inset -3px 1px 10px #fbb6ca, inset -2px -1px 0px 0px #d43563, 2px 2px 15px rgb(0 0 0 / 45%);
    text-align: center;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 4vw;
    display: block;
    box-sizing: border-box;
}

.button:hover {
    background: linear-gradient(180deg, rgba(255,236,238,1) 0%, rgba(255,179,201,1) 2%, rgba(248,119,137,1) 31%, rgba(252,86,119,1) 63%, rgba(251,37,87,1) 81%, rgba(210,15,56,1) 87%);
    transform: scale(1.05);
}

.button:active {
    transform: scale(0.95);
    box-shadow: inset -1px 1px 10px #d43563, inset -1px -1px 0px 0px #d43563, 1px 1px 10px rgb(0 0 0 / 30%);
}

input[type="text"], input[type="password"], input[type="file"], textarea {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #f4fdff;
    color: #020202;
    text-align: center;
    font-size: 5.5vw;
}

#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#logo {
    width: 100%;
}

#profile-photo-section {
    position: relative;
    top: 0;
    left: 0;
    width: 91vw;
    background-color: #ffffff8c;
    padding: 2vw 1vw 0vw 0vw;
    margin: 2vw 0vw 2vw 3vw;
    border-radius: 46vw 46vw 17vw 17vw;
}

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;

}



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;
    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;
}

    .trombinoscope, #players-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .player {
        flex: 1 1 calc(25% - 10px);
        box-sizing: border-box;
        margin: 5px;
        text-align: center;
    }
    .player img {
        max-width: 100px;
        max-height: 100px;
        border-radius: 50%;
    }
.player-name {
    margin-top: 5px;
    color: #c75271;
}
.full-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255 217 218 / 95%);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow-y: auto;
}
.mission-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 22px;
    border-radius: 10px;
    display: none;
    z-index: 1100;
    width: 80vw;
    box-shadow: 3px 1px 11px 2px #fbfbfb;
    border: 2px solid #000;
}


.mission-card {
    background-image: url('../images/bckQEQMission.jpg'); /* Path to the background image */
    background-size: cover;
	background-color:#cbae9c;
    background-position: center top;
    border-radius: 10VW;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 90%;
    margin: 10px auto;
    color: white; /* Ensure text is readable over the background */
}

.mission-card-content.mission-perdue {
    color: #ff4747;
}

.mission-card-content.mission-gagnee {
    color: #00FF00;
}

.mission-card-content {
    text-align: center;
   
}

.mission-encours {
	 margin: 28vw 0 0 0;
}

.mission-card-content h3 {
    font-size: 1.5em;
     margin-bottom: 0px; 
    text-shadow: 5px 2px 8px rgb(0 0 0);
}

.mission-card-content h4 {
    font-size: 1em;
    margin-top: 0; 
    text-shadow: 5px 2px 8px rgb(0 0 0);
}

.mission-card-content.mission-gagnee h3, .mission-card-content.mission-perdue h3 {
    font-size: 6vw;
    margin: 1vw 2vw;
    text-shadow: 5px 2px 8px rgb(0 0 0);
}



.mission-card-content p {
    font-size: 1em;
    margin: 5px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Add a text shadow for readability */
	background-color:#000;
}

.mission-card-content p.rep {
	background-color:#d6cd4680;
}

.mission-card-footer {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.mission-card-footer .button {
    padding: 10px 20px;
    background-color: rgba(231, 76, 60, 0.8); /* Semi-transparent background */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mission-card-footer .button:hover {
    background-color: rgba(192, 57, 43, 0.8); /* Darker semi-transparent background on hover */
}

.scoreboard {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.scoreboard h2 {
    margin-bottom: 20px;
    color: #333;
}

#scoreboard-list {
    text-align: left;
}

#scoreboard-list .scoreboard-item {
    padding: 10px;
	color: #000;
    border-bottom: 1px solid #ddd;
}

#scoreboard-list .scoreboard-item:last-child {
    border-bottom: none;
}

#scoreboard-list .current-player {
    font-weight: bold;
}