
* { box-sizing: border-box; 
    font-family: 'Avenir Book','sans-serif'; 
    margin: 0;
    padding: 0;
}


html { 
    overflow-y: scroll; /* flickity: prevent vertical scroll bar glitch */
    text-align: center;
}

header {
    background-color:#0D4459;
    padding: 20px;
    color: white;
}

main {
    margin: 10px;
}

footer {
  font-size: 0.8rem;
  margin: 200px 0px 0px 0px;
  background-color: lightgray;
  padding: 5px 15px 5px 15px;
 
}

footer p {
  line-height: 1.2rem;
}

.container2 { /* pour le footer*/
  display: flex;
  justify-content: space-between;
}


h1 {
  margin: 0px 0px 0px 190px;
}

p {
    line-height: 1.3rem;
    padding: 5px;
}


a {
  text-decoration: none;
  font-weight: bold;
  color: #0D4459;
}

a:hover {
  color: rgb(108, 161, 184);
}

#consigne1:hover, #consigne2:hover, #consigne3:hover  {
  cursor: pointer;
  transform: scale(1.2);
}

#reloadButton {
  border-radius: 10px;
  background-color: #6594A8;
  margin: 20px 0px 0px 20px;
  color: white;
}

#reloadButton:hover {
  background-color: rgb(147, 195, 216);
  color: black;
}

.left {
  text-align: left;
}

.right {
  text-align: right;
  margin: 8px 0px 0px 0px;
}

.consigne {
  padding: 30px;
}

.fun {
  font-weight: bold; 
  font-size: 1.1rem;
  padding: 40px 0px 0px 0px;
}
/* /////////////// TIMER /////////////// */

button {
  border-radius: 10px 10px 10px 0px;
  padding: 5px;
  margin: 2px;
}

button:hover {
  color: black;
  background-color: lightgray;
  cursor: pointer;
}

.chrono 
{ margin: 20px 0px 0px 0px;}


.startButton {
  background-color: rgb(149, 150, 151);
}

.pauseButton {
  background-color: rgb(149, 150, 151);
}

.resetButton {
  background-color: rgb(3, 3, 3);
  color: white;
}

.border {
  border: 1px black solid;
}


/* /////////////// RANDOM DICE /////////////// */
#randomDice {
  padding: 10px;
  border-radius: 5px;
  background-color: #6594A8;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.1rem;
  width: 105px;
  height: 105px;
  text-align: center;
  margin: 30px 0px 0px 0px;
  box-shadow: 4px -1px 9px 3px rgba(0,0,0,0.55); 
}

#randomDice:hover {
  background-color: rgb(147, 195, 216);
  color: black;

}


/* /////////////// GRID /////////////// */

.dice {grid-area: dice;}
.chrono {grid-area: chrono;}
.carousel {grid-area: carousel;}
.reload {grid-area: reload;}


.grid-container {
  display: grid;
  grid-gap: 10px;
  padding: 0px 20px 0px 20px;
  grid-template-areas:

    'carousel carousel carousel carousel carousel carousel carousel carousel carousel carousel carousel dice '
    'carousel carousel carousel carousel carousel carousel carousel carousel carousel carousel carousel chrono'
    'reload reload reload reload reload reload reload reload reload reload reload chrono ';

  margin: 20px;
 
}



/* /////////////// FLICKITY IMAGES /////////////// */

.carousel {
    background:black;
    border-radius: 20px;
    margin: 10px;
    width: 100%;
    border: 5px solid rgb(7, 7, 7);
    justify-content: center;
  }

.carousel-cell {
    width: 100%;
    height: 250px;
    margin-right: 10px;



  /* center images in cells with flexbox */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .carousel.is-fullscreen .carousel-cell {
    height: 100%;
  }
  
  .carousel-cell-image {
    display: block;
    max-height: 100%;
  }
  
  .carousel.is-fullscreen .carousel-cell-image {
    max-width: 100%;
  }
    


/* ARROW BUTTON */
/* no circle */
  .flickity-button {
    background: transparent;
  }
  /* big previous & next buttons */
  .flickity-prev-next-button {
    width: 40px;
    height: 40px;
  }
  /* icon color */
  .flickity-button-icon {
    fill: white;
  }

  /* hide disabled button */
  .flickity-button:disabled {
    display: none;
  }

  /* hover*/
  .flickity-prev-next-button:hover {
    background: grey;
  }

  