@import url('https://fonts.cdnfonts.com/css/games');

:root {
  --taille_case: 500/taille;
}

* {
  box-sizing: border-box;
}

.activepage{
  background-color: white;
  color: black;
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: Comic Sans MS, Comic Sans, cursive, fantasy;
  font-weight: bold;
  text-align: center;
  color: white;
  background-size: cover;
  background-image: url('images/accueil.jpg');
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

h1 {
  margin: 0;
  font-family: 'Games', sans-serif;
  font-weight: normal;
  font-size: 5rem;
  color: white;
  background-color: rgb(78, 76, 133);
}

h2 {
  font-family: 'Games', sans-serif;
  font-weight: normal;
}

p {
  margin: 0;
  font-weight: normal;
}

#regles {
  padding: 0px 70px;
}

#Startbutton {
  width: 20%;
  color: #fff;
  border-radius: 5px;
  padding: 10px 25px;
  font-family: Comic Sans MS, Comic Sans, cursive, fantasy;
  font-weight: bold;
  position: relative;
  display: inline-block;
  background: rgb(132, 129, 233);
  background: linear-gradient(0deg, rgb(132, 129, 233) 0%, rgb(78, 76, 133) 100%);
  border: none;
}

#Startbutton:before {
  height: 0%;
  width: 2px;
}

#Startbutton:hover {
  box-shadow: 4px 4px 4px 0 rgba(255, 255, 255, .5),
    4px 4px 4px 0 rgba(116, 125, 136, .5),
    inset 4px 4px 4px 0 rgba(255, 255, 255, .2),
    inset 4px 4px 4px 0 rgba(0, 0, 0, .4);
}

table {
  border-spacing: 0;
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
  width: 6em;
}

#tableCache {
  border-spacing: 0;
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
  width: 6em;
}

#buttonhide {
  width: 50px;
  height: 50px;
  background: rgb(3, 165, 76);
  cursor: pointer;
}

#buttondraps {
  width: 50px;
  height: 50px;
  background-image: url('images/drapeau.png');
  background-size: cover;
  background-position: center center;
  cursor: pointer;
}

#buttonbombe {
  width: 50px;
  height: 50px;
  font-size: 150%;
}

#buttonchiffre {
  background: rgb(5, 116, 207);
  width: 50px;
  height: 50px;
  font-size: 150%;
}

#buttonrien {
  width: 50px;
  height: 50px;
  background: grey;
}

nav {
  width: 100%;
  margin: 0px 0px 10px 0px;
  background-color: rgb(132, 129, 233);
  position: sticky;
  top: 0px;
  border-bottom: 1px solid black;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav li {
  margin: 0 0px;
  float: left;
  width: 25%;
  text-align: center;
  /*Centre le texte dans les éléments de menu*/
}

nav a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

nav a:hover {
  background-color: #ddd;
  color: black;
}