body, html {
    margin: 0;
    padding: 0;
}

body {
    background-color: #D5FAF5;
}

p {
    margin: 0;
    padding: 0;
}

#header {
    position: relative;
    display: block;
    height: 340px;
    width: 100%;
    background: #8DE0D4 url("../assets/logo.png") no-repeat center -60px;
    margin: 0;
    padding: 0;
}

#gauche {
    display: block;
    width: 50%;
    height: 340px;
    float: left;
    background: transparent url("../assets/gauche.png") no-repeat right -10px;
    margin-left: -180px;
}

#droite {
    display: block;
    width: 50%;
    height: 340px;
    float: right;
    background: transparent url("../assets/droite.png") no-repeat 180px -48px;
}

#frise {
    position: absolute;
    display: block;
    width: 100%;
    height: 340px;
    background: transparent url("../assets/motif.png") repeat-x center bottom;
    z-index: 100;
}

#content {
    clear: both;
    position: relative;
    background-color: #D5FAF5;  
    width: 840px;
    text-align: center;
    margin: 0 auto;
    padding-bottom: 100px;
    font-family: "azo-sans-web",sans-serif;
    font-weight: 200;
    font-size : 21px;
    line-height : 30px;
    color : #0f6e5f;
}

#jeu {
    position: relative;
    width: 580px;
    margin: 0 auto;
}

.grille {
    position: relative;
    float: left;
    background-color: #FFF;
    width: 370px;
    padding: .1em 20px .8em 20px;
}

.margin20 {  margin-right: 20px; }

.italic {
    font-style: italic;   
}

.rose {
    color: #fc2671;   
}
a.rose {
    text-decoration: none;
    color: #fc2671;   
}

.regular {
    font-weight: normal;
}

.num {
    display: block;
    float: left;
    font-weight: 400;
    margin-right: 10px;
    margin-bottom: 10px;
    width: 20px;
    padding: 3px;
    border: 1px solid #ff4d8e;
    text-align: center;
    color: #fc2671;
    font-size: 12px;
    cursor:pointer;
}


.num:last-child {
    margin-right: 0;
}

.numOver {
    background-color: #ffd3e3;
    color: #ff0000;
}

.numOver6 {
    background-color: #ffead7;
    color: #ff0000;
}

.numSelectedOver {
    background-color: #ff4d8e;
    color: #FFF;
}

.numSelectedOver6 {
    background-color: #ffae55;
    border-color: #ff8c00;
    color: #FFF;
}

.selected {
    background-color: #fc2671;
    color: #FFFFFF;
}

.selected6 {
    background-color: #ff8c00;
    border-color: #ff8c00;
    color: #FFFFFF;
}

#chance {
    clear: both;
    padding-top: 10px;
}

#chance {
    clear: both; 
    padding-top : 0px;
}

#boutons {
    position: relative;
    margin-top: 40px;
    margin-bottom: 50px;
    text-align: center;
    width: 100%;
}

#erreur {
    color: #FF0000;
}

#error {
    color: #FF0000;   
}

#showError, #showErrorComp, #showAlert {
    display: none;
    position: absolute;
    right: 0;
    top: -30px;
    font-size: 14px;
    line-height: 16px;
    text-align: left;
    color: #FFF;
    padding: 1em 1.5em;
    box-shadow: -2px 2px 0 1px rgba(0,0,0,.1); 
}
#showError, #showErrorComp { background-color: #F00; }
#showAlert { 
    background-color: #ff8c00; 
    top: 200px;
    left: 0;
    width: 100px;
    padding: .6em .8em;
    z-index: 1;
}

#showAlert a {
    text-decoration: none;
    color: #400a1d;
    font-style: italic;
}


#arrow, #arrowComp, #arrowAlert {
    border-left: solid transparent 10px;
    border-right: solid transparent 10px;
    border-top: solid #F00 11px;
    bottom: -9px;
    height: 0;
    right: 40px;
    margin-left: -13px;
    position: absolute;
    width: 0;
}
#arrowAlert {
    border-top: solid #ff8c00 11px;
    left: 20px;
}

#arrowComp { right: 15px; }

.logo {
    align-content: center;
    text-align: center;
    
}

.infos {
    font-size: 16px;
    color: #0f6e5f;
}

h3 {
    display: block;
    width: 70%;
    font-family: "azo-sans-web",sans-serif;
    font-size : 16px;
    font-weight: 400;
    text-align: left;
    color : #fc2671;
}

.boule {
    float: left;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    margin-left: 5px;
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
}

.bgRose {
    background-color: #e62368;
}

.bgVert {
    background-color: #82c200;
}

.boules {
    display: block;
    height: 20px;
    vertical-align: bottom;
    float: right;
    margin-top: 23px;
    padding-top: 5px;
}

.ligne {
    clear: both;
    height: 10px;
}

.titreGrille {
    display: block;
    height: 30px;
}

.titre {
    float: left;
}

#valider {
    display: inline;
    width: 50%;
    height: 40px;
    font-family: azo-sans-web, sans-serif;
    font-size: 18px;
    line-height: 35px;
    background-color: #fc2671;
    color: #FFF;
    margin: 20px 0 20px 20px;
    padding: .5em 1.3em;
    text-decoration: none;
    
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

#valider:hover {
    background-color: #e62368;
}

#vider {
    display: inline;
    width: 50%;
}

.clear {
    clear: both;
}

#reset {
    width: 50%;
    height: 40px;
    font-family: azo-sans-web, sans-serif;
    font-size: 18px;
    line-height: 35px;
    background-color: #BBDBD7;
    color: #5b918a;
    margin: 20px 0px 0 0;
    padding: .5em 1.3em;
    text-decoration: none;
    
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

#reset:hover {
    background-color: #b1cec9;
}

.description {
    margin: 1em 0 1.5em 0;
    text-align: left;
}

#resetDiv {
    position: relative;
    float: left;
    width: 390px;
    text-align: right;
    margin: 0;
    padding: .1em 0px .8em 20px;
}

#validerDiv {
    position: relative;
    float: left;
    width: 390px;
    text-align: left;
    margin: 0;
    padding: .1em 0px .8em 20px;
}

h1 {
    padding: 0;
    margin: 0;
    text-align: center;    
    font-family: "azo-sans-web",sans-serif;    
    font-weight: 400;
    font-size: 21px;
    line-height: 23px;
    text-transform: uppercase;
}

#baseline {
    clear: both;
    position: absolute;
    top: 250px;
    display: block;
    width: 100%;
}

.description2 {
    margin: 0 0 1.5em 0;
    text-align: left;
}

.bgBleu {
    background-color: #7ea39e;
}

.bg6 {
    background-color: #ff8c00;
}

.grilleChance {
    position: relative;
    float: left;
    background-color: #FFF;
    width: 90px;
    padding: .1em 0 .8em 20px;
}

.margin50 { margin-right: 50px; }

#explication {
    text-align: left;
    font-size: 16px;
    line-height: 20px;
    font-style: italic;
    padding-bottom: 2em;
}
a.lien {
    text-decoration: none;
    color: inherit;
}



/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/*  iPhone 5 & 5S portrait & landscape  */
@media only screen 
and (max-width : 568px) {
    #content {
        width: 100%;
        padding: .2em 0;
        font-size: .8em;
        line-height: 1.5em;
    }
    #gauche, #droite {
        height: 200px;
    }
    #header{
        height: 200px;
        background-size: cover;
        background-position: center -40px;
        z-index: 1;
        position: relative;
    }
    #frise {
        height: 200px;
    }
    
    .description, .description2 {
        padding: 0 1em;
    }
    #jeu, .grille, .grilleChance {
        width: 100%;
    }
    .grille, .grilleChance {
        padding: .1em 0 2vw 0;
        margin-bottom: 2em;        
    }
    #loto, #chance { 
        padding: 0 2vw;
    }
    .num {
        padding: 1em 1vw;
        margin-right: 1vw;
        width: 6vw;
    }
    #boutons {
        margin-top: 20px;
        padding: 0 10%;
        width: 80%
    }
    #reset, #valider {
        float: none;
        margin: 0;
        padding: .5em 0 .3em 0;
        display: block;
        width: 100%;
        margin-bottom: 1em;
        font-weight: 400;
    }
    #explication { padding: 0 2em 2em 2em;}
}
