@import "../../commun.css";

h4 {
	margin-left: 3em;	
	margin-top: 3em
}

.code {
	width: 80%;
	min-height: 600px;	
	display: block;	
	margin-left: auto;
    margin-right: auto;    
    margin-bottom: 1em;
}

.code_petit {
	width: 50%;
	min-height: 400px;	
	display: block;	
	margin-left: auto;
    margin-right: auto;    
    margin-bottom: 1em;
}

.img_grand {	
	width:50%;
	height:50%;	
	display: block;		
	margin-left: auto;
    margin-right: auto;
    transition: width 1s linear, height 1s linear;
    margin-top: 2em;
    margin-bottom: 2em;
}

.img_grand:hover {
	width: 90%;
	height:90%;	
}

.img_petit {	
	width:25%;
	height:25%;	
	display: block;		
	margin-left: auto;
    margin-right: auto;
    transition: width 1s linear, height 1s linear;
    margin-top: 2em;
    margin-bottom: 2em;
}

.img_petit:hover {
	width: 40%;
	height:40%;
}

.img_moy {	
	width:40%;
	height:40%;	
	display: block;		
	margin-left: auto;
    margin-right: auto;
    transition: width 1s linear, height 1s linear;
    margin-top: 2em;
    margin-bottom: 2em;
}

.img_moy:hover {
	width: 60%;
	height:60%;
}

.blue {
	color: blue
}

h5 {
	text-align: center;
	margin-top: 3em
}

.commande {
	font-weight: bold;
	font-size:1.1em
}

.commandeVS {
	color: blue;
	font-weight: bold;
	font-size: 1.1em
}

ul { 
 margin-left:3em; 
}

.peace { 
	text-align: center;
}

.codeliste {	
	height: 300px;
}

.table, .td, .th { 
 margin-left:3em; 
 margin :auto;
 text-align: center;
 border: 1px solid black;
 border-collapse: collapse;
}

.extable, .extable td, .extable th { 
 margin-left:3em; 
 margin :auto;
 text-align: center;
 border: 1px solid black;
 border-collapse: collapse;
}


.desc {	
	width:70%;	
	margin-left: auto;
    margin-right: auto;
}

.matos {
	width:8%;
	height:8%;		
	margin: 0 auto;
	vertical-align: middle;
    transition: width 1s linear, height 1s linear;
}

.matos:hover {
	width: 15%;
	height:15%;
}

.conteneurtable {
 width:100%;
 display: flex;
 flex-direction: row; 
 flex-wrap: wrap;
 justify-content: center;
 align-items: center;
 text-align: center;
 vertical-align: middle;  
}

.elementtable {
	width:40%;
	text-align: center;
}

.conteneurflex {
 width:100%;
 display: flex;
 flex-direction: row; 
 flex-wrap: wrap;
 justify-content: space-between;
 align-items: center;
 text-align: center;
 vertical-align: middle;  
}

.elementflex {
	width:40%;	
}

#backgroundex {
  background-color: #F5F6CE;
  background-image: url("img/peace.png");
  background-repeat: no-repeat;
  background-position: left;
  background-attachment: local;  
}

.imgflot {
   float: left;
   margin-right: 1em;
}

.stopflot {
	clear: both;
}

.elementflex2 {
	width:40%;
	text-align: left;	
	margin-left: 1em;
}

#exbor {
	border: 2px green dotted;	
}

#exbor2 {
	border-left: 2px green dotted;
	border-right: 2px red outset;
	border-top: 2px blue groove;
	border-bottom: 2px black dashed;	
}


.conteneurborar {	
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;    
    margin-bottom:1em;
    margin-top:1em;  	
}

.elementborar {
	width:30%;		
}	


#borar {
	background-color: #60F560;
	border:solid black 2px;
	border-radius: 10px;
}

#borar2 {
	background-color: #F5F360;
	border:solid black 2px;
	border-radius: 10px 20px 30px 40px;
}

#borar3 {
	background-color: #F59760;
	border:solid black 2px;
	border-radius: 10px / 30px;
}

.ombre {
	border:solid black 1px;
	background-color: #81F7D8;
	box-shadow: 6px 6px 2px black;
	margin-bottom:10%; 
}

.ombreint {	
	border:solid black 1px;
	background-color: #81F7D8;
	box-shadow: 6px 6px 6px gray inset;	
}

#lienex /* Liens par défaut (non survolés) */
{
   text-decoration: none;
   color: blue;
   font-weight: bold;
}

#lienex:hover /* Apparence au survol des liens */
{
   text-decoration: underline;
   color: green;
   font-style:italic;
}

#lienex:active /* Quand on clique dessus */
{
    background-color: #FFCC66;
}

#lienex:focus /* Quand le visiteur sélectionne le lien */
{
    background-color: #81F7D8;
}

#lienex:visited /* Quand le visiteur a déjà vu la page concernée */
{
    color: red; /* Appliquer une couleur rouge */
}

#liencss {
	width:40%;
	height:300px;
	float: right;
    margin-right: 20%;
    margin-bottom: 5%;	
}


#serpent {
    text-align: center;
    font-style: italic;
    font-size: 18px;    
}

#serpent a {
color: black;
padding: 20px 10px 10px 95px;
background: #F5F6CE url(img/serpent.png) no-repeat 5px 10px;
}

/* première étape */
#serpent a, #serpent a:hover, #serpent a:focus {
animation-name: serpent; /* nom de l'animation */
animation-duration: 4s; /* temps de l'animation (4s) */
animation-iteration-count: infinite; /* nombre de boucles (infinie) */
animation-timing-function: linear; /* accelération de l'animation (constant) */
}
/* deuxième étape */

@keyframes serpent {   
0% {background:#F5F6CE url(img/serpent.png) no-repeat 5px 10px;}
50% {background:#F5F6CE url(img/serpent.png) no-repeat 40px 10px;}
100% {background:#F5F6CE url(img/serpent.png) no-repeat 5px 10px;}
}


#transex {
    /* Seules  les dimensions et la couleur de fond de nos paragraphes auront une transition. */
    transition-property: background-color, width, height;
    /* La transition durera trois secondes. */
    transition-duration: 3s;
    /* On stylise un peu plus nos paragraphes(= état initial).*/
    width: 10%;
    height: 10%;
    margin-left:10%;
    background-color:#F7819F;
}
     
/* Style lors du passage de la souris
(= état final). */

#transex:hover {
   width: 60%;
   height: 400px;
   margin-left:10%;
   background-color:#F5F6CE;
}

#transex2 {   
	width: 10%;
    height: 10%;
    margin-left:10%;
    background-color:#F7819F;
    border:solid 2px black;
    margin-bottom: 3%;
    transition: background-color 3s ease 1500ms, height 2s ease-in 0.2s, width 1s ease-out 0.3s;
    
}

#transex2:hover {
   width: 60%;
   height: 400px;
   margin-left:10%;
   background-color:#81F7BE;
}

#anim {
	border:solid black 2px;
	height:30px;
	background-color:#BEF781;
	margin-left:2%;  
	width:50px;     
}

#anim:hover {
	animation: anim1 6s ease-in-out ; 
}

@keyframes anim1 {
from, to { width: 100px;background-color:#BEF781;}
25%, 75% { width: 600px;background-color:#F3F781;}
50% { width: 300px;background-color:#F7819F;}
}

#anim2 {
  height: 50px;
  width: 50px;
  margin-left: 1%;  
  border-radius:100%;
  animation-name: circle;
  animation-duration: 1.5s; 
  animation-timing-function: ease-out; 
  animation-delay: 0s;
  animation-direction: alternate;
  animation-iteration-count: infinite;  
  animation-play-state: running;
  animation-fill-mode: none;
}

@keyframes circle {
  0% {
    transform: scale(.3);
    background-color: red;    
  }
  50% {
    transform: scale(0.6);
    background-color: green;
  }
  100% {   
    background-color: red;
  }
}

.chat  {  
  animation: marcherev 1s steps(12) infinite;
  background: url(../img/chatrev.png) 0 0 no-repeat; 
  height: 35px;
  width: 200px;  
}

 @keyframes marcherev {  
  0% {background-position: 0 0; } 
  100% {background-position: 0 -450px;}   
}

.chat2  {  
  animation: marche 1s steps(12) infinite;
  background: url(../img/chat1.png) 0 0 no-repeat; 
  height: 100px;
  width: 200px;  
}

#mouvecat {
  animation: chatmarche 7s linear infinite  ;   
  height: 100px;
  width: 200px; 
 }
 
 @keyframes marche {  
  0% {background-position: 0 0; } 
  100% {background-position: 0 -1195px;}   
}


@keyframes chatmarche {  
  from {transform: translate(700%,0); }   
  100% {transform: translate(-100%,0); }
   
}






@media screen and (max-width: 1000px) {
	.img_petit {
		width:80%;
		height:80%;	
		display: block;		
		margin-left: auto;
		margin-right: auto;
		transition: width 1s linear, height 1s linear;
		margin-top: 2em;
		margin-bottom: 2em;
	}  
		.img_petit:hover {
		width: 95%;
		height:95%;
		}
	.img_moy {
		width:80%;
		height:80%;	
		display: block;		
		margin-left: auto;
		margin-right: auto;
		transition: width 1s linear, height 1s linear;
		margin-top: 2em;
		margin-bottom: 2em;
	}  
	.img_moy:hover {
		width: 95%;
		height:95%;
	}
	.img_grand {
		width:80%;
		height:80%;	
		display: block;		
		margin-left: auto;
		margin-right: auto;
		transition: width 1s linear, height 1s linear;
		margin-top: 2em;
		margin-bottom: 2em;
	}  
	.img_grand:hover {
		width: 95%;
		height:95%;
	}

	.matos {
		width:25%;
		height:25%;		
		margin: 0 auto;
		vertical-align: middle;
		transition: width 1s linear, height 1s linear;
	}

	.matos:hover {
		width: 40%;
		height:40%;
	}

	ul { 
		margin: 0; 
	}
	ul li { 
		margin-left:1em; 
	}

	.code_petit {
		width: 100%;
	}

	.conteneur, .conteneurflex, .conteneurborar {
		flex-direction: column; 
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		text-align: center;
		vertical-align: middle;
		width: 95%;
	}
	
	.element, .elementflex, .elementborar {
		width:90%;	
	}
	
	.chat2  {  
	  width: 150px;  
	}
}
