html {
    background-image: url(./images/background.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    height: 100vh;
    background-color: #1a2433;
}

body {
    height: auto;
}

div#wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    height: auto;
	min-height:100vh;
}

div#container1 {
    width: 30%;
    min-width: 450px;
    height: auto;
    margin: auto;
    margin-top: 6%;
}

#myBody {
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
	background-color: #324a5e;
}

img#logo {
    width: 200px;
    top: 0;
    left: 0;
    position: absolute;
}

div#container2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    /*min-width: 555px;*/
    max-width: 100vw;
    right: 0;
    top: 0;
    margin: 1%;
    justify-content: flex-end;
    position: relative;
    float: right;
}

.temps {
    box-shadow: 0px 0px 18px black;
}

div#video {
    background-color: black;
    width: auto;
    height: auto;
    position: relative;
    margin: auto;
    margin-top: 2vh;
    box-shadow: 0px 0px 17px black;
	/*display: none;*/
}

div#video iframe {
    min-height: 360px;
    min-width: 500px;
}

div#compteRebours {
    background-color: #44a894;
    width: auto;
    padding: 14px;
    position: relative;
    margin: 1%;
    color: white;
    font-size: calc(0.5vw + 16px);
    text-align: center;
    font-family: sans-serif;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

div#visios {
    margin: 0 1%;
    height: auto;
    /*background-color: #516070;*/
}

.actif{
	background-color: #50aa93 !important;
}

button {
    position: absolute;
    top: 50%;
    left: 14%;
    width: auto;
    height: auto;
    font-size: 26px;
    box-shadow: 0px 2px 11px 2px #000000;
    padding: 24px;
    border-radius: 10px;
	cursor:pointer;
}

@-webkit-keyframes blink { 50% { border-color: #ffffff; }  }
.actif.temps{ 
	border: 4px solid transparent;
	-webkit-animation: blink .5s step-end infinite alternate; 
}

.temps.actif td:hover {
    background-color: #346e5f;
}

.temps.actif td.tdTitre:hover {
    background-color: #324a5e;
}

.inactif{
	background-color: #4d5468;
}

p.titreTemps {
    font-size: calc(0.6vw + 10px);
}
div#temps1 {
    width: auto;
    height: auto;
	margin-top: 2vh;
    margin-bottom: 3vh;
	border-radius: 12px;
    overflow: hidden;
}

div#temps2 {
    width: auto;
    height: auto;
    margin-bottom: 3vh;
	border-radius: 12px;
    overflow: hidden;
}

div#temps3 {
    width: auto;
    height: auto;
	border-radius: 12px;
    overflow: hidden;
	margin-bottom: 3vh;
}

table {
    width: 100%;
    height: auto;
    border-collapse: collapse;
}

td {
    border: 3px solid #5f789b;
    border-spacing: 0px !important;
	width:33%;
	height:33%;	
	padding: 0.3vh;
}

td p {
    text-align: center !important;
    padding: 4px !important;
    width: 100% !important;
    display: inline-block !important;
}

td a, td p {
    text-align: left;
    color: white;
    font-family: sans-serif;
    font-size: calc(0.5vw + 8px);
    line-height: calc(0.7vw + 13px);
    width: auto;
    height: 100%;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    margin: auto;
    padding: 4px;
    padding-left: 30px;
}

td a img {
    margin-right: 25px;
    height: 27px;
    margin-bottom: -5px;
    height: 38px;
}

td.tdtitre{
	background-color: #324a5e;
}

.inactif a{
	pointer-events: none;	
}

div#explication {
    background-color: #212b44;
}

div#explication td {
    color: #96c3e7;
    font-family: sans-serif;
    padding: 30px;
    font-size: 17px;
    text-align: justify;
    line-height: 24px;
}

div#explication a {
    display: inline;
    font-size: 17px;
    padding: 0;
    color: #c4dbe8;
}

div#explication a:hover {
    text-decoration: underline;
}

div#lien {
    width: 240px;
    height: 72px;
    background-color: transparent;
    position: absolute;
    top: 2vw;
    left: -7px;
	cursor:pointer;
}

div#inscriptions {
    width: auto;
    background-color: white;
    display: block;
    position: relative;
    text-align: center;
    padding: 15px 100px;
    font-size: 20px;
    margin: auto;
    margin-bottom: 10px;
    border-radius: 5px;
}

div#inscriptions a {
    text-decoration: none;
    font-family: sans-serif;
    color: #324a5e;
    font-weight: bold;
    font-size: 20px;
}

@-webkit-keyframes rotating /* Safari and Chrome */ {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotating {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
#imgSpinner {
  -webkit-animation: rotating 2s linear infinite;
  -moz-animation: rotating 2s linear infinite;
  -ms-animation: rotating 2s linear infinite;
  -o-animation: rotating 2s linear infinite;
  animation: rotating 2s linear infinite;
  width: 32px;
  height: 32px;
  margin-right: 30px;
}

@media screen and (max-width: 1100px) {
  div#wrap {
    flex-direction: column;
  }
  div#container1 {
    width: 90%;
  }
  div#container2 {
    margin: auto;
    margin-top: 3%;
    height: auto;
  }  
  div#video iframe {
    min-height: 50vw;
    width: 100%;
    height: auto;
  }
  #myBody {
    width: auto;
    background-color: #324a5e;
    height: auto;
    overflow: scroll;
    display: block;
    margin: auto;
  }
  td{
	padding:0;
  }  
  div#compteRebours {
    padding: 31px;
    font-size: calc(0.5vw + 23px);
    line-height: calc(0.5vw + 35px);
}  
  div#video {
    width: 100%;
    height: auto;
    margin: auto;
  }
	td a, td p {
		font-size: calc(0.5vw + 12px);
		line-height: calc(0.7vw + 19px);
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 10px;
		text-align: center;
	}
  td a img {
    margin: 20px;
  }
  p.titreTemps {
    font-size: calc(0.6vw + 22px);
    line-height: calc(0.7vw + 50px);
  }
}