/* Prevent scrolling on the main page, but allow scrolling inside the cookie banner */
body.no-scroll {
  overflow: hidden;
}

/* The overlay itself can scroll if the content exceeds the viewport */
#cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: none; /* Initially hidden */
  justify-content: center; /* Keep the content centered horizontally */
  align-items: center; /* Keep it centered vertically */
  overflow-y: auto; /* Allow scrolling inside the overlay if needed */
}

/* Cookie icon and banner */
#cookie-icon {
  width: 250px;
  height: auto;
}

#cookie-div {
  z-index: 1000;
  background-color: var(--acent-color1);
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 420px;
  margin: 20px; 
  /* max-height: 80vh; */
}


#cookie-div h1 {
  font-size: 4rem;
  font-weight: 700;
  margin: 0;
  color: black;
}

#cookie-div p {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: black;
  text-align: center;
}

#cookie-button {
  background-color: var(--acent-color2);
  border: none;
  color: black;
  padding: 15px 32px;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition-duration: 0.4s;
  cursor: pointer;
}

#cookie-button:hover {
  filter: brightness(90%);
}

#cookie-button:active {
  filter: brightness(70%);
}

@media (max-width: 768px) {
  #cookie-div {
    max-width: 70vw;
  }
}
@media (max-height: 600px) {
  #cookie-icon {
    width: 100px;
  }
  #cookie-div h1 {
    font-size: 2rem;
  }
  #cookie-div p {
    font-size: 1rem;
  }
}