html {
  height: 100%;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

#grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  /*grid-template-rows: 1fr 1fr 1fr 1fr;*/
  grid-template-rows: min-content 1fr;
  grid-gap: 10px;
}

.button {
  background-color: antiquewhite;
  border: 0;
  border-radius: 5px;
  height: 50px;
  font-size: 16px;
  font-weight:550;
}

#selected {
  background-color: gray;
  color:white;
  border: 1px white solid;
}

#correct div {
  height: 50px;
  margin-bottom: 10px;
  width:100%;
  font-size: 16px;
  border-radius: 5px;
  text-align: center;
  background-color: green;
  color:white;
  padding-top: 2px;
  padding-bottom:0;
  line-height: 0.5px;
}

.submit {
  background-color: whitesmoke;
  color:black;
  border: 1px black solid;
  width:100%;
  height:50px;
  font-size: 16px;
  border-radius: 5px;
  text-align: center;
  margin-top: 10px
}

nav {
  display: flex;
  gap:10px;
}
nav a {
  padding-top: 25px;
  padding-left:20px;
}

#mistakes {
  line-height: 10px;
  color:darkred
}

#message {
  transition: 0.1s;
  visibility: hidden;
  text-align: center;
  color:white;
  background-color: rgba(0,0,0,0.9);
  /* Center the element in middle of screen */ 
  width:100%;
  position: absolute;
  padding:20px;
  top: 30%;
  left:0
}

.game_option {
  background-color: wheat;
  width:fit-content;
  margin:5px;
  padding:8px;
  border-radius: 10px;
  border:2px solid antiquewhite;
  display:flex;
  gap:10px;
}

#games {
  display:flex;
  flex-direction: row;
  gap:2px;
  flex-wrap: wrap;
}

.game_option p {
  line-height: 0;
  margin-top: 10px;
}

.sort {
  background-color: #c4bb7e;
  border:1px solid #000000;
  padding:8px;
  margin:5px;
  border-radius:10px;
  color:black;
}

a {
  color:blue;
  font-weight: 600;
}

a:hover {
  color: #fe0101;
  background-color: rgb(255, 184, 184,0.5);
}

#puzzle_name {
  font-weight: 560;
  font-size:16px;
}

#newest {
  background-color: whitesmoke;
  border:2px solid gray;
  border-radius: 5px;
  padding: 10px;
  margin:5px;
}
#newest p {
  line-height: 0;
  font-weight: 550;
}
#difficulty {
  display:block
}
[data-rating='1']{
  background-color: #57cb57;
}
[data-rating='2']{
  background-color: #fffa61;
}
[data-rating='3']{
  background-color: #ffa947;
}
[data-rating='4']{
  background-color: #ff6666;
}
[data-rating='5']{
  background-color: #ff75f4;
}