html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

#welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

#welcome-content {
  position: relative;
  text-align: center;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  box-sizing: border-box;
}

#welcome-content video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  z-index: 1;
}

#welcome-content p {
  margin-top: 15px;
  font-size: 1.2em;
  color: #333;
}

#close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  color: #3498db;
  font-size: 24px;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 2;
}

#close-button:hover,
#close-button:focus {
  color: #000;
  outline: none;
}

/* Prevent background scrolling */
body.modal-open {
  overflow: hidden;
}

#content-container {
  flex: 1; 
  display: flex;
  flex-direction: column;
}

#main-content h1 {
  
  font-family: "Amatic SC", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 5em;
  padding-left: 70px;

}

.projects {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
  margin-top: 150px;
}

.image {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide.show{
  opacity: 1;
  transform: translateX(0);
}

img {
  width: 500px;
  height: 300px;
  padding: 15px;            
  border: 10px solid #8b4513; 
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
  background-color: #f5f5dc; 
  border-radius: 5px;   
}

.hover-image {
  transition: transform 0.3s ease, filter 0.3s ease; 
}

.hover-image:hover {
  transform: scale(1.03); 
  filter: brightness(0.8); 
}

.hover-image:active {
  transform: scale(1.03);
  filter: brightness(0.8);
}

.image-text {
  margin-top: 30px;
  margin-bottom: 50px;
  font-family: "Amatic SC", sans-serif;
  font-weight: 80;
  font-style: normal;
  font-size: 2em;
  text-align: center;
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1000px) and (max-width: 1300px) {
  .projects {
    flex-direction: column;
    align-items: center; 
  }
}


@media (max-width: 600px) {
  #welcome-content {
    padding: 15px;
  }

  #close-button {
    top: 5px;
    right: 5px;
  }

  #welcome-content p {
    font-size: 1em;
  }

  #main-content h1 {
    font-size: 3em;
    padding-left: 20px;
  }

  .projects {
    margin-top: 0;
  }

  .image-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 30px;
  }

  img {
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 5px solid #8b4513; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
    background-color: #f5f5dc; 
    border-radius: 5px;
  }

  .image-text {
    margin-top: 30px;
    margin-bottom: 50px;
    font-family: "Amatic SC", sans-serif;
    font-weight: 80;
    font-style: normal;
    font-size: 1em;
    text-align: center;
  }
  
}
