* {
  box-sizing: border-box;
}

body {
  touch-action: none;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  color: #333;
}

a.link,
a.link:hover,
a.link:visited {
  color: #000000;
  text-decoration: none;
}

.viewer-container {
  position: absolute;
  inset: 0;
}

.viewer {
  width: 100%;
  height: 100%;
  background-color: #cccccc;
}

/* Phones */
@media only screen and (max-width: 767px) {
  #qrcode {
    display: none;
  }
}

/* iPad */
@media only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2) {
  #qrcode {
    display: none;
  }
}

/* Wine Cellar List Styles */
.container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.title {
  font-size: 3rem;
  font-weight: 700;
  color: #2d3748;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.wine-cellar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 800px;
}

.wine-cellar-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  transform: translateY(0);
}

.wine-cellar-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wine-cellar-card:hover .image-container img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102, 126, 234, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wine-cellar-card:hover .overlay {
  opacity: 1;
}

.view-text {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-content {
  padding: 2rem;
  text-align: center;
}

.card-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #2d3748;
}

.card-content p {
  font-size: 1rem;
  color: #718096;
  margin: 0;
  font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .wine-cellar-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .wine-cellar-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .image-container {
    height: 200px;
  }

  .card-content {
    padding: 1.5rem;
  }
}
