@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;800&display=swap");
* {
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #262626;
  background-color: #6ddaf9;
  background-image: url("/assets/img/fond-top.jpg"), url("/assets/img/fond-bottom.jpg");
  background-position: center 100px, center bottom;
  background-repeat: no-repeat, no-repeat;
  padding: 0px 0 50px;
  margin: 0;
  position: relative;
}

body #header {
  background: #262626;
  color: #fff;
  padding: 20px;
}

body h1 {
  text-transform: uppercase;
  margin: 0;
  font-size: 25px;
}

body .container {
  margin: 30px 20px 100px;
  padding: 15px 15px 50px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-content: center;
  flex-wrap: wrap;
  align-items: center;
  border-radius: 5px;
}

body .container form {
  width: 100%;
}

body::after {
  content: " ";
  background: url("/assets/img/coffre.png") center center no-repeat;
  width: 100%;
  height: 200px;
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  background-size: contain;
}

img {
  max-width: 100%;
}

.image {
  width: 75%;
  margin: 15px 0px;
}

.bonneRep,
.mauvaiseRep {
  padding: 5px;
  color: #fff;
  width: 100%;
  text-align: center;
}

.bonneRep {
  background: #43cc29;
}

.mauvaiseRep {
  background: #e52527;
}

input {
  width: 100%;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: bold;
  padding: 10px 15px;
  border: 0;
  margin-bottom: 20px;
}

input[type="text"] {
  background: #fcc75d;
}

input[type="text"].rep_OK {
  background: #43cc29;
  color: #fff;
}

input[type="text"].rep_PASOK {
  background: #e52527;
  color: #fff;
}

input[type="submit"] {
  background: #6ddaf9;
  color: #fff;
}

.jeux {
  display: flex;
  max-width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: space-between;
  align-items: center;
  justify-content: space-between;
}

.jeux#memory .carte {
  width: 23%;
  margin-bottom: 10px;
}

.jeux#memory .carte img {
  border: 2px solid;
}

.jeux#memory .carte .verso {
  display: none;
}

.jeux#memory .carte.tourne .recto, .jeux#memory .carte.trouve .recto {
  display: none;
}

.jeux#memory .carte.tourne .verso, .jeux#memory .carte.trouve .verso {
  display: block;
}

.jeux#memory .carte.trouve img {
  border-color: #43cc29;
}

.jeux#memory .carte.faux img {
  border-color: #e52527;
}

.jeux#calculs p, .jeux#quiz p {
  font-weight: bold;
}

.jeux#calculs .row, .jeux#quiz .row {
  display: inline-block;
  width: 100%;
}

.jeux#calculs .row input, .jeux#quiz .row input {
  float: left;
  width: auto;
  margin-right: 25px;
}

.jeux#calculs.showRez .cGood .good, .jeux#quiz.showRez .cGood .good {
  background: #43cc29;
  color: #fff;
}

.jeux#mastermind {
  align-content: flex-start;
  align-items: flex-end;
  justify-content: center;
}

#puzzle #pile,
#puzzle #puzzle-containment {
  width: 100%;
  height: 300px;
  display: block;
  float: left;
}

#formAvis {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

#formAvis .row {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#formAvis textarea {
  width: 100%;
  border-radius: 5px;
  font-weight: bold;
  padding: 10px 15px;
  border: 0;
  margin-bottom: 20px;
  background: #fcc75d;
  height: 100px;
  margin-top: 15px;
}

#formAvis #rating {
  display: inline-block;
  position: relative;
  height: 50px;
  line-height: 50px;
  font-size: 50px;
}

#formAvis #rating label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  cursor: pointer;
}

#formAvis #rating label:last-child {
  position: static;
}

#formAvis #rating label:nth-child(1) {
  z-index: 5;
}

#formAvis #rating label:nth-child(2) {
  z-index: 4;
}

#formAvis #rating label:nth-child(3) {
  z-index: 3;
}

#formAvis #rating label:nth-child(4) {
  z-index: 2;
}

#formAvis #rating label:nth-child(5) {
  z-index: 1;
}

#formAvis #rating label input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

#formAvis #rating label .icon {
  float: left;
  color: transparent;
}

#formAvis #rating label:last-child .icon {
  color: #262626;
}

#formAvis #rating:not(:hover) label input:checked ~ .icon, #formAvis #rating:hover label:hover input ~ .icon {
  color: #fcc75d;
}

#formAvis #rating label input:focus:not(:checked) ~ .icon:last-child {
  color: #262626;
}

footer {
  display: none;
  margin-top: 25px;
  padding: 15px 0;
}
