body {
	background:#ccc
}

html {
  position: relative;
  min-height: 100%;
}

body {
  height:100%;
}

.wrapper {
    display: flex;
    width: 100%;
    //height: calc(100vh - 56px - 60px);
}

.sidebar {
    display: flex;
    w.idth: 250px;
    height: 100%;
    background: #7386D5;
    color: #fff;
    transition: all 0.3s;
}

.sidebar .nav-item {
  padding:3px 3px 3px 15px;
}

.sidebar .nav-link {
  color:white;
  padding:0px 0px 0px 20px;
}

main {
  padding:10px;
  width:99%;
  margin-bottom:60px;

  position:relative;
}

@media screen and (max-width: 768px) {
  .wrapper {
    height:auto;
    display: block;
  }

  main {
    margin-bottom:180px;
  }

  .sidebar {
      padding-bottom:10px;
  }
}

.footer {
  bottom: 0px;
  width: 100%;
  padding:20px;
  background-color: #f5f5f5;
  z-index: 1;
}

.form-control {
    display: block !important;
    width:100% !important;
}

.fa.fa-bolt {
  color:red;
}

.fa.fa-shield {
  color:#7777cc;
}

.fa.fa-heart {
  color:orange;
}

.fa.fa-cubes {
  color:#339933;
}

/*************** Carte ***************/

main.carte {
  padding:0px;
  display: flex;
  flex-direction:column;
}

#liste {
  display:none;
  padding-left:10px;
  padding-right:10px;
}

#liste .row:first-child {
  background:#ccc;
}

#nav_carte {
  position: relative;
  width:100%;
  z-index:500;
  background:#999;
  padding:5px;
}

#carte {
  display: flex;
  width: 100%;
  height: calc(100vh - 56px - 60px);
  flex-direction:row;
}

#carte_conteneur {
  position:relative;
  width:100%;
  height:100%;
  z-index:500;
}

#contenu_carte {
  position: relative;
  z-index:500;
  height:100%;
  width:100%;
  overflow:hidden;
}

.infos_vaisseaux {
  width:350px;
  height:100%;
  background:#ddd;
  z-index:1000;
  display: none;
}

.infos_vaisseaux h5 {
  background:#666;
  color:white;
  padding:5px;
}

.infos_vaisseaux div {
  padding:5px;
}


#carte_centre {
  position:absolute;
  background:black;
  z-index:500;
}

#tableau_marchandises th {
  background:#ccc;
}

#tableau_marchandises td, #tableau_marchandises tr:first-child, #tableau_marchandises tr:nth-child(2) {
  text-align: center;
}

#tableau_marchandises tr:first-child th:first-child {
  text-align: left;
}

#tableau_marchandises tr:nth-child(1n+3) td:nth-child(1n+1) {
  border-right:solid 1px #ccc;
}

#tableau_marchandises tr:nth-child(1n+3) th:first-child, #tableau_marchandises td:nth-child(4), #tableau_marchandises td:nth-child(7) {
  border-right:solid 1px black !important;
}

#tableau_marchandises tr:nth-child(2) th:nth-child(1n+1) {
  border-bottom:solid 1px black;
}

#tableau_marchandises {
  border:solid 1px black !important; 
}

#tableau_marchandises * {
  padding:3px;
}

.card div.card-image {
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
  height:230px;
}

.max-height-100 {
  max-height: 100px;
  overflow: hidden;
}


/**** RP LIFE ****/

.liste_taches a {
  display: flex;
  justify-content: space-between;
  margin-bottom:2px;
  padding:3px 5px 3px 5px;
  cursor: pointer;
  position: relative;
  flex-wrap: wrap;
}

.liste_taches a div.nom_tache {
  padding-top:5px;
  background:transparent;
}

@media screen and (max-width: 768px) {
  .liste_taches a {
    border-bottom:solid 1px #999;
    padding-bottom:10px;
  }
  .liste_taches a div.nom_tache {
    width: 100%;
  }
}

.liste_taches a:hover {
  background:#ffffff66;
}

.coins {
  font-weight: bold;
  background:white;
  width: 110px;
  padding:5px 10px ;
  border-radius:15px;
  //position: absolute;
  //right: 80px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.coins span {
  margin-right:10px;
}

.fa-coins {
  color:#FFB833;
}

.liste_taches .options {
  opacity:0.5;
}

.liste_taches .options:hover {
  opacity:1;
}

.heure_tache {
  width: 50px;
  padding-top:5px;
}

details {
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 0.5em 0.5em 0;
}

summary {
  font-weight: bold;
  margin: -0.5em -0.5em 0;
  padding: 0.5em;
}

details[open] {
  padding: 0.5em;
}

details[open] summary {
  border-bottom: 1px solid #aaa;
  margin-bottom: 0.5em;
}

.rplife .active .nav-link {
  font-weight:bold;
}

.description_tache_en_cours {
  min-width: 40%;
  background: #CCCCCC;
  padding: 10px;
  border: 0;
}

.modal .description_tache_en_cours {
  background: #fff;
}

.modal .sous_tache_en_cours input[type=text] {
  background: #fff;
}

.description_tache_en_cours:hover, .description_tache_en_cours:focus {
  border: solid 1px #666;
}

.sous_tache_en_cours ul {
  list-style-type: none;
}

.sous_tache_en_cours input[type=text] {
  width: 80%;
  background: #CCCCCC;
  padding: 10px;
  border: 0;
}

.sous_tache_en_cours input[type=text]:hover, .sous_tache_en_cours input[type=text]:focus, .sous_tache_en_cours_ajout {
  border: solid 1px #666;
}

.contenu_tache_en_cours {
  margin-top: 20px;
  border-top: solid 1px #999;
  display: flex;
  padding-top: 20px;
  justify-content: space-around;
}


/* La modale */
.modal {
  display: none; /* Cachée par défaut */
  position: fixed; /* Positionnée de manière fixe */
  z-index: 1; /* Au-dessus des autres éléments */
  left: 0;
  top: 0;
  width: 100%; /* Largeur complète */
  height: 100%; /* Hauteur complète */
  overflow: auto; /* Défilement automatique */
  background-color: rgb(0,0,0); /* Fond noir */
  background-color: rgba(0,0,0,0.4); /* Avec une opacité de 0.4 */
  z-index:1040;
}

/* Contenu de la modale */
.modal-content {
  background-color: #fefefe;
  margin: 5% auto; /* 15% de marge en haut et en bas, centré horizontalement */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Largeur à 80% */
  position:relative;
}

/* Bouton de fermeture */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 10px;
  top:10px;
}

.close:hover, .close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.termine input {
  text-decoration: line-through;
}

.type_image .specifique_texte, .type_texte .specifique_image, .type_hr .specifique_image, .type_hr .specifique_texte {
  display: none;
}

.type_texte .specifique_texte, .type_image .specifique_image {
  display: block;
}

.specifique_image img {
  width:100%;
}

.text-decoration-underline {
  text-decoration: underline;
}

.modal-backdrop {
  z-index: 1;
}

* {
  font-family: "Roboto", serif;
  font-optical-sizing: auto;
}