/* style.css */
body {
  font-family: sans-serif;
  color:crimson;
  background: #000000;
  margin: 0;
  padding: 2rem;
}

h1 {
  margin-bottom: 1rem;
}

.controls {
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  aspect-ratio: 1 / 1;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
}

.card .text {
  flex: 2;
  padding: 1rem;
}

.card img {
  width: 40%;
  object-fit: cover;
}

.stars {
  color: gold;
  font-size: 1.1rem;
  margin: 0.3rem 0;
}

.services {
  font-size: 0.9rem;
  color: #333;
  margin-top: 0.3rem;
}

/* Overlay */
.overlay-wrapper {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: flex-end;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay-wrapper.active {
  opacity: 1;
  pointer-events: all;
}

.entry-overlay {
  background: white;
  width: 100%;
  max-width: 420px;
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  position: relative;
  overflow-y: auto;
  box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
}

.overlay-wrapper.active .entry-overlay {
  transform: translateX(0);
}

.entry-overlay .overlay-content {
  padding: 2rem;
}

.entry-overlay img {
  width: 100%;
  margin: 1rem 0;
  border-radius: 4px;
}

#overlay-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}

/* Submit form */
.submit-form {
  background: white;
  padding: 1.5rem;
  margin-top: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.submit-form label {
  font-weight: bold;
}

.submit-form button {
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
