.overcontainer{
    margin: 2rem;
    font-size: var(--font-size);
  color: var(--black);
  border-radius: var(--border-radius);
  text-align: center;
}


.overcontent {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
  padding: 2vw;
  font-size: var(--font-size);
  color: var(--black);
  border-radius: var(--border-radius);
  border: var(--border);
  box-shadow: var(--box-shadow);
  
}

.overcontainer h1 {
    color: var(--black);
    font-style: italic;
}

.flexwrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

@keyframes floatIn {
  0% {
      opacity: 0;
      transform: translateY(30px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

.producten {
    margin-top: 2vw;
    margin-right: 1vw;
    width: 400px;
    height: 250px;
    border: var(--border);
    border-radius: var(--border-radius);
    cursor: pointer;
    opacity: 0; /* Start hidden */
    transform: translateY(30px);
    
}


.producten:hover {
    border: 1px solid var(--black);
    box-shadow: var(--box-shadow);
    transform: scale(1.1);
    transition: transform 0.5s;
}

.product-tekst-rood{
  margin-top: 10px;
    font-size: var(--font-size);
    color: var(--black);
    background-color: var(--red);
    border-radius: var(--border-radius);
    padding: 10px;
    opacity: 1; /* Start hidden */
}

.producten-flex{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-product{
    width: 400px;
    height: 250px;
    border-radius: var(--border-radius);
    border: var(--border);
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: var(--black); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    -webkit-animation-name: fadeIn; /* Fade in the background */
    -webkit-animation-duration: 0.4s;
    animation-name: fadeIn;
    animation-duration: 0.4s
  }
  
  /* Modal Content */
  .modal-content {
    position: fixed;
    bottom: 0;
    font-size: var(--font-size);
    background-color: var(--background);
    width: 100%;
    -webkit-animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-name: slideIn;
    animation-duration: 0.4s;
    max-height: 80vh; /* Restrict height to 80% of viewport */
    overflow-y: auto; /* Enable vertical scrollbar if needed */
  }
  
    /* Optional: Style the scrollbar */
  .modal-content::-webkit-scrollbar {
    width: 8px;
  }

  .modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
  }

  .modal-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
  }

 
  
  /* The Close Button */
  .close {
    color: var(--white);
    position: absolute;
    font-size: 28px;
    top: 10px;
    right: 15px;
    font-weight: bold;
    cursor: auto;
    z-index: 1000;
  }
  
  .close:hover,
  .close:focus {
    color: var(--black);
    text-decoration: none;

  }

  .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: var(--white);
    cursor: pointer;
    z-index: 9999;
}

.modal-close:hover {
    color: var(--black);
}
  
  .modal-header {
    position: relative;
    font-style: italic;
    padding: 2px 16px;
    background-color: var(--header-bg);
    color: var(--white);
    text-align: center;
    text-transform: uppercase;
  }
  
  .modal-body {
    padding: 2px 16px;
    text-align: left;
  }
  
  .modal-footer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 2px 16px;
    background-color: var(--header-bg);
    color: var(--white);
  }
  
  /* Add Animation */
  @-webkit-keyframes slideIn {
    from {bottom: -300px; opacity: 0} 
    to {bottom: 0; opacity: 1}
  }
  
  @keyframes slideIn {
    from {bottom: -300px; opacity: 0}
    to {bottom: 0; opacity: 1}
  }
  
  @-webkit-keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
  }
  
  @keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
  }

  /* Button */

  .cta-button {
    background: var(--button-gradient); /* Gradient background */
    color: var(--white); /* White text */
    border: var(--border); /* Remove default border */
    padding: 15px 30px; /* Generous padding for better clickability */
    font-size: var(--font-size); /* Larger font size for emphasis */
    font-weight: bold; /* Bold text */
    border-radius: 30px; /* Pill-shaped button */
    box-shadow: var(--box-shadow), 0 4px 6px rgba(0, 0, 0, 0.1); /* Enhanced shadow */
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
    cursor: pointer; /* Pointer cursor */
    text-transform: uppercase; /* Uppercase text for emphasis */
    letter-spacing: 1px; /* Slight letter spacing */
    position: relative; /* For the pseudo-element */
    overflow: hidden; /* Hide overflow for the pseudo-element */
  }
  
  .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Slight white overlay */
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none; /* Ensure the button remains clickable */
  }
  
  .cta-button:hover {
    background: var(--button-gradient-hover); /* Gradient background on hover */
    transform: translateY(-3px); /* Slight lift effect on hover */
    box-shadow: var(--box-shadow); /* Enhanced shadow on hover */
  }
  
  .cta-button:hover::before {
    opacity: 1; /* Show the overlay on hover */
  }
  
  .cta-button:active {
    transform: translateY(0); /* Remove lift effect on click */
    box-shadow: var(--box-shadow), 0 4px 6px rgba(0, 0, 0, 0.1); /* Reset shadow on click */
  }

  @media screen and (max-width: 768px) {
    .introcontainer {
        font-size: var(--font-size-small);
    }


    .cta-button {
        padding: 12px 24px; /* Slightly reduced padding for tablets */
        font-size: var(--font-size-small); /* Slightly smaller font size */
      }

    .producten{
        width: 70%;
        height: auto;
        opacity: 1; /* Start hidden */
        animation: none;
    }
    .modal-body{
        font-size: var(--font-size-small);
    }

    .product-tekst {
      font-size: var(--font-size-small);
      
    }
    .product-tekst-rood{
      font-size: var(--font-size-small);
      opacity: 1; /* Start hidden */
      animation: none;
      
    }
    .product-tekst-groen{
      font-size: var(--font-size-small);
      
    }
    .modal-product{
        width: 40%;
        height: auto;
    }
    .modal-header h2 {
      font-size: var(--font-size);
    }

 /*    .modal-close {
      top: 70px;
    } */
    
}