body {
  background-color: #f5f5f5;
  font-family: "Segoe UI", sans-serif;
}

h2 {
  color: #008080;
  font-size: 28px;
  text-align: center;
  margin: 20px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  animation: fadeSlide 1.5s ease-in-out;
  opacity: 0;
  transform: translateY(-100%);
  animation-fill-mode: forwards;
}

th {
  background-color: #008080;
  color: #fff;
  font-weight: bold;
  padding: 16px;
  text-align: left;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

td {
  border: none;
  padding: 16px;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f5f5f5;
}

td:hover {
  background-color: #e0e3f0;
  cursor: pointer;
  animation: pulse 1s ease-in-out infinite;
}

td.active, 
#clicked-cell,
#copy-text-1a {
  background-color: #c2e2e2 !important;
  cursor: pointer;
}

td.active {
  box-shadow: none;
}

@media only screen and (max-width: 768px) {
  table {
    max-width: 95%;
  }
  
  th, td {
    font-size: 16px;
    padding: 12px;
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
