body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 10px;
  box-sizing: border-box;
}

.container {
  max-width: 800px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow-x: hidden;
}

h1, h2 {
  text-align: center;
}


.table-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.table {
  width: 140px;
  height: 140px;
  border: 1px solid #ddd;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.table:hover {
  transform: scale(1.05);
}

.table img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.table-name {
  position: absolute;
  bottom: 38px;
  left: 0;
  right: 0;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 4px 0;
  border-radius: 5px;
  font-weight: bold;
  font-size: 14px;
}

.button {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background-color: #28a745;
  color: white;
  border: none;
  padding: 5px 8px;
  cursor: pointer;
  border-radius: 7px;
  font-size: 13px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #218838;
}


@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .table {
    width: 120px;
    height: 120px;
  }

  .table-name {
    font-size: 13px;
    bottom: 32px;
  }

  .button {
    padding: 4px 6px;
    font-size: 12px;
  }
}


@media (max-width: 480px) {
  body {
    padding: 5px;
  }

  .container {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
  }

  h1, h2 {
    font-size: 18px;
  }

  .table-list {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .table {
    width: 85%;
    max-width: 300px;
    height: 160px;
  }

  .table-name {
    bottom: 45px;
    font-size: 15px;
  }

  .button {
    bottom: 8px;
    left: 8px;
    font-size: 13px;
    padding: 6px 10px;
  }
}

