.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

h1{
  font-size: 28px;
  margin-bottom: 5px;
}

.container p {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Border around minigame */
.minigame-border {
  border: 2px solid #9d86bd;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  background-color: #fcfcfc;
  box-shadow: 0 3px 10px rgba(93, 71, 119, 0.15);
  position: relative;
}

/* Store layout for the towel game */
.store {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  position: relative;
}

.product {
  width: 200px;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background-color: white;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
  height: 180px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,80 C70,95 30,95 0,80 Z" stroke="none" fill-opacity="0.2" fill="white"/></svg>');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.7;
}

.product-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path d="M0,0 L10,10 M10,0 L0,10" stroke="white" stroke-width="0.5" stroke-opacity="0.1"/></svg>');
  background-repeat: repeat;
}

.product-name {
  padding: 12px;
  text-align: center;
  font-weight: 500;
  border-top: 1px solid #f0f0f0;
  background-color: #ffffff;
}

.product-price {
  margin-top: auto;
  padding: 8px;
  text-align: center;
  background-color: #f9f9f9;
  color: #666;
  font-size: 0.9em;
}

.red-towel .product-image {
  background-color: #e74c3c;
}

.green-towel .product-image {
  background-color: #2ecc71;
}

.blue-towel .product-image {
  background-color: #3498db;
}

.brown-towel .product-image {
  background-color: #8b4513;
}

/* Result message */
.result-message {
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
}

/* Tunnel vision canvas */
canvas#tunnelVisionCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
}

/* Popup styles */
.popup-tunnelvision {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 3px solid #333;
  border-radius: 10px;
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  max-width: 320px;
  width: 80%;
  text-align: center;
  font-family: sans-serif;
}

.popup-tunnelvision h3 {
  margin-top: 0;
  font-size: 1.5em;
}

.popup-tunnelvision.success h3 {
  color: green;
}

.popup-tunnelvision.error h3 {
  color: red;
}

.popup-tunnelvision button.close-popup {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #5d4777;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-tunnelvision button.close-popup:hover {
  background-color: #4a3661;
}

.popup-tunnelvision button.close-popup:focus {
  outline: 2px solid #0078d7;
}

/* Toggle buttons */
.toggles {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.toggle-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border-radius: 5px;
  background-color: #f5f5f5;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-button:hover {
  background-color: #e0e0e0;
  border-color: #ccc;
}

.toggle-button.active {
  background-color: #5d4777;
  color: white;
  border-color: #4a3661;
}

.color-box {
  width: 20px;
  height: 20px;
  border: 1px solid #888;
  border-radius: 3px;
}

.color-box.tunnel-vision {
  background-color: #333;
}

/* Task instruction */
.task-instruction {
  text-align: center;
  font-weight: bold;
  margin: 20px 0;
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
}

/* Opdracht button */
.opdracht-button {
  display: block;
  margin: 30px auto;
  padding: 12px 30px;
  background: #00a651;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.opdracht-button:hover {
  background: #008c45;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.opdracht-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Legends */
.legends {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Info-section styling copied from station5.css for consistency */
.info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-card {
  overflow: hidden;
}

.info-header {
  background-color: #6b4b7d;
  color: white;
  padding: 15px;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-header h3 {
  margin: 0;
  font-size: 18px;
}

.arrow {
  font-size: 24px;
  width: 45px !important;
  height: 45px !important;
  min-width: 45px !important;
  min-height: 45px !important;
  max-width: 45px !important;
  max-height: 45px !important;
  flex-shrink: 0;
  flex-grow: 0;
  display: inline-block;
  transition: transform 0.3s;
}

.expanded .arrow {
  font-size: 24px;
  transform: rotate(180deg);
}

.info-content {
  background-color: #e9e9e9;
  padding: 15px;
  border-radius: 0 0 10px 10px;
}

.hidden {
  display: none;
}
