html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

html, body {
  width: 100%;
}

body {
  line-height: 1.5em;
  font-size: 1.2em;
  margin: 40px 0 100px 0;
  text-align: center;
  font-family: "Comic Sans MS";
  background-color: #ebebeb;
  background-image: url(img/bg_paper-clean.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

a {
  color: white;
  text-decoration: none;
  border-bottom: 1px dotted white;  
}

a:hover {
  border-bottom: 1px dotted black; 
}

.discrete-a {
  border: 0;
}

.discrete-a:hover {
  border: 0;
}

.root {
  text-align: left;
  display: inline-block;
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

.dechire-top,
.dechire-bottom {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 10;
  background-repeat: no-repeat;
  background-size: cover;
}

.dechire-top {
  top: -30px;
  height: 88px;
  background-image: url(img/dechire-top.png);
  background-position: center bottom;
}

.dechire-bottom {
  bottom: -35px;
  height: 102px;
  background-image: url(img/dechire-bottom.png);
  background-position: center top;
}
.poster-video {
  width: 100%;
  height: 420px;
}

.half-poster-video {
  display: inline-block;
  width: 48%;
  height: 275px;
}


h1, h2 {
  text-align: center;
  font-family: 'Permanent Marker', cursive;
  text-shadow: 0 0 10px white, 0 0 1px white, 0 0 3px white;
}

h1 img {
  vertical-align: middle;
}

h2 {
  margin-top: 2em;
  font-size: 2.3em;
}

h3 {
  font-family: 'Permanent Marker', cursive;
  margin-bottom: 0;
}

b {
  font-family: 'Permanent Marker', cursive;
  font-weight: normal;
}

.center {
  display: block;
  margin: auto;
  max-width: 90%;
}

.fleft {
  float: left;
  max-width: 50%;
}

.fright {
  float: right;
  max-width: 50%;
}


.flipH {
  transform: scaleX(-1.0);
}

.breathe {
  animation: breath 3s infinite; 
}

.oscillate {
   animation: oscillation 6s infinite; 
   transition: animation-duration 1s ease-none;
}


.oscillate:hover {
  animation-duration: 1s;
   /*animation: oscillation 1s infinite; */
}

.bot-menu {
  text-align: center;
}

.gallery {
  text-align: center;
}

.gallery a {
  display: inline-block;
  margin: 6px;
  cursor: zoom-in;
}

.gallery a img {
  border: 1px solid black;
}

.gallery a:hover img {
 border: 1px solid #fcd41d; 
}

.small {
  font-size: 0.7em;
  text-align: center;
}

.float-or-not {
  float: right;
  margin: 0 0 10px 14px;
  text-align: center;
}

.floatL-or-not {
  float: left;
  margin: 0 14px 10px 0;
  text-align: center;
}

.flip img {
  transition: transform 0.25s ease-out;
}

.flip:hover img {
  transform: scaleX(-1);
}

.soucoupe {
  position: absolute;
  display: block;
  left: 100px;
  top: 120px;
  width: 180px;
  height: 118px;
  background-image: url(img/soucoupe.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  cursor: pointer;
  transition: all 1s ease-out;
}



.agenda {
  padding: 0;
}

.agenda li {
  list-style-type: none;
  /*position: relative;*/
  line-height: 1.8em; 
}

.agenda li:nth-child(odd) {
  background: rgba(255,255,255,0.3);
}

.agenda-event {
  display: flex;
  align-items: flex-start;
} 

.agenda-event .agenda-date {
  display: inline-block;
  width: 28%;
  text-align: right;
  padding-right: 10px;
  border-right: 2px dotted rgba(255,255,255,0.5);
  opacity: 0.9;
  /*flex: 1 1 auto;*/
}

.agenda-event .agenda-summary {
  display: inline-block;
  width: 68%;
  text-align: left;
  padding-left: 10px;
  /*flex: 1 1 auto;*/
}

.agenda-old {
  opacity: 0.8;
  font-size: 0.9em;
}



@keyframes oscillation {
  from {transform: rotate(0deg); animation-timing-function: ease-out;}
  25% {transform: rotate(3deg); animation-timing-function: ease-in;}
  50% {transform: rotate(0deg); animation-timing-function: ease-out;}
  75% {transform: rotate(-3deg); animation-timing-function: ease-in;}
  to {transform: rotate(0deg);}
}

@keyframes breath {
  from {transform: scale(1); animation-timing-function: ease-out;}
  25% {transform: scale(1.04); animation-timing-function: ease-in;}
  50% {transform: scale(1); animation-timing-function: ease-out;}
  75% {transform: scale(0.96); animation-timing-function: ease-in;}
  to {transform: scale(1);}
}

@media( max-width: 770px ) {
  body {
    font-size: 1em;
  }

  h1 span {
    display: block;
  }
  
  .fleft, .fright {
    max-width: 100%;
    float: no
  }

  .gallery a img {
    max-width: 120px;
  }

  .poster-video {
    height: 250px;
  }

  .half-poster-video {
    height: 200px;
  }

  .soucoupe {
    width: 135px;
    height: 88px;
    left: 5px;
    top: 134px;
  }

  .shrinkable {
    height: 70px;
  }
}

@media( max-width: 480px ) {
  .poster-video {
    height: 150px;
  }

  .half-poster-video {
    width: 100%;
  }

  .float-or-not,
  .floatL-or-not {
    float: none;
    display: block;
    margin: 10px auto;
  }
  .soucoupe {
    width: 90px;
    height: 59px;
    left: 5px;
    top: 174px;
  }
  .shrinkable {
    height: 50px;
  }
}