/* Test */

.bulle {
    position: absolute;
    display: none;
    z-index: 1;
    width: 100px;
    height: 30px;
    background: rgb(41, 41, 41);
    border: 1px solid black;
    font-family: "F1Regular";
    src: url('Formula1-Regular.ttf');
}

.bulle2 {
    position: absolute;
    display: none;
    z-index: 1;
    width: 100px;
    height: 50px;
    background: rgb(41, 41, 41);
    border: 1px solid black;
    font-family: "F1Regular";
    src: url('Formula1-Regular.ttf');
}

.appel:hover .bulle {
    display: block;
}

.appel:hover .bulle2 {
    display: block;
}

/* Fleche */

.up-triangle {
   width: 0; 
   height: 0; 
   border-bottom: 17px solid #39ff00; 
   border-left: 10px solid transparent; 
   border-right: 10px solid transparent; 
}

.down-triangle { 
   width: 0; 
   height: 0;
   border-top: 17px solid red;
   border-left: 10px solid transparent; 
   border-right: 10px solid transparent; 
}

.left-triangle {
   width: 0;
   height: 0;
   border-right: 17px solid #fff;
   border-top: 8px solid transparent;
   border-bottom: 8px solid transparent;
}

.right-triangle {
   width: 0;
   height: 0;
   border-left: 17px solid #fff;
   border-top: 8px solid transparent;
   border-bottom: 8px solid transparent;
}


.curvedarrow {
  position: relative;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-right: 9px solid #fff;
  transform: rotate(10deg);
}
.curvedarrow:after {
  content: "";
  position: absolute;
  border: 0 solid transparent;
  border-top: 3px solid #fff;
  border-radius: 20px 0 0 0;
  top: -12px;
  left: -9px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
}
    
.cross {
  background: #fff;
  height: 20px;
  position: relative;
  width: 4px;
}
.cross:after {
  background: #fff;
  content: "";
  height: 4px;
  left: -8px;
  position: absolute;
  top: 8px;
  width: 20px;
}

/* bouton */
/* Set a style for V buttons */
input.sv[type=submit] {
    font-size: 20px;
    font-weight: bold;
    background-color: #f76647;
    color: white;
    padding: 5px 5px;
    margin: 2px 0;
    border: none;
    cursor: pointer;
    width: 50%;
	border: 1px solid #f76647;
}
input.sv[type=submit]:hover {
    font-size: 20px;
    font-weight: bold;
    background-color: #000;
    color: #f76647;
    border: 1px solid #f76647;
}



/* TABLEAU CLASSEMENT */

#table-class {
    text-align: center;
    color: #ffffff;
    font-size: 1.2rem;
}

#table-class h2 {
    margin-top: 40px;
    margin-bottom: 10px;
    text-align: center;
}

table {
    margin: auto;
    background-color: rgba(0, 0, 0, 0.3);
}

table,
th,
td {
    padding: 6px;
    border-collapse: collapse;
    position: relative;
}

th {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
}

td,
th {
    text-align: center;
    border-bottom: 1px solid #333;
}

td.left,
th.left {
    text-align: left;
}

td.right,
th.right {
    text-align: right;
}

td span.position {
    display: inline-block;
    width: 40px;
    color: black;
    font-weight: bold;
    font-size: 1.1rem;
    background-color: white;
    margin: -4px;
    padding: 4px;
    border-radius: 0 0 4px 0;
}

td.pos-1 {
    background-color: #665d05;
}

td.pos-2 {
    background-color: #404040;
}

td.pos-3 {
    background-color: #3a290e;
}

/* Suite dans le config.php*/

td.score-ecurie {
    background-color: #0e2d0c;
}

td.score-ecurie-0 {
    background-color: #44566f;
}

td .fastest-lap {
    font-size: 0.7rem;
    padding: 2px;
    background-color: #ffe700a6;
    color: black;
    margin-left: 2px;
    vertical-align: middle;
    position: absolute;
    top: 2px;
    right: 2px;
}

th a {
    color: #f76647;
}

td a {
    color: #f76647;
}

td.ecu-0 {
    width: 2px;
    font-size: 13px;
    font-weight: bold;
}


td.total {
    font-weight: bold;
}


/* Fin de TABLEAU CLASSEMENT */





/* Images */

img {
    height: auto;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

#apDiv5 {
  height:20px;
}


/* Stream Box */

.streamBox {
    display: inline-block;
    width: 24%;
    margin-right: 0.5%;
    text-align: center;
    color: transparent;
    /*border-bottom:5px solid #000;
    border-bottom:2px solid #000;
    border-top:2px solid #000;
    border-right:2px solid #000;
    border-left:2px solid #000;*/
}

.streamBox:hover {
    color: #CCC;
}

.streamBox .thumbContainer img {
    width: 98%;
    height: auto;
}

.streamBox .titre {
    font-size: 1.5rem;
    color: #CCC;
}

.streamBox:hover .titre {
    color: #f76647;
}

.streamBox .viewers {
    color: #CCC;
    font-size: 0.8rem;
}

.streamInfos {
    height: 40px;
    padding-top: 3px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    overflow: hidden;
}

.streamInfos span.jeu,
.streamInfos span.username {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    float: left;
}

ul.infos {
    padding: 0;
}

ul.infos>li {
    display: inline-block;
    font-size: 11px;
}

ul.infos>li.username {
    margin-right: 5px;
}



/* Portrait Tablets */
/* Ecrans en 1024 */
/* Portrait Tablets */
/* Portrait Mobiles */
/* Paysage Mobiles */

@media only screen and (min-width: 768px) and (max-width: 959px) {
    #container {
        width: 680px;
    }
}

@media only screen and (min-width: 1000px) and (max-width: 1249px) {
    #container {
        width: 100%;
        height: 100%;
    }
    #main {
        width: auto;
    }
    .itemOverlay span {
        line-height: 10px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 999px) {
    #container {
        width: 100%;
        height: 100%;
    }
    #main {
        width: auto;
    }
    .itemOverlay span {
        line-height: 10px;
    }
    .streamBox {
        width: 49.9%;
        float: left;
    }
}

@media only screen and (max-width: 767px) {
    #container {
        width: 100%;
        height: 100%;
    }
    #main {
        width: 100%;
        float: left;
        margin: 0 auto;
        margin-left: 0px;
        text-align: left;
        padding-left: 0;
    }
    .itemOverlay span {
        line-height: 10px;
    }
    .streamBox {
        margin: 0;
    }
}

@media only screen and (min-width: 0px) and (max-width: 767px) {
    #container {
        width: 100%;
        height: 100%;
    }
    #main {
        width: 100%;
        float: left;
        text-align: center;
        padding-left: 0;
    }
    .streamBox {
        margin: 0;
        width: 49.9%;
        float: left;
    }
}

@media only screen and (min-width: 0px) and (max-width: 580px) {
    .streamBox {
        margin: 0;
        width: 100%;
        float: left;
    }
}


/* ---------------------------------------------------------------------------------------- */


/* ---------------------------------------------------------------------------------------- */


/* CUSTOM FONTS */

@font-face {
    font-family: "F1Black";
    src: url('Formula1-Black.ttf');
}

@font-face {
    font-family: "F1Bold";
    src: url('Formula1-Bold.ttf');
}

@font-face {
    font-family: "F1Regular";
    src: url('Formula1-Regular.ttf');
}

@font-face {
    font-family: "F1Wide";
    src: url('Formula1-Wide.ttf');
}


/* LAYOUT */

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html,
body {
    /*background: linear-gradient(0, #333, #111);*/
    margin:0;
    padding:0;
    background: url('background.jpg') no-repeat center fixed; 
    -webkit-background-size: cover; /* pour anciens Chrome et Safari */
    background-size: cover; /* version standardisée */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
}

#main {
    /* background: linear-gradient(0, #333, #111);*/
    display: flex;
    flex-direction: row;
    flex: 1;
    padding-bottom: 80px;
}

/*
#main.background-image {
    background: url('background.jpg') no-repeat;
    background-size: cover;
}
*/

@media only screen and (max-width: 959px) {
    #main {
        flex-direction: column-reverse;
    }
}


/* COMMON */

h1,
h2,
h3 {
    font-family: 'F1Bold', Arial, Helvetica, sans-serif;
}

h3 {
    color: rgba(255, 255, 255, 0.8);
}

a {
    text-decoration: none;
}

a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

p {
    margin-bottom: 20px;
}

.button {
    padding: 10px 15px;
    background-color: #f76647;
    color: white !important;
    font-weight: bold;
}

.buttongz {
    padding: 10px 15px;
    background-color: #d05744;
    color: white !important;
    font-weight: bold;
}

.buttonfia {
    padding: 10px 15px;
    background-color: #003063;
    color: white !important;
    font-weight: bold;
}

.button:hover {
    background-color: #f76647aa;
    transition: 0.2s;
}

.center {
    text-align: center;
    margin: auto;
    display: inline-block;
}

.columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.column {
    padding: 0 15px;
}


/* HEADER */

#header {
    line-height: 50px;
    /*ICI background-color: white; */
    background-color: #000000;
    border-bottom: 5px solid #f76647;
    /*padding-left: 270px;*/
    padding-left: 220px;
}

#header a {
    display: inline-block;
    color: #f76647;
    padding: 0 20px;
    font-weight: bold;
    vertical-align: top;
    font-family: 'F1Regular', Arial, Helvetica, sans-serif;
}

#header a.active {
    background-color: #f76647;
    /*color: white;*/
    color: rgb(0, 0, 0);
}

#header a:hover {
    background-color: #f7664722;
    color: #f76647;
    transition: 0.2s;
}

#header #logo {
    background: url('RStars1500x500.png');
    height: 66px;
    vertical-align: middle;
    position: absolute;
    left: 0;
}


/* 2eme menu */
#header2 {
    line-height: 25px;
    /*ICI background-color: white; */
    background-color: #000000;
    border-bottom: 5px solid #f76647;
    /*padding-left: 310px;*/
    text-align: center;
}

#header2 a {
    display: inline-block;
    color: #f76647;
    padding: 0 20px;
    font-weight: bold;
    vertical-align: top;
    font-family: 'F1Regular', Arial, Helvetica, sans-serif;
}

#header2 a.active {
    background-color: #f76647;
    /*color: white;*/
    color: rgb(0, 0, 0);
}

#header2 a:hover {
    background-color: #f7664722;
    color: #f76647;
    transition: 0.2s;
}






@media only screen and (max-width: 959px) {
    #header {
        padding-left: 10px;
        background-color: #000000;
        border-bottom: 5px solid #f76647;
    }
    #header a {
        padding: 0 5px;
        font-size: 1rem;
    }
    #header #logo {
        position: relative;
        height: 40px;
    }

    /* 2eme menu */
    #header2 {
        /*padding-left: 10px;*/
        text-align: center;
        background-color: #000000;
        border-bottom: 5px solid #f76647;
    }

    #header2 a {
        padding: 0 5px;
        font-size: 1rem;
    }
}



/* CONTENTS */

#contents {
    height: 100%;
    flex: 3;
    padding: 20px;
    display: flex;
    flex-direction: column;
    max-width: 1600px;
    margin: auto;
}

.white {
    color: white;
}

#countdown {
    display: flex;
    background-color: #d05744;
    border-radius: 0 30px 30px 30px;
    padding: 10px;
    margin: 0 auto 20px;
}

#countdown-event {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    flex: 1;
    justify-content: center;
}

#countdown-event-legend {
    font-size: 1.0rem;
    color: #000000BB;
}

#countdown-event-name {
    font-size: 2.5rem;
    font-weight: bold;
}

#countdown-time {
    display: inline-block;
    /* ici color: #444;
    background-color: white; */
    color: #fff;
    background-color: #232323;
    border-radius: 20px;
    font-size: 2.4rem;
    line-height: 40px;
    font-weight: bold;
    vertical-align: middle;
    padding: 0 10px;
}

#countdown-time-simple {
    margin-top: 10px;
}

.countdown-time-part {
    border-right: 1px solid #CCC;
    display: inline-block;
    margin: 8px 0;
    padding-right: 10px;
    text-align: center;
}

.countdown-time-part:last-child {
    border-right: 0;
    padding-right: 0;
}

.countdown-time-part-digit {
    line-height: 2.2rem;
}

.countdown-time-part-legend {
    font-size: 0.7rem;
    line-height: 1rem;
    color: #888;
    text-transform: uppercase;
}

@media only screen and (max-width: 959px) {
    #countdown-time {
        font-size: 1.5rem;
    }
    .countdown-time-part-digit {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 600px) {
    #countdown-time-simple {
        margin-top: 0;
    }
    #countdown {
        flex-direction: column;
    }
}

#streams {
    flex: 1;
}

#stream-empty {
    text-align: center;
    color: #888;
    font-size: 1.6rem;
    margin-top: 100px;
}

.fake-stream {
    display: inline-block;
    box-shadow: 1px 3px 3px 3px #00000030;
    background: url('fake-stream.jpg');
    background-size: cover;
    background-position: center;
    width: 30%;
    height: 300px;
    margin-right: 20px;
    margin-bottom: 10px;
}

@media only screen and (max-width: 1600px) {
    .fake-stream {
        width: 45%;
    }
}

@media only screen and (max-width: 1024px) {
    #stream-empty {
        margin-top: 10px;
    }
}

@media only screen and (max-width: 600px) {
    .fake-stream {
        width: 100%;
    }
}


/* SIDEBAR */

#sidebar {
    background-color: #444;
    /*flex: 1;*/
    padding: 20px;
    color: #DDD;
}

.sidebar-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #888;
    margin-bottom: 10px;
}

.streamer {
    display: block;
    margin-top: 10px;
    border-left: 3px solid white;
    padding: 2px 10px;
    color: #DDD;
}

a.streamer:hover {
    border-left-width: 6px;
    transition: 0.2s;
}

.streamer-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.streamer-twitch-name {
    font-size: 0.8rem;
    padding-left: 2px;
}

.streamer-description {
    font-size: 0.8rem;
    font-style: italic;
    color: #888;
    display: block;
}

@media only screen and (max-width: 959px) {
    #sidebar {
        padding: 10px;
    }
    .streamer {
        display: inline-block;
        width: 250px;
    }
    .streamer-name {
        font-size: 1rem;
        font-weight: bold;
    }
    .streamer:hover {
        padding: 0px 20px;
        border-left-width: 3px;
    }
}

@media only screen and (max-width: 600px) {
    .streamer-description {
        display: none;
    }
}


/* FOOTER */

#footer {
    background-color: #111;
    padding: 10px;
    color: #888;
}

@media only screen and (min-height: 700px) {
    #footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
}


/* PROFILS PILOTES */

.profils-pilotes {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.profil-pilote {
    width: 500px;
    display: inline-block;
    margin: auto;
    margin-top: 10px;
    min-height: 220px;
    line-height: 1.3rem;
    color: white;
}

.profil-pilote h3 {
    color: white;
}

.profil-pilote td.citation {
    font-size: 0.95rem;
    line-height: 1.0rem;
    text-align: left;
}


/* Test code */

.space-invader {
  box-shadow: 0 0 0 1em #fff,
  0 1em 0 1em #fff,
  -2.5em 1.5em 0 .5em #fff,
  2.5em 1.5em 0 .5em #fff,
  -3em -3em 0 0 #fff,
  3em -3em 0 0 #fff,
  -2em -2em 0 0 #fff,
  2em -2em 0 0 #fff,
  -3em -1em 0 0 #fff,
  -2em -1em 0 0 #fff,
  2em -1em 0 0 #fff,
  3em -1em 0 0 #fff,
  -4em 0 0 0 #fff,
  -3em 0 0 0 #fff,
  3em 0 0 0 #fff,
  4em 0 0 0 #fff,
  -5em 1em 0 0 #fff,
  -4em 1em 0 0 #fff,
  4em 1em 0 0 #fff,
  5em 1em 0 0 #fff,
  -5em 2em 0 0 #fff,
  5em 2em 0 0 #fff,
  -5em 3em 0 0 #fff,
  -3em 3em 0 0 #fff,
  3em 3em 0 0 #fff,
  5em 3em 0 0 #fff,
  -2em 4em 0 0 #fff,
  -1em 4em 0 0 #fff,
  1em 4em 0 0 #fff,
  2em 4em 0 0 #fff;
  background: #fff;
  width: 1em;
  height: 1em;
  overflow: hidden;
  margin: 50px 0 70px 65px;
}

/* Code supprimer */


/*
td.pos-4, td.pos-5, td.pos-6, td.pos-7, td.pos-8, td.score-ecurie {
  background-color: #0e2d0c;
}
td.pos-9, td.pos-10, td.pos-11, td.pos-12, td.pos-13, td.pos-14, td.pos-15, td.score-ecurie-0 {
  background-color: #44566f;
}
*/


/*
td.pos-nopoints{
  background-color: #efcfff;
}
*/
/*
td.ecu-0,td.ecu-1, td.ecu-2, td.ecu-3, td.ecu-4, td.ecu-5, td.ecu-6, td.ecu-7{
  width: 2px;
  font-size: 13px;
  font-weight: bold;
}
*/


/* Sans Equipe 
td.ecu-0 {
  color: #666;
}*/


/* Mercedes AMG Petronas 
td.ecu-1 {
  background-color: #01D2BD;
  color: #000000;
}*/


/* Scuderia Ferrari 
td.ecu-2 {
  background-color: #FE0000;
}*/


/* RedBull Racing 
td.ecu-3 {
  background-color: #1514DC ;
}*/


/* Renault 
td.ecu-4 {
  background-color: #FEF200;
  color: #000000;
}*/


/* Haas F1 
td.ecu-5 {
  background-color: #947E4F;
  color: #ffffff;
}*/


/* McLaren 
td.ecu-6 {
  background-color: #FF8700;
  color: #000000;
}*/


/* Alfa Roméo Racing 
td.ecu-7 {
  background-color: #9A0000;
}*/

/* Test 

a {
	color: #f76647;
	text-decoration: none;
	-webkit-transition: color 100ms;
    -moz-transition: color 100ms;
    -o-transition: color 100ms;
    transition: color 300ms;
}
a:visited {
	color: #f76647;
}
a:hover, a:focus, a:active {
	color: #f76647;
}*/