/* Estilos básicos - Go Live Server */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0px;
  line-height: 1.6;
  min-height: 100vh;
}

.container {}

#text {
  position: fixed;
  width: fit-content;
  bottom: 20%;
  left: 0;
  pointer-events: none;
}

h1 {
  color: #333;
  border-bottom: 2px solid #007acc;
  padding-bottom: 10px;
}

.cell {
  width: 50px;
  height: 50px;
  border: 1px solid black;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
}

.cell span {
  width: 30px;
  height: 30px;
  text-align: center;
}

.switchbox {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.switches {
  display: flex;
  width: 100%;
  padding: 20px;
  justify-content: space-evenly;
  align-items: center;
}

.cell:hover {
  box-shadow: inset 0 0 5px lightblue;
}

.reveal {
  background-color: #555;
}

.hit {
  background-color: greenyellow;
}

.miss {
  background-color: tomato;
}

button {
  font-size: 1.5rem !important;
}

.On {
  display: block !important;
}

table {
  border-collapse: collapse;
  border: 1px solid #ccc;
  cursor: crosshair;
}

.overlay {
  position: fixed;
  padding: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: fit-content;
  width: fit-content;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}

/* Hide the default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 25px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

/* ON (checked) */
.switch input:checked+.slider {
  background-color: #af4c4c;
}

.switch input:checked+.slider:before {
  transform: translateX(25px);
}