body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 160vh;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.container {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1280px;
  min-height: 150vh;
  display: flex;
  flex-direction: column;
}

h1 {
  margin: 0;
  font-size: 2.5em;
}

p {
  margin: 20px 0 20px;
  font-size: 1.2em;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.button {
  background-color: #007BFF;
  color: white;
  height: 160px;
  margin: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.2em;
  width: calc(33.333% - 20px);
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  background-clip: padding-box;
  border: 4px solid black;
  display: flex;
  justify-content: center;
  align-items: center;
}

.button:hover {
  background-color: #0056b3;
}

.button:nth-child(3n + 1) {
  clear: left;
}

.button:nth-child(1) {
  background-image: url('result.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  background-color: #007BFF;
  color: white;
  height: 160px;
  margin: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 2em;
  width: calc(33.333% - 20px);
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  text-align: right;
  padding-right: 20px;
  border: 4px solid black;
}

.button:nth-child(2) {
  background-image: url('todoscfinal_1.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 20%;
  background-color: #007BFF;
  color: white;
  height: 160px;
  margin: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 2em;
  width: calc(33.333% - 20px);
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid black;
}

.button:nth-child(3) {
  background-image: url('wordcounter.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 20%;
  background-color: #007BFF;
  color: white;
  height: 160px;
  margin: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.5em;
  width: calc(33.333% - 20px);
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid black;
}

.button:nth-child(4) {
  background-image: url('gradient.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 20%;
  background-color: #007BFF;
  color: white;
  height: 160px;
  margin: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 2.1em;
  width: calc(33.333% - 20px);
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid black;
  background: linear-gradient(to right, #ff7e5f, #feb47b);
}

.button:nth-child(5) {
  background-image: url('idepic.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 20%;
  background-color: #007BFF;
  color: white;
  height: 160px;
  margin: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.5em;
  width: calc(33.333% - 20px);
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid black;
}

.button:nth-child(6) {
  background-image: url('connect.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 50%;
  background-color: #007BFF;
  color: white;
  height: 160px;
  margin: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.5em;
  width: calc(33.333% - 20px);
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid black;
}

.button:nth-child(7) {
  background-image: url('tabletennis.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 20%;
  background-color: #007BFF;
  color: white;
  height: 160px;
  margin: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.5em;
  width: calc(33.333% - 20px);
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid black;
}

.button:nth-child(8) {
  background-image: url('tictaktoe.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 40%;
  background-color: #007BFF;
  color: white;
  height: 160px;
  margin: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.5em;
  width: calc(33.333% - 20px);
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid black;
}

.button:nth-child(1):hover {
  background-color: #0056b3;
}

.counter {
  margin-top: 20px;
  text-align: center;
}
