
@import "https://fonts.googleapis.com/css?family=Open+Sans";

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
a_present {
  text-decoration: none;
}
.container_present {
  align-items: center;
  height: 100%;
  margin: auto;
  padding: auto;
  text-align: center;
  background: #000000;
}
.gallery_present {
  list-style-type: none;
  height: 100%;
  margin: auto;
  padding: auto;
  overflow: hidden;
  text-align: center;
  background: #000000;
}
.gallery_present li {
  float: left;
  padding: auto;
  margin: auto;
  height: 100%;
  width: 400px;
  background: #000000;
}
.gallery_present .flip {
  height: 100%;
  width: 100%;
  position: relative;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;

  -webkit-perspective: 2000px;
  -moz-perspective: 2000px;
  perspective: 2000px;
}
.gallery_present li:hover .front-side {
  opacity: 0;
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  transform: rotateY(180deg);
}
.gallery_present li:hover .back-side {
  background-image:url('img/fond.png');
  opacity: 1;
  -webkit-transform: rotateY(0deg);
  -moz-transform: rotateY(0deg);
  transform: rotateY(0deg);
}
.gallery_present .front-side,
.gallery_present .back-side {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility:  hidden;
  -moz-backface-visibility:  hidden;
  backface-visibility:  hidden;

  -webkit-transition: transform 0.4s ease-out, opacity 0.3s ease-out;
  -moz-transition: transform 0.4s ease-out, opacity 0.3s ease-out;
  transition: transform 0.4s ease-out, opacity 0.3s ease-out;
}
.gallery_present .front-side {
  opacity: 1;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;

  -webkit-transform: rotateY(0deg);
  -moz-transform: rotateY(0deg);
  transform: rotateY(0deg);
}
.gallery_present .back-side {
  opacity: 0;
  -webkit-transform: rotateY(-180deg);
  -moz-transform: rotateY(-180deg);
  transform: rotateY(-180deg);
}
.gallery_present .back-side > a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery_present li:nth-child(1) .front-side {
  background-image:url('img/WestElizabeth.png');
}
.gallery_present li:nth-child(1) .loader {
  border-top-color: #edbe1a;
  border-left-color: #edbe1a;
}
.gallery_present li:nth-child(1) .text h3 {
  color: #edbe1a;
}
.gallery_present li:nth-child(1) .text h3:after {
  background: #edbe1a;
}

.gallery_present li:nth-child(2) .front-side {
  background-image: url('img/CCABanniere.png');
}

.gallery_present li:nth-child(2) .loader {
  border-top-color: #0067b1;
  border-left-color: #0067b1;
}
.gallery_present li:nth-child(2) .text h3 {
  color: #0067b1;
}
.gallery_present li:nth-child(2) .text h3:after {
  background: #0067b1;
}

.gallery_present li:nth-child(3) .front-side {
  background-image: url('img/Tribucomanche.png');
}
.gallery_present li:nth-child(3) .loader {
  border-top-color: #da0700;
  border-left-color: #da0700;
}
.gallery_present li:nth-child(3) .text h3 {
  color: #da0700;
}
.gallery_present li:nth-child(3) .text h3:after {
  background: #da0700;
}

.gallery_present li:nth-child(4) .front-side {
  background-image: url('img/Inconnu.png');
}
.gallery_present li:nth-child(4) .loader {
  border-top-color: #efebd1;
  border-left-color: #efebd1;
}
.gallery_present li:nth-child(4) .text h3 {
  color: #efebd1;
}
.gallery_present li:nth-child(4) .text h3:after {
  background: #efebd1;
}

.gallery_present .content {
  text-align: center;
  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  transform: translateY(-50%);
  padding: 25px 20px;
}

.gallery_present li:hover .text {
  opacity: 1;
  visibility: visible;
  max-height: 2000px;
  -webkit-transition: opacity .3s ease-in 1.5s, max-height .1s ease 1.5s;
  -moz-transition: opacity .3s ease-in 1.5s, max-height .1s ease 1.5s;
  transition: opacity .3s ease-in 1.5s, max-height .1s ease 1.5s;
}
.gallery_present li:hover .loader {
  opacity: 1;
  visibility: visible;
  -webkit-animation: hide .1s ease-in-out 1.4s forwards, load .75s infinite;
  -moz-animation: hide .1s ease-in-out 1.4s forwards, load .75s infinite;
  animation: hide .1s ease-in-out 1.4s forwards, load .75s infinite;
}
.gallery_present .text {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
}
.gallery_present .content h3 {
  position: relative;
  color: #3498DB;
  font: normal 30px/1.25 'Open Sans';
  margin-bottom: 25px;
}
.gallery_present .content h3:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  bottom: -10px;
  left: 50%;
  margin-left: -25px;
  background: #85C1E9;
}
.gallery_present .content p {
  margin: 10px 0;
  color: #D6DBDF;
  font: normal 16px/1.25 'Open Sans';
}
.gallery_present .loader {
  opacity: 0;
  visibility: hidden;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: auto;
  border: 4px solid transparent;
  border-top-color: #3498DB;
  border-left-color: #3498DB;
}

@-webkit-keyframes load {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@-moz-keyframes load {
  0% {
    -moz-transform: rotate(0deg);
  }
  100% {
    -moz-transform: rotate(360deg);
  }
}
@keyframes load {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes hide {
  100% {
    visibility: hidden;
    opacity: 0;
  }
}
@-moz-keyframes hide {
  100% {
    visibility: hidden;
    opacity: 0;
  }
}
@keyframes hide {
  100% {
    visibility: hidden;
    opacity: 0;
  }
}

