body{
  text-align: center;
  background-color: rgb(181, 183, 178);
}

.container{
  height: 270px;
  width: 350px;
  margin-left: 590px;
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
}

div div{
  box-sizing: border-box;
  height: 122px;
  width: 160px;
  border: 6px solid black;
  border-radius: 25px;
  margin: 5px;
  margin-left: 9px;
  cursor: pointer;
}

h1{
  font-size: 100px;
}

h3{
  font-size: 30px;
}

.box1{
  background-color: rgb(0, 132, 22);
}

.box2{
  background-color: rgb(255, 56, 56);
}

.box3{
  background-color: rgb(255, 243, 21);
}

.box4{
  background-color: rgb(21, 87, 255);
}

.flash {
  background-color: white;
}

.blink-red {
  animation: blinkRed 0.5s alternate infinite;
}

@keyframes blinkRed {
  from { background-color: red; }
  to { background-color: white; }
}

.play,.restart{
  height: 40px;
  width: 70px;
  border: 2px solid black;
  border-radius: 12px;
  background-color: rgb(45, 191, 4);
  box-shadow: 2px 2px 5px black;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.restart{
  width: 90px;
}

.play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(27, 9, 9, 0.6);
}

.restart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(27, 9, 9, 0.6);
}

img{
  height: 120px;
  width: 120px;
  border-radius: 50%;
  position: absolute;
  top: 190px;
  left: 70px;
  border: 2px solid black;
  box-shadow: 2px 2px 15px rgb(100, 103, 100);
  z-index: 1;
  transform: none;
  animation: move 0.8s ease infinite alternate-reverse;
}

@keyframes move{
  from{
    transform: none;
  }
  to{
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgb(41, 41, 40);
  }
}

.rules{
  height: 350px;
  width: 260px;
  border: 2px solid black;
  text-align: left;
  position: absolute;
  bottom: 100px;
  left: 150px;
  padding: 20px;
  border-radius: 0 0 55px;
  background-color: cornsilk;
  z-index: 0;
  box-shadow: 0 3px 10px black;
}

.guide{
  text-align: center;
  line-height: 10px;
  font-size: 18px;
  font-weight: 600;
  border: 2px solid black;
  height: 50px;
  width: 180px;
  position: absolute;
  top: 40px;
  left: 40px;
  border-radius: 30px;
  background-color: aqua;
  box-shadow: 0 2px 5px black;
  transition: all 0.3s ease;
  cursor: pointer;
}

.guide:hover{
  transform: scale(1.03);
  box-shadow: 0 2px 15px black;
}

.icon{
  text-align: center;
  line-height: 25px;
  height: 35px;
  width: 35px;
  border: 1px solid black;
  border-radius: 50%;
  position: absolute;
  left: 278px;
  bottom: 370px;
  background-color: rgb(220, 45, 45);
  cursor: pointer;
  transition: all 0.3s ease;
}

.icon:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 16px rgba(27, 9, 9, 0.7);
}
