#overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.overlay-content {
  position: relative;
  background-color: #0d3240;
  border-radius: 24px;
  padding: 0;
  color: #fefefe;
  width: 460px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.overlay-header {
  height: 60px;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 20px;
  font-weight: bold;
  text-transform: capitalize;
}

.overlay-image-container {
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#overlay-img {
  width: 250px;
  padding: 16px;
}

.overlay-body-header {
  text-align: center;
  padding: 10px 0;
  font-weight: bold;
  font-size: 18px;
  color: #fefefe;
  border-top: 2px solid #0f4a71;
  border-bottom: 2px solid #0f4a71;
}

.overlay-body-header:hover {
  background-color: #163247;
  color: #cce7ff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.type-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.3);
}

.overlay-type-info {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}

.overlay-type-icon {
  width: 40px;
  height: auto;
}

.overlay-body {
  height: 230px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 10px;
}

.stats {
  font-size: 14px;
  color: #ffffff;
  margin-top: 16px;
}

.stats table {
  width: 100%;
  border-collapse: collapse;
}

.stats td {
  padding: 8px;
  vertical-align: middle;
}

.stats td:first-child {
  font-weight: bold;
  color: #d1e8ff;
  width: 40%;
}

.stats td:last-child {
  text-align: right;
  color: #fefefe;
}