@import url('https://fonts.googleapis.com/css?family=Comfortaa');
@import url('https://fonts.googleapis.com/css?family=PT+Serif');
body {
  font-family: "Comfortaa", Arial; 
  height: 100%;
}

a {
  color: #00073F;
}

.bg_card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(255, 255, 255, 0.4);

  z-index: 100;

  display: none;
}


div.titre {
    text-align: center;
    width:100%;
    height: 30px;
    margin-top: 15px;
}

body {
    position: relative;
    text-align:center;
}

div.container {
  padding-top: 20px;
  padding-bottom: 20px;
}

.cards {
    margin:10px;
    width:200px;
    height:225px;
    background-color:#FFF;
    cursor:pointer;
    display:inline-block;
    overflow:hidden;
    cursor: pointer;
    border: 2px solid gainsboro;
    border-radius: 10px;
    box-shadow: 2px 2px 8px grey;
    z-index: 30;
}

.cards-transition {
    -webkit-transition: opacity 0.5s ease;
    -moz-transition: opacity 0.5s ease;
    -o-transition: opacity 0.5s ease;
    transition: opacity 0.5s ease;
}

.cards-notransition {
    -moz-transition: initial!important;
    -webkit-transition: initial!important;
    -o-transition: opacity 0 ease!important;
    transition: initial!important;
}
img#cat-image-recto  {
    display:block;
    height:100%;
    width:100%;
    margin:0 auto;
}

#cloneBack img#cat-image-verso  {
    display:block;
    width:auto;
    height:200px;
    margin:0 auto;
}

#cardClone {
    position:fixed;
    display:none;
    margin:30px;
    width:200px;
    height:225px;


    -webkit-transition:.6s;
    transition:.6s;
    -webkit-transform-style::preserve-3d;
    transform-style:preserve-3d;
    z-index:199;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}
#cloneFront, #cloneBack {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background-color: #e3ecf7;
    width:100%;
    height:100%;
    position:absolute;
    -webkit-transition:.6s;
    transition:.6s;
    overflow:hidden;

    margin: 0 auto;

    cursor: pointer;
    border: 2px solid gainsboro;
    border-radius: 10px;
    box-shadow: 2px 2px 8px grey;
}
#cloneFront {
    z-index:200;
    transform: translatez(0);
}
#cloneBack {
    transform:rotateY(-180deg);
    z-index:198;
}
.buttonsActCard {
  position: absolute;
  bottom: 5;
  width: 100%;
}
span.message-title {
  display: block;
  margin: 10px;
  font-size: 1.2em;
  font-weight: bold;
}
span.message-body {
  display: block;
}
.buttonsActCard button {
  border-radius: 5px;
  color: #666;
  border: 1px solid #666;
  background: transparent;
  margin-left: 10px;
}

.buttonsActCard button:hover {
  background-color:#87C9D3;
  color: #000;
}


#cloneBack .message {
  font-size: 1em;
  font-family: "Comfortaa", Arial;
  margin: 5px;
  margin-top: 20px;
  display: block;
}
#closeClone {
    color:white;
    background-color:black;
    border:1px solid grey;
    border-radius:2px;
    cursor:pointer;
    float:right;
}

section.message {
  display: block;
  width: 30%;
  height: 35%;
  font-size: 2vw;
  margin-top: 7%;
}

#buttonnav {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 70%;
  margin: 0 auto;
  width: 100%;
  height: 100px;
}

#buttonnav_back {
  width: 100%;
  height: 50px;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  margin-bottom: 40px;
}

#buttonnav a, #buttonnav_back a {
    margin:10px;
    width:14%;
    padding: 1%;
    font-size: 1.2vw;
    z-index: 10;
    background-color:#FFF;
    border: 2px solid gainsboro;
    border-radius: 10px;
    box-shadow: 2px 2px 8px grey;
    text-decoration: none;
    color: #666;
}

#buttonnav a img, #buttonnav_back a img, #button_link a img {
  vertical-align: middle;
  float: left;
  margin-left: 5px;
  margin-right: 5px;
  width: 20px;
  }

#button_link {
  position: fixed;
  bottom: 0;
  left:0;
  text-align: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  height: 40px;
  z-index: 30;
}

#button_link_top {
  position: fixed;
  top: 0;
  left:0;
  text-align: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  height: 60px;
  z-index: 30;
}

#button_link_top a {
  display: inline-block;
  text-decoration: none;
  margin-top: 5px;
}

#button_link a {
  display: inline-block;
  text-decoration: none;
  color: #666;
  margin: 10px;
}

#button_link a:hover {
  color: orange;
}

#buttonnav a:hover, #buttonnav_back a:hover {
  background-color:#87C9D3;
  color: #000;
}

div.copyright {
  color: #666;
  position: absolute;
  bottom: 60px;
  width: 100%;
  font-size: 12px;
  text-align: center;
}

.onlysmall {
  display: none;
}

div#bg_card_message {
  margin: auto; 
  margin-top:150px;
  padding: 30px;
  width: 200px;
  background-color: white;
  border: #666 solid 1px;
  border-radius: 10px;
}



@media all and (max-width: 800px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
  .onlysmall {
    display: inherit;
  }

  .onlylarge {
    display: none;
  }

  #buttonnav_back {
    margin-bottom: 5px;
  }

  #buttonnav a, #buttonnav_back a {
    margin:5px;
    width:100px;
    padding: 20px;
    font-size: 1em;
   
  }

 div.titre {
    font-size: 30px;
    text-align: center;
    height: 90px;
    width: 350px;
    margin-top: 10px;
    display: block;
    padding-bottom: 10px;
 }

   div.container {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  section.message {
    display: block;
    width: 100%;
    height: 300px;
    font-size: 2em;
    margin-top: 40px;
  }

  div.wrapper_on {
    overflow-y: scroll;
    white-space:nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .copyright {
    display: none;
  }

  #indication_utilisation {
    display: none;
  }


  .bg_card {
    background: transparent;
  }

  
}

@media only screen
    and (min-height: 600px) 
    and (max-height: 900px)
    and (max-width: 600px) { 

    body {
        background-size: auto 70%;
    }

       #indication_utilisation {
      display: block;
      position: fixed;
      bottom: 40px;
      height: 80px;
      left:0;
      text-align: center;
      width: 100%;
      background: rgba(255, 255, 255, 0.5);
  }

   #indication_utilisation #indications {
      color: #666;
      font-weight: bold;
      text-align: center;
      display: inline-block;
      width: 60%;
      margin-top: 15px;
      font-size: 0.8em;
   }

  #indication_utilisation #fleche_gauche, #indication_utilisation #fleche_droite {
    display: inline-block;
    height: 80px;
    font-size: 60px;
    color: #666;
    margin: 10px;
  }

  #indication_utilisation #fleche_gauche {
    float: left;
  }

  #indication_utilisation #fleche_droite {
    float: right;
  }


}

/* CSS Iphone X */
@media only screen 
    and (device-width : 375px) 
    and (device-height : 812px) 
    and (-webkit-device-pixel-ratio : 3) { 
    
    body {
        top: 10px;
        background-size: auto 70%;
    }


   
}
