* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: url("../img/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.section-game {
  width: 100vw;
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.stats {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: #138726;
  width: 100%;

  font-size: 2rem;
  color: #fff;
}

.stats > * {
  padding: 1rem;
}

.time {
  width: 30%;
}

.clock {
  cursor: pointer;
}

.time,
.flags {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 0.5rem;
}

.stats img {
  width: 3.5rem;
}

.row {
  display: flex;
}

.square {
  width: 4rem;
  height: 4rem;
  font-size: 2.8rem;
  background-color: #51cf66;
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;
}

.row:nth-child(odd) .square:nth-child(odd),
.row:nth-child(even) .square:nth-child(even) {
  background-color: #69db7c;
}

.row:hover .square:hover {
  background-color: #b2f2bb;
}

.square-content {
  width: 100%;
  height: 100%;
  background-color: #ffd8a8;

  display: flex;
  justify-content: center;
  align-items: center;
  cursor: default;
}

.row:nth-child(odd) .square:nth-child(odd) .square-content,
.row:nth-child(even) .square:nth-child(even) .square-content {
  background-color: #ffe8cc;
}

#game-board .bomb {
  background-color: red;
}

.game-over,
.win {
  position: absolute;

  background-color: #d0ebff;
  padding: 3rem;
  border: 1.5px solid #333;
  border-radius: 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-over h2,
.win h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.win p {
  font-size: 2rem;
  margin-bottom: 4rem;
}

.game-over button,
.win button {
  font-size: 2rem;
  background-color: #7fb6f8;
  border: none;
  border-radius: 10px;
  padding: 1rem 2rem;
  border: 1px solid #33333300;
  cursor: pointer;
}

.win button:hover,
.game-over button:hover {
  border: 1px solid #333;
}

.hidden {
  display: none;
}

.disable-clicks {
  pointer-events: none;
}

.rules:link,
.rules:visited {
  position: absolute;
  top: 5rem;
  left: 5rem;

  font-size: 3rem;
  color: #333;
  text-decoration: none;
  background-color: #ffd8a8;
  padding: 0.5rem 1rem;
  border: 1px solid #333;
  border-radius: 5px;
  transition: all 0.3s;
}

.rules:hover,
.rules:active {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

#diff {
  font-size: 1.8rem;
}
#diff option {
  font-size: 1.8rem;
}
