body {
    display: grid;
    margin: 0;
    grid-template-columns: 20% 20% 20% 20% 20%;
    grid-template-rows: 33% 33% 34% ;
    background-color: transparent;
    font-family: Arial;
}
h1{
    text-align: center;
}
h3{
    color:white;
    font-weight: none;
}
.inline{
    display: inline-block;
}
p{
    margin-top: 5px;
}
canvas {
    grid-column: 1 /6;
    grid-row: 1 / 4;
    width: 100%;
    height: 100%;
    z-index: 50;
}
.accueil{
    grid-column: 1 /6;
    grid-row: 1 / 4;
    width: 100%;
    height: 100%;
    z-index: 55;
    background-color:#2c3e50;
    color: black;
}
main{
    color: white;
    grid-column: 1 /2;
    grid-row: 1 / 4;
    z-index: 51;
    display: grid;
    grid-template-columns: 100%;
    /*grid-template-rows: 10% 20% 20% 20% 30%;*/
    grid-template-rows: 10% 90%;
    background-color: rgba(52,73,94,0.9);
    border-right: 1px solid rgba(44,62,80,0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
#title{
    background-color: rgba(44,62,80,0.9);
    border-bottom:1px solid white;
    
}
#reglages{
    padding: 15px;
}
#menu2,#menu3{
    margin-top: 20px;
}
button {
    background-color: #e7e7e7; 
    color: black; 
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;

}
button:hover, #color:hover{
    border: 1px solid black;
}
#color{
    width: 25px;
    height: 25px;
    border: 1px solid grey;
}
.color1{
    background-color: #2c3e50;
    float: right;
}
.color2{
    background-color: #c0392b;
    float: right;
}
.color3{
    background-color: #27ae60;
    float: right;
}
.color4{
    background-color: #f1c40f;
    float: right;
}
.color5{
    background-color: #bdc3c7;
    float: right;
}
.color6{
    background-color: #B33771;
    float: right;
}

/*Images page d'accueil*/
#cadre{
    width: 9vw;
    grid-column:2 ;
    grid-row: 1;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 15%;
    z-index: 2;
    
}


#guidon{
    width: 10vw;
    grid-column:3 ;
    grid-row: 1;
    margin-left: 11%;
    margin-right: 11%;
    margin-top: 25%;
    z-index: 2;
}
#garde{
    width: 7vw;
    grid-column:4 ;
    grid-row: 1;
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 10%;
    z-index: 2;
}

#texteCadre{
    grid-row: 2;
    grid-column:2 ;
    color: azure;
    font-size: 2vw;
    margin-left: 30%;
    margin-right: 30%;
    margin-top: 10%;
    z-index: 2;
}

#texteGudion{
    grid-row: 2;
    grid-column:3 ;
    color: azure;
    font-size: 2vw;
    margin-left: 25%;
    margin-top: 10%;
    z-index: 2;
    
}

#texteGarde{
    grid-row: 2;
    grid-column:4 ;
    color: azure;
    font-size: 2vw;
    margin-left: 8%;
    margin-top: -5%;
    z-index: 2;
}

#groupCadre{
    width: 100%;
    height: 90%;
    border-radius: 50%;
    background: transparent;
    border: 0.3vw solid white;
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column: 2;
    z-index: 1;
    
}

#groupGuidon{
    width: 100%;
    height: 90%;
    border-radius: 50%;
    background: transparent;
    border: 0.3vw solid white;
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column: 4;
    z-index: 1;
}

#groupGarde{
    width: 100%;
    height: 90%;
    border-radius: 50%;
    background: transparent;
    border: 0.3vw solid white;
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column: 6;
    z-index: 1;
    
}


#images{
    display: grid;
    grid-template-rows: 100%;
    grid-template-columns: 24% 13% 6% 13% 6% 13% 24%;
}

.droite1,.gauche1,.droite2,.gauche2{
    background-color: #2c3e50;
    border: 1px solid black;
    display: inline-block;
    margin-right: 10px;
    margin-left: 10px;
    padding-left: 5px;
    padding-right:5px;
    cursor: pointer;
    font-size: 1.2vw;
}
.droite1:hover,.gauche1:hover,.droite2:hover,.gauche2:hover{
    background-color:blue;
    border: 1px solid black;
}
.text_guidon{
    display: inline-block;
}
.text_cadre{
    display: inline-block;
}


.switch{
    position: relative;
    width: 48px;
    height: 26px;
    float: right;
}
.switch input{ 
    opacity: 0;
    width: 0;
    height: 0;
}
.slider{
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}
.slider:before{
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
input:checked + .slider{
    background-color: #00b894;
}
input:focus + .slider{
    box-shadow: 0 0 1px black;
}
input:checked + .slider:before{
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}
.slider.round{
    border-radius: 34px;
}
.slider.round:before{
    border-radius: 50%;
}

#titreh1{
    font-size: 4vw;
    color: white;
}

/*Bouton configurateur du vélo*/

#boutonVelo{
    display: grid;
    grid-template-columns: 33%,33%,33%;
}
.ConfigVelo{
    margin-top: 10%;
    grid-column:  2;
    background-color:#3f815b;
    width: 20vw;
    height: 5vh;
    align-self: center;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid white;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 1px 5px 15px black;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}


.ConfigVelo:hover, .ConfigVelo:focus {
    background-color: #4D7C93;
    color: white;
  }

  #texteh3{
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
  }

  #textModif{
    width: 75%;
    margin-left: auto;
    margin-right: auto;
  }