html {
  box-sizing: border-box;
  font-size: 16px;
  
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  height: 100vh;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

ol, ul {
  list-style: none;
}

img {
  max-width: 100vw;

} 

.modal {
    position: fixed;
    z-index: 20;
    top: 50%;
    left: 50%;
    padding:10vmin;
    box-sizing:border-box;
    border-radius: 10px;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    transform: translate(-50%, -50%) scale(0);
    transition: 200ms ease-in-out;
    background-color: rgba(27, 26, 34, 0.171);
    font-family: monospace;
    color: white;
}

.modal-button {
  margin-top: 20px;
  padding: 1rem 3rem;
  border-radius: 5px;
  border: none;
  background-color: brown;
  color: white;
  font-size: 2rem;
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  opacity: 1;
  z-index: 10;
  background-image: url("images/Vorhang.jpg");
  object-fit: cover;
  background-size: cover;
  background-repeat: no-repeat;
}


.modal-overlay.active {
    display: block;
}



.hero-image {
    width: 100vw;
    height: 100vh;
    overflow: hidden; 
    position: relative;
}

.background-image {
    position: absolute;
    /* top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    min-width: 100%;
    min-height: 100%;
    object-fit: cover; 
    z-index: 0;
}

.overlay {
    display: flex;
    z-index: 8;
    flex-direction: column;
    position: absolute;
    left: 70vw;
    top: 0px;
    width: 30vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.507);
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
    
}

.overlay-name {
    font-family: "Parisienne", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 80px;
    word-wrap: break-word;
    text-align: center;
    margin-bottom: 15px;
}

.overlay-date {
    font-size: 32px;
}

.gallery {
    column-count: 4;
    gap: 10px;
    
}

.gallery img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    break-inside: avoid;
    display: block;
    border-radius: 10px;
}


.heart {
  position: absolute;
  font-size: 1.5rem;
  animation: fall 3s linear forwards;
  font-family: system-ui, "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}

@keyframes fall {
  to {
    transform: translateY(105vh);
  }
  
}

.heart-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  /* overflow: hidden; */
}


@media (max-width: 600px) {
  .modal-overlay{
    background-image: url("images/mobile-vorhang.jpg");
  }

  .modal > p{
    font-size: 1.5rem;
  }

  .overlay {
    top: 70vh;
    left: 0vh;
    width: 100vw;
    height: 30vh;
    
  }

  .overlay-name{
    font-size: 3rem;
  }

  .overlay-date {
    font-size: 1.5rem;
  }
  
}

