.foto-container3 {
  flex: 1 1 46%;
  padding: 15px;
}

.videoMessage { 
  position: absolute; 
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center; 
  width: 100%;
  height: 100%;
  padding: 0.3em;
  margin: 0;
  text-shadow: 2px 2px 2px #000000;
  color:white;
  z-index:8;
}

.x1-title2 {
  font-size: calc(1em + 1.5vw);
  color:#ffffff;
  text-align:center;
  text-shadow: #000000;
}

.x1-title1 {
  padding: 1em 2.5em;
  font-size: calc(1em + 3vw);
  font-weight: 700;
  color:#ffffff;
  text-align:center;
}

.foto-text-container {
  background-color: white;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  margin: 50px auto; /* Center the container horizontally */
  min-height: 600px;
  width: 60%; /* Container width: not full screen */
  max-width: 1200px; /* Optional: Limits the max size */
  position: relative;
  overflow: hidden;
  padding-top: 15px;
}

#x1-foto-container1 {
  margin-bottom: -95px;
}

.container-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align the divs to the left */
  gap: 10px;
  padding: 0px 20px;
  text-align: center;
  flex: 1 1 46%;
  height: 100%;
  color: black;
}

.x1-text-title1 {
  padding-top: 1em;
  font-size: calc(0.6em + 1vw);
  text-align: left;
}

.x1-text-title2 {
  padding-top: 0.2em;
  font-size: calc(0.4em + 1.5vw);
  font-weight: 700;
  text-align: left;
}

.x1-text-title3 {
  padding-top: 1.5em;
  font-size: calc(0.6em + 0.4vw);;
  text-align: left;
}

.x1-button1 {
  margin-top: 10em;
  font-size: calc(1em + 0.2vw);
  color:#ffffff;
  text-align:center;
  padding: 10px 20px;
  background-color: rgb(184, 112, 86);
  opacity: 85%;
  border-radius: 10px;
}

.x1-button2 {
  margin-top: 2em;
  font-size: calc(1em + 0.2vw);
  color:#ffffff;
  text-align: center;
  align-self: center;
  padding: 10px 20px;
  width: 50%;
  background-color: var(--textcolor);
  opacity: 85%;
  border-radius: 10px;
}

.x1-button1:hover,
.x1-button2:hover,
.x2-button1:hover{
  color: whitesmoke;
  background-color: rgb(17, 52, 73);
  border-style: outset;
  border-width: 4px;
  border-color: whitesmoke;
  cursor: pointer;
}

.project-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 100px;
  margin-top: 20px;
  margin-left: 20px;
  margin-right: 20px;
  font-size: 18px;
  color: var(--textcolor);
  opacity: 100%;
  max-width: 100%;
}

/* 3 elements per row */
.mainelement3col {
  display: block;
  align-items: left;
  text-align: left;
  width: 400px;
  margin-left: 12px;
}

.mainelement2col {
  display: block;
  align-items: center;
  text-align: left;
  width: 600px;
}

.formdata {
  padding: 15px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: top;
  gap:20px;
  box-shadow: inset;
  background-color: var(--headerbackgroundcolor);
  border-radius: 25px;
}

.formtextinput {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 20px;
  justify-content: top;
  width: 90%;
}

.formfield {
  font-size: 18px;
  border-color: var(--headerbackgroundcolor);
}

.formfield2 {
  height: 220px;
  font-size: 19px;
}

.submitbutton,
.formanswer {
  padding: 10px 30px;
  background-color: whitesmoke;
  color: var(--textcolor);
  font-size: 24px;
  font-weight: 700;
  border-radius: 15px;
  width: 250px;
  text-align: center;
}

.submitbutton:hover {
  color: whitesmoke;
  background-color: var(--textcolor);
  border-style: outset;
  border-width: 4px;
  border-color: whitesmoke;
  cursor: pointer;
}

.formsubmit {
  display: flex;
  flex-direction: row;
}

.piclink1 img {
  overflow: hidden;
  transition: transform 0.8s;
  height: 250px;
}

.piclink1:hover img {
  opacity: 50%;
  cursor: pointer;
  transform: scale(1.1);
}

.mainelementtitle1,
.contactinfo {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 500;
}

.mainelementtitle2 {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
}

.top-element {
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--textcolor);
  opacity: 95%;
}

.top-elementindex {
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white; /* var(--textcolor); */
  background: rgba(3, 21, 32, 0.6);
  margin: 0px 100px;
  border-radius: 35px;
}

.top-element1 {
  font-size: 46px;
  font-weight: 700;
}

.top-element2-28 {
  margin-top: 25px;
  font-size: 28px;
  font-weight: 500;
  padding: 0px 250px;
}

.top-element2-22 {
  margin-top: 25px;
  font-size: 22px;
  font-weight: 500;
  padding: 0px 250px;
}

.top-element2 span {
  background-color: none;
  opacity: 100%;
  text-shadow: whitesmoke;
}

.bottom-element {
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--textcolor);
  opacity: 95%;
  margin-top: 40px;
}

.bottom-element1 {
  font-size: 46px;
  font-weight: 700;
}

.bottom-element2 {
  margin-top: 25px;
  font-size: 28px;
  font-weight: 500;
  padding: 0px 250px;
}

.bottom-element2 span {
  background-color: whitesmoke;
  opacity: 100%;
  text-shadow: whitesmoke;
}

.partner {
  display: block;
  align-self: auto;
  text-align: left;
  width: 400px;
}

.partnertitle1 {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 700;
}

.partnertitle2 {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
}

.partnertitle3 {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
}

@media (max-width: 770px) {
  .container-message,
  .foto-container2 {
      flex: 1 1 100%; /* Make columns take up 100% of the container width */
      margin-bottom: 40px;
  }
  .foto-text-container {
    width: 90%;
  }
  .mainelement3col {
    margin-left: 0px;
  }
  .mainelementtitle1 {
    margin-left: 8px;
  }
  .mainelementtitle2 {
    margin-left: 8px;
  }
  .top-elementindex {
    margin: 0px 20px;
  }
  .top-element1 {
    font-size: 36px;
  }
  .top-element2 {
    margin-top: 25px;
    font-size: 18px;
    font-weight: 400;
    padding: 0px 5px;
  }
}

@media (min-width: 771px) and (max-width: 1050px) {
  .container-message,
  .foto-container2 {
      flex: 1 1 100%; /* Make columns take up 100% of the container width */
      margin-bottom: 40px;
  }
  .foto-text-container {
    width: 90%;
  }
  .top-elementindex {
    margin: 0px 30px;
  }
  .top-element1 {
    font-size: 36px;
  }
  .top-element2 {
    margin-top: 25px;
    font-size: 20px;
    font-weight: 500;
    padding: 0px 10px;
  }
}