/* styles.css */

body {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #faf9f6;
    color: #333;
    margin: 0;
    padding: 0;
  }
  
  .hero {
    background: url('images/hero.png') center/cover no-repeat;
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
  }
  
  .hero::after {
    content: "";
    background: rgba(0,0,0,0.4);
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    margin: 0 auto;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1.2rem;
    line-height: 1.5;
  }
  
  .rates {
    margin-top: 1.5rem;
    font-weight: bold;
    font-size: 1.1rem;
  }

  .selection-container { 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 1rem;
  }
  
  .selection-preview-container {
    max-width: 1000px;
    margin: 2rem auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  #selectionPreview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
  }
  
  .slot {
    width: 100px;
    height: 150px;
    background: #f0e9dd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 2px solid #e2d6c7;
  }
  
  .slot img {
    width: 100%;
    height: auto;
  }

  img {
    max-width: 70%;
}
  
  form {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding-bottom: 2rem;
  }
  
  .error {
    color: #c0392b;
    font-weight: bold;
    margin-bottom: 15px;
    display: none;
    text-align: center;
  }
  
  .category {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 40px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  
  .category h3 {
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 0.5rem;
  }
  
  .category-description {
    font-size: 1rem;
    margin: 1rem 0 1.5rem;
    line-height: 1.4;
    color: #555;
  }
  
  .machine-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* space between items */
  }
  
  .machine-item {
    flex: 1 1 calc(50% - 20px); /* 2 items per row, accounting for gap */
    box-sizing: border-box;
  }
  
  
  .machine-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    background: #f8f7f5;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
  }
  
  .machine-item label:hover {
    background: #ece9e6;
  }
  
  .machine-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
  }
  
  .machine-item input[type="checkbox"]:focus {
    outline: 2px solid #2980b9;
  }
  
  .machine-tooltip {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 10px;
    width: 200px;
    z-index: 10;
  }
  
  .machine-tooltip img {
    width: 100%;
    height: auto;
    border-radius: 4px;
  }
  
  .machine-tooltip p {
    margin: 10px 0 0;
    font-size: 0.9rem;
  }
  
  .machine-label:hover .machine-tooltip {
    display: block;
  }

  .machine-small-image {
    width: 50px;
    height: auto;
    border-radius: 4px;
    margin-right: 5px;
    vertical-align: middle;
  }
  
  
  button {
    display: inline-block;
    background: #b85c38;
    color: #fff;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 2rem auto 0;
    display: block;
  }
  
  button:hover {
    background: #9f4e2d;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .machine-item {
      width: 100%;
    }
  
    .category h3 {
      font-size: 1.5rem;
    }
  
    .hero h1 {
      font-size: 2rem;
    }
  }
  

  /* styles.css */

body {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #faf9f6;
    color: #333;
    margin: 0;
    padding: 0;
  }
  
  .hero {
    background: url('images/hero.png') center/cover no-repeat;
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
  }
  .hero::after {
    content: "";
    background: rgba(0,0,0,0.4);
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    z-index: 1;
  }
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
  }
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  .hero p {
    font-size: 1.2rem;
    line-height: 1.5;
  }
  .rates {
    margin-top: 1.5rem;
    font-weight: bold;
    font-size: 1.1rem;
  }
  
  .selection-preview-container {
    max-width: 1000px;
    margin: 2rem auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  #selectionPreview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
  }
  
  .slot {
    width: 100px;
    height: 150px;
    background: #f0e9dd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 2px solid #e2d6c7;
  }
  
  .slot img {
    width: 100%;
    height: auto;
  }
  
  
  .error {
    color: #c0392b;
    font-weight: bold;
    margin-bottom: 15px;
    display: none;
    text-align: center;
  }
  
  /* Two-column layout for categories */
  .categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 2rem;
  }
  
  .column {
    flex: 1;
    min-width: 300px;
  }
  
  .category {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 40px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  
  .category h3 {
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 0.5rem;
  }
  
  .category-description {
    font-size: 1rem;
    margin: 1rem 0 1.5rem;
    line-height: 1.4;
    color: #555;
  }

  .machine-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    background: #f8f7f5;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
  }
  
  .machine-item label:hover {
    background: #ece9e6;
  }
  
  .machine-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
  }
  
  .machine-item input[type="checkbox"]:focus {
    outline: 2px solid #2980b9;
  }

  .machine-item {
    /* set width to optimally 50% of the container */
    flex: 1 1 calc(50% - 20px);
    max-width: 70%;
  }
  
  .machine-tooltip img {
    width: 100%;
    height: auto;
    border-radius: 4px;
  }
  
  .main-content-wrapper {
    display: flex;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    gap: 20px;
    justify-content: center;

  }
  
  .about-sidebar {
    flex: 0 0 250px;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    align-self: start;
  }
  
  .about-sidebar {
    position: fixed;
    top: 400px;
    left: 100px;
    width: 250px;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.546);
    z-index: 999; /* ensure it stays above other elements if needed */
  }
  
  /* When screen width is less than 1000px, revert to normal flow and place sidebar at the bottom */
  @media (max-width: 1200px) {
    .main-content-wrapper {
      flex-direction: column;
      align-items: center;
    }
  
    .about-sidebar {
      position: static; /* remove fixed positioning */
      width: 80%;
      margin-top: 2rem;
      left: auto;
      top: auto;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
  }
  
  
  .map-container {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
  }

  .hidden {
    display: none;
  }
  