/* Elements standards html */
html { min-height: 100%; height: 100%; background: #000; }
body { font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 15px; line-height: 20px; margin: 0; padding: 0; background: #000; color: #fff; }
img { vertical-align: top; }
a { color: #77A9CD; }
* { box-sizing: border-box; }

/* Titres */
h1 { }
h2 { }
h3 { text-transform: uppercase; letter-spacing: -1px; color: #666; font-weight: 700; font-size: 16px; margin: 0 0 8px 0; }

/* Classes visuelles */
.inline { display: inline-block; }
.ib40 { display: inline-block; width: 40px; }
.ib60 { display: inline-block; width: 60px; }
.acenter { text-align: center; }
.aleft { text-align: left; }
.aright { text-align: right; }
.ajustify { text-align: justify; }
.fleft { float: left; }
.fright { float: right; }
.clear { clear: both; }
.espace { font-size: 0; height: 8px; }
.seph { height: 0; border-bottom: 1px dotted #aaa; margin: 8px 0;}

/* Boutons dans un tableau / lien */
.btnlnk { display: inline-block; width: auto; height: 16px; line-height: 18px; padding: 0 0 0 20px; vertical-align: middle; 
	background-position: left center; background-size: 16px 16px; background-repeat: no-repeat; margin: 0 4px 0 0; } 
td > .btnlnk { margin: 1px 2px 0 2px; padding: 0 0 0 16px; }
.icoadd { background-image: url(/img/icones/add.png); }
.icomod { background-image: url(/img/icones/edit.png); }
.icodel { background-image: url(/img/icones/poubelle.png); }
.icomel { background-image: url(/img/icones/mail.png); }
.icopop { background-image: url(/img/icones/fleche_bas.png); }
.icovue { background-image: url(/img/icones/loupe.png); }

/* Curseurs */
.move { cursor: grab; }
.size { cursor: nwse-resize; }
.close { cursor: pointer; }

/* Fenêtre */
.fenetre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 16px rgba(0,0,0,0.7); }
.fenetre .fentit { background: #333; color: #fff; font-weight: bold; padding: 6px 12px; font-size: 18px; }
.fenetre .fentit.fermable { padding-right: 34px; }
.fenetre .fenfer { color: #fff; background: #a00; font-weight: bold; text-decoration: none; padding: 6px 10px; font-size: 18px; position: absolute; right: 0; top: 0; 
    line-height: 20px; box-shadow: 0 0 4px rgba(0,0,0,0.3) inset; }
.fenetre .fenfer:hover {  }
.fenetre .fencnt { background: #fff; color: #333; padding: 8px 12px; font-size: 16px; }

/* Page principale */
#mainFrame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; margin: 0; padding: 0; }

/* Elements uniques communs */
#titre_jeu { position: absolute; opacity: .7; transform: rotateZ(-17deg); top: 32px; left: 0; color: #fc3; font-size: 72px; line-height: 1.2em; font-weight: bold; 
    text-align: center; text-shadow: 0 0 2px #000, 2px 2px 2px #000, 0 0 2px #000, 4px 4px 2px #000; }
#titre_jeu > span { color: #c8102e; }
@keyframes drip { 0% { top: 138px; } 100% { top: 400px; } }
#titre_jeu > .gsang { position: absolute; width: 11px; height: 11px; background-color: #c8102e; border-radius: 50%;
    -webkit-animation: drip 3s cubic-bezier(1,0,.91,.19) infinite; -moz-animation: drip 3s cubic-bezier(1,0,.91,.19) infinite;
    -o-animation: drip 3s cubic-bezier(1,0,.91,.19) infinite; animation: drip 3s cubic-bezier(1,0,.91,.19) infinite;
    animation-iteration-count: infinite; animation-fill-mode: backwards; }
#titre_jeu > .gsang:before { content: ""; position: absolute; width: 0; height: 0;top: -20px; left: 1px; 
    border: 5px solid transparent; border-bottom: 23px solid #c8102e; border-top: none; }
#version_jeu { position: absolute; bottom: 4px; right: 6px; }

/* Page d'accueil */
body.accueil { background-repeat: no-repeat; background-position: center; background-size: cover; height: 100%; overflow: hidden; opacity: 0; transition: opacity 1s ease-in-out; }
#frmLogin #usrmel { width: 240px; }
#frmLogin #usrpwd { width: 196px; }
#frmLogin .btnValform { float: right; }

/* Menu d'accueil du jeu */
#acc-tittyp { font-size: 24px; font-weight: bold; font-variant: small-caps; text-align: center; margin-bottom: 12px; }
#acc-tittyp > span { font-size: 16px; font-weight: normal; }
#cnt-btnacc { text-align: center; font-size: 0; }
.btnacc { display: inline-block; width: 180px; height: 180px; background: #f7f7f7 no-repeat center; vertical-align: top; margin: 5px; transition: all .3s ease-in-out;
    box-shadow: 0 0 32px rgba(0,0,0,0.3) inset; position: relative; }
.btnacc:hover { box-shadow: 0 0 32px rgba(0,0,0,0.5) inset, 2px 2px 4px rgba(0,0,0,0.3); }
.btnacc.disabled { filter: brightness(50%); opacity: .7; }
.btnacc.disabled:hover { box-shadow: 0 0 32px rgba(0,0,0,0.3) inset; cursor: not-allowed; }
#mj-train.btnacc { background-image: url(/img/front/mj-train.png); }
#mj-camp.btnacc { background-image: url(/img/front/mj-camp.png); }
#mj-puzz.btnacc { background-image: url(/img/front/mj-puzz.png); }
#mj-arena.btnacc { background-image: url(/img/front/mj-arena.png); }
.btnacc.small { width: 85px; height: 85px; background-color: #FFF7AF; }
#mj-persos.btnacc.small { background-image: url(/img/front/mj-persos.png); }
#mj-profil.btnacc.small { background-image: url(/img/front/mj-profil.png); }
#mj-prefs.btnacc.small { background-image: url(/img/front/mj-prefs.png); }
#mj-logout.btnacc.small { background-image: url(/img/front/mj-logout.png); background-color: #FFA7A7; }
.btnacc.niveau { background-color: #eee; }
.btnacc > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 18px; color: #333; text-decoration: none; }
.btnacc.small > span { font-size: 14px; }

/* Elements pour une partie */
body.partie { background-repeat: no-repeat; background-position: center; background-size: cover; height: 100%; overflow: hidden; opacity: 0; transition: opacity 1s ease-in-out; }
#cntjeu { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 1; transition: all .1s ease-in-out; 
    background-size: 96px; background-repeat: repeat; background-position: top left; box-shadow: 0 0 16px #000;
   -moz-user-select: -moz-none; -khtml-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; }
#cntniv { position: absolute; top: 0; left: 0; bottom: 0; right: 0; }
#cntniv .terrain { position: absolute; width: 48px; height: 48px; background-position: center; background-size: 100%; transition: all .1s ease-in-out; }
#cntper { position: absolute; top: 0; left: 0; bottom: 0; right: 0; }
#nav_jeu { position: absolute; top: 10px; right: 16px; }
#nav_jeu > a { display: inline-block; width: 48px; height: 48px; margin-left: 16px; background: no-repeat center; background-size: contain; opacity: .5; transition: all .3s ease-in-out; }
#nav_jeu > a:hover { opacity: 1; transform: scale(1.1); }
#nav_jeu > a#btn-fuir { background-image: url(/img/front/btn-fuir.png); }
#nav_jeu > a#btn-back { background-image: url(/img/front/btn-back.png); }

/* Monstres */
#cntper .monstre { position: absolute; width: 48px; height: 48px; box-shadow: 0 0 16px rgba(0,0,0,0.5) inset; transition: all .1s ease-in-out; 
    background: #990000aa url(/img/bordure.png) no-repeat center; background-size: 100%; border-radius: 5px; }
#cntper .monstre > div { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background-position: center; background-size: 100%; }
#cntper .monstre > .photo { animation: 5s infinite alternate animphoto; }
#cntper .monstre > .atyp { opacity: 0; transition: all .1s ease-in-out; }
#cntper .monstre:hover > .atyp { opacity: 1; }
#cntper .monstre > .adir { opacity: 0; transition: all .1s ease-in-out; }
#cntper .monstre:hover > .adir { opacity: 1; transform: scale(1.2); }
#cntper .monstre > .cpdv { left: auto; right: 4px; bottom: 4px; top: 4px; width: 6px; border: 1px solid #333; border-radius: 3px; }
#cntper .monstre > .cpdv > .vpdv { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; background-color: #00ff77; opacity: .8; }

/* Persos */
#cntper .perso { position: absolute; width: 48px; height: 48px; box-shadow: 0 0 16px rgba(0,0,0,0.5) inset; transition: all .1s ease-in-out; 
    background: #0055ffaa url(/img/bordure.png) no-repeat center; background-size: 100%; border-radius: 5px; cursor: grab; }
#cntper .perso:hover { transform: scale(1.05); box-shadow: 2px 2px 2px rgba(0,0,0,0.5), 0 0 16px rgba(0,0,0,0.3) inset; }
#cntper .perso.dragging { cursor: grabbing; transform: scale(1.1); box-shadow: 4px 4px 4px rgba(0,0,0,0.5), 0 0 16px rgba(0,0,0,0.3) inset; }
#cntper .perso > div { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background-position: center; background-size: 100%; }
#cntper .perso > .photo { animation: 5s infinite alternate animphoto; }
#cntper .perso > .atyp { opacity: 0; transition: all .1s ease-in-out; }
#cntper .perso:hover > .atyp { opacity: 1; }
#cntper .perso > .adir { opacity: 0; transition: all .1s ease-in-out; }
#cntper .perso:hover > .adir { opacity: 1; transform: scale(1.2); }
#cntper .perso > .cpdv { left: auto; right: 4px; bottom: 4px; top: 4px; width: 6px; border: 1px solid #333; border-radius: 3px; }
#cntper .perso > .cpdv > .vpdv { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; background-color: #00ff77; opacity: .8; }

/* Message centré */
#msgfad { position: fixed; top: 0; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.7); opacity: 0; }
#msgcnt { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 48px; font-weight: bold; color: #fff; text-align: center;
    text-shadow: 1px 0 1px #000, -1px 0 1px #000, 0 1px 1px #000, 0 -1px 1px #000, 1px 1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000, -1px -1px 1px #000, 0 0 16px #000; }
#msgfer { display: inline-block; margin: 20px auto 0 auto; padding: 8px 24px; background: #ffbf00; color: #fff; font-size: 32px; font-weight: bold; line-height: 36px;
    box-shadow: 0 0 16px #000, 0 0 16px #af6f00 inset; border-radius: 6px; height: 48px; text-align: center; }
body.partie > div.erreur { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 32px; font-weight: bold; color: #fff;
    text-shadow: 1px 0 1px #000, -1px 0 1px #000, 0 1px 1px #000, 0 -1px 1px #000, 1px 1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000, -1px -1px 1px #000, 0 0 16px #000; }

/* Chrono */
#cntChrono { position: fixed; top: 16px; left: 50%; height: 32px; width: 200px; margin-left: -100px; border: 2px solid #000; background: #0081D4aa; border-radius: 5px; overflow: hidden; }
#barChrono { position: absolute; right: 0; top: 0; height: 32px; background: #ffffff88; color: #333; transition: all .1s ease-in-out; }
#valChrono { position: absolute; left: 50%; top: 0; line-height: 28px; font-size: 16px; font-weight: 700; color: #333; vertical-align: middle; transform: translate(-50%, 0); }

/* Animations */
@keyframes animphoto {
   0% { transform: rotateZ(1deg) scale(.9); }
  20% { transform: rotateZ(0deg) scale(.95); }
  40% { transform: rotateZ(-1deg) scale(.9); }
  60% { transform: rotateZ(0deg) scale(.85); }
  80% { transform: rotateZ(1deg) scale(.9); }
 100% { transform: rotateZ(0deg) scale(.9); }
}

/* Animation combat */
.sprite { position: absolute; }
.lblhit { position: absolute; font-size: 32px; color: #FF0000; font-weight: bold; text-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; opacity: 0; text-align: center; }





/* Fond d'écran */
#bg-body { position: fixed; top: 0; bottom: 0; left: 0; right: 0; }
#bg-body > img { height: auto; width: auto; min-height: 100%; min-width: 100%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
#bg-body > video { height: auto; width: auto; min-height: 100%; min-width: 100%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
#bg-texte { font-family: Teko, sans-serif; position: fixed; left: 50%; bottom: 10%; max-width: 80%; transform: translate(-50%, 0); font-size: 64px; color: #fff; font-weight: 600; 
	text-shadow: 0 0 1px #000, 0 0 2px #000, 0 0 16px #000; opacity: 0.3; transition: all .2s ease-in-out; }

/* Menus */
body.login #cnt-menus { display: none; }
#cnt-menus { position: fixed; top: 0; left: 0; right: 0; height: 32px; background: rgba(0,0,0,0.6); color: #fff; font-size: 0; z-index: 100; user-select: none; }
#cnt-menus .menu { display: inline-block; padding: 6px 12px 6px 40px; line-height: 20px; font-size: 16px; border-right: 1px dotted #aaa; cursor: pointer; 
	background-position: 12px center; background-repeat: no-repeat; }
#cnt-menus .menu[data-action="logout"] { float: right; width: 0; height: 32px; padding-right: 4px; }
#cnt-menus  #fulls.menu { float: right; width: 0; height: 32px; padding-right: 4px; }
#cnt-menus .menu.actif { background-color: rgba(0,0,0,0.5); }
#cnt-menus .sous-menu { position: absolute; top: 32px; padding: 8px 12px; background: rgba(0,0,0,0.8); color: #fff; font-size: 14px; line-height: 18px; z-index: 101; 
	display: none; opacity: 0; box-shadow: 0 0 8px rgba(0,0,0,0.5); transition: opacity .2s ease-in-out; }
#cnt-menus .sous-menu.actif { display: block; opacity: 1; }
#cnt-menus .sous-menu .sm-lien { padding: 4px 8px; transition: all .2s ease-in-out; cursor: pointer; }
#cnt-menus .sous-menu .sm-lien:hover { color: #333; background: #fff; }
#cnt-menus .sous-menu .sm-sep { font-size: 0; height: 0; border-bottom: 1px dotted #aaa; margin: 8px 0; }
#cnt-menus .sous-menu > em { display: block; font-size: 12px; }

/* Conteneur des fenêtres */
#cnt-fenetres { position: fixed; top: 32px; bottom: 0; left: 0; right: 0; }
body.login #cnt-fenetres { top: 0; }

/* Fenêtre */
.cnt-fenetre { position: absolute; border: 1px solid #999; background: #fff; color: #333; min-width: 240px; min-height: 104px; max-width: 100%; max-height: 100%; overflow: hidden; 
	box-shadow: 0 0 8px rgba(0,0,0,0.5); user-select: none; }
.cnt-fenetre.login { width: 240px; }
.cnt-fenetre.prefs, .cnt-fenetre.fiche { width: 420px; }
.cnt-fenetre.liste, .cnt-fenetre.stats, .cnt-fenetre.suivi { width: 800px; }
.cnt-fenetre.agenda { width: 1000px; }
.cnt-fenetre.liste { min-height: 200px; }
.cnt-fenetre > .titre { position: relative; padding: 6px 32px 6px 12px; border-bottom: 1px dotted #666; background: #f1f1f1; line-height: 16px; font-size: 16px; font-weight: 700; }
.cnt-fenetre > .titre > .close { position: absolute; top: 6px; right: 8px; width: 16px; height: 16px; background: url(/img/icones/fermer.png) no-repeat center; }
.cnt-fenetre > .contenu { padding: 8px 12px 0 12px; max-height: calc(100% - 29px); height: calc(100% - 29px); overflow: auto; }
.cnt-fenetre > .contenu::after { content: ""; display: block; padding: 0 0 8px 0; }
.cnt-fenetre.liste > .contenu, .cnt-fenetre.agenda > .contenu { padding: 0; }
.cnt-fenetre.liste > .contenu::after, .cnt-fenetre.agenda > .contenu::after { padding: 0; }
.cnt-fenetre .bas-fenetre { text-align: right; margin: 4px 0; }
.cnt-fenetre .bas-fenetre > a.lien { display: inline-block; padding: 4px 12px; font-size: 13px; line-height: 16px; color: #333; text-decoration: none;
	background: #f1f1f1; box-shadow: 0 0 2px #666; transition: all .2s ease-in-out; cursor: pointer; }
.cnt-fenetre .bas-fenetre > a.lien:hover { background-color: #e7e7f7; box-shadow: 0 0 1px #333; }
.cnt-fenetre .bas-fenetre > a.lien > img { vertical-align: middle; }
.cnt-fenetre .size { position: absolute; bottom: 0; right: 0; height: 10px; width: 10px; background: url(/img/resize.png) no-repeat center; z-index: 9; }
.cnt-fenetre.actif { z-index: 99; border-color: #333; }
.cnt-fenetre.actif > .titre { background: #666; color: #fff; }
.cnt-fenetre.actif > .titre > .close { filter: brightness(5000%); }

/* Formulaires */
form { width: 100%; }
fieldset { padding: 0; margin: 0; border: none; }
::placeholder { color: #666; text-align: left; }
.label { font-size: 16px; font-style: italic; color: #666; margin: 6px 0 2px 0; }
.etichk { font-size: 16px; font-style: italic; color: #666; margin: 0 0 2px 0; display: inline-block; max-width: calc(100% - 24px); line-height: 16px; vertical-align: top; }
input, select, textarea { border: none; appearance: none; font-family: 'Yanone Kaffeesatz', sans-serif; font-size: 16px; color: #333; }
input[type="text"] { background: #f1f1f1; box-shadow: 0 0 2px #666 inset; padding: 3px 6px; }
input[type="password"] { background: #f1f1f1; box-shadow: 0 0 2px #666 inset; padding: 3px 6px; }
input[type="text"]:focus, input[type="password"]:focus { background: #77A9CD50; box-shadow: 0 0 2px #77A9CD inset; }
input[type="submit"] { padding: 3px 16px; background: #f1f1f1 url('/img/icones/check.png') no-repeat center; box-shadow: 0 0 2px #666; transition: all .2s ease-in-out; cursor: pointer; }
input[type="submit"]:hover { background-color: #e7e7f7; box-shadow: 0 0 1px #333; }
input[type="checkbox"] { border: 1px solid #666; appearance: checkbox; }
input[type="radio"] { }
input[type="file"] { }
input.obligatoire, select.obligatoire, textarea.obligatoire { background: #fafaf1; }
input:disabled, select:disabled, textarea:disabled { background-color: #ddd; color: #666; }
select { padding: 2px 28px 2px 4px; background: #f1f1f1 url(/img/icones/fleche_bas.png) no-repeat right 8px center; background-size: 12px; box-shadow: 0 0 2px #666 inset; }
select:focus { background-color: #77A9CD50; box-shadow: 0 0 2px #77A9CD inset; }
textarea { background: #f1f1f1; box-shadow: 0 0 2px #666 inset; padding: 3px 6px; }
textarea:focus { background: #77A9CD50; box-shadow: 0 0 2px #77A9CD inset; }
input[type="button"].close { padding: 3px 16px; margin: 0 8px 0 0; background: #fff7f1 url('/img/icones/fermer.png') no-repeat center; box-shadow: 0 0 2px #666; 
	transition: all .2s ease-in-out; cursor: pointer; }
input[type="button"].close:hover { background-color: #e7e7f7; box-shadow: 0 0 1px #333; }
input[type="text"].montant { text-align: right; padding-right: 20px; width: 120px;
	background-image: url(/img/icones/euro.png); background-position: right 2px center; background-repeat: no-repeat; background-size: 14px auto; }

.cnt-fenetre form h3 { margin: 16px 0 8px 0; font-size: 16px; background: #666; color: #fff; padding: 5px 10px 5px 10px; text-align: center; letter-spacing: 0px; line-height: 13px;
	box-shadow: 0 -12px 12px #444 inset; text-shadow: 0 0 4px #000; }
.cnt-fenetre form h3:first-of-type { margin: 0 0 8px 0; }
.cnt-fenetre form > input, .cnt-fenetre form > .opts input { width: 100%; margin: 0 0 2px 0; }
.cnt-fenetre form select, .cnt-fenetre form > .opts select { width: 100%; margin: 0 0 2px 0; }
.cnt-fenetre form textarea, .cnt-fenetre form > .opts textarea { width: 100%; height: 66px; margin: 0 0 2px 0; resize: none; }
.cnt-fenetre form input[type="checkbox"] { width: auto; margin: 0 3px 2px 2px; display: inline-block; vertical-align: top; }

/* Dialogue modal */
#cnt-fader { position: fixed; left: 0; right: 0; top: 0; bottom: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0.33) 0%, rgba(0,0,0,0.66) 100%); z-index: 999; }
.cnt-fenetre.modal .bas-fenetre { text-align: center; }
.btn-modal { padding: 3px 16px; background-color: #f1f1f1; background-image: none !important; box-shadow: 0 0 2px #666; transition: all .2s ease-in-out; cursor: pointer; margin: 0 0 0 6px; }
.btn-modal:hover { background-color: #e7e7f7; box-shadow: 0 0 1px #333; }
#ann-modal { background: #fff7f1; box-decoration-break: 0 0 2px #766; }
#ann-modal:hover { background-color: #e7e7f7; box-shadow: 0 0 1px #333; } 

/* Notifs */
.cnt-notif { position: fixed; bottom: 20px; right: 20px; padding: 12px 16px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,0.5); }

/* Menu popup */
#cnt-popup { position: fixed; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,0.5); z-index: 199; }
#cnt-popup .titre { padding: 4px 8px; background: #666; color: #fff; font-size: 12px; font-weight: 700; }
#cnt-popup .liste { padding: 4px 0; }
#cnt-popup .liste > .poplnk { display: block; background: #fff; color: #333; padding: 2px 8px; font-size: 13px; transition: all .2s ease-in-out; }
#cnt-popup .liste > .poplnk:hover { background: #77A9CD; color: #fff; }
#cnt-popup .liste > .sephor { height: 1px; border-bottom: 1px dotted #999; margin: 4px 0; }
#cnt-popup .erreur { padding: 6px 8px; }
	
/* Tableau de bord */
#welcome { font-size: 12px; }
#welcome > em > strong { font-style: normal; display: inline-block; margin: 0 4px; }

/* Pages d'erreur */
#cnt-merreur { position: fixed; left: 50%; top: 50%; max-width: 90%; max-height: 90vh; overflow: auto; transform: translate(-50%, -50%); background: rgba(255,255,255,0.7); 
	padding: 12px 16px; border-radius: 8px; }
#cnt-merreur a { color: #333; font-weight: 700; text-decoration: none; }


