body {
  background-size: cover;
  font-family: "Josefin Sans", sans-serif;
}

html,
body {
  height: fit-content;
  margin: 0;
  padding: 0;
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}

.background {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  background: #3E3E39;
  z-index: 0;
  /* Ensure background is behind everything else */
}

.menu {
  text-align: center;
  position: sticky;
  top: 20px;
  z-index: 4;
  /* Set higher z-index for menu */
}

.center {
  text-align: center;
  z-index: 2;
  /* Set higher z-index for center elements */
  position: relative;
  /* Ensure positioning context */
}

.alternate {
  text-align: center;
  z-index: 2;
  /* Set higher z-index for center elements */
  position: relative;
  /* Ensure positioning context */
  letter-spacing: 0.4px;
}



.solo-link {
  background-color: #333333;
  color: white;
  padding: 16px;
  font-size: 16px;
  border-radius: 10px;
  width: auto;
  border-right: 1px solid #CCCCCC;
  border-left: 1px solid #CCCCCC;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  min-width: 170px;
  z-index: 2;
  /* Set higher z-index for solo links */
  position: relative;
  /* Ensure positioning context */
}

.solo-link:hover {
  background-color: #414141;
}

#delay {
  font-size: 14px;
  transition-property: font-size;
  transition-duration: 4s;
  transition-delay: 2s;
  z-index: 2;
  /* Set higher z-index for delay element */
  position: relative;
  /* Ensure positioning context */
}

#delay:hover {
  font-size: 36px;
}

.profil {
  border-radius: 4px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  z-index: 2;
  /* Set higher z-index for profil element */
  position: relative;
  /* Ensure positioning context */
}

.background li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  animation: animate 17s linear infinite;
}

.background li:nth-child(0) {
  left: 33%;
  width: 185px;
  height: 185px;
  bottom: -185px;
  animation-delay: 1s;
}

.background li:nth-child(1) {
  left: 37%;
  width: 166px;
  height: 166px;
  bottom: -166px;
  animation-delay: 4s;
}

.background li:nth-child(2) {
  left: 78%;
  width: 190px;
  height: 190px;
  bottom: -190px;
  animation-delay: 6s;
}

.background li:nth-child(3) {
  left: 73%;
  width: 109px;
  height: 109px;
  bottom: -109px;
  animation-delay: 11s;
}

.background li:nth-child(4) {
  left: 71%;
  width: 101px;
  height: 101px;
  bottom: -101px;
  animation-delay: 5s;
}

.background li:nth-child(5) {
  left: 4%;
  width: 141px;
  height: 141px;
  bottom: -141px;
  animation-delay: 24s;
}

.background li:nth-child(6) {
  left: 56%;
  width: 180px;
  height: 180px;
  bottom: -180px;
  animation-delay: 11s;
}

.background li:nth-child(7) {
  left: 47%;
  width: 132px;
  height: 132px;
  bottom: -132px;
  animation-delay: 9s;
}

.background li:nth-child(8) {
  left: 56%;
  width: 133px;
  height: 133px;
  bottom: -133px;
  animation-delay: 15s;
}

.background li:nth-child(9) {
  left: 58%;
  width: 105px;
  height: 105px;
  bottom: -105px;
  animation-delay: 34s;
}

.title {
  color: lightgrey;
  font-family: "Josefin Sans", sans-serif;
  margin-left: 15px;
  z-index: 2;
  /* Set higher z-index for title element */
  position: relative;
  /* Ensure positioning context */
}

.fade-in-down {
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

h1 {
  color: #D1D1D1;
  font-family: "Josefin Sans", sans-serif;
  z-index: 2;
  /* Set higher z-index for text elements */
  position: relative;
  /* Ensure positioning context */
}

.form {
  position: relative;
  /* Ensures positioning context for absolute positioning */
  display: flex;
  /* Use flexbox for alignment */
  width: auto;
  z-index: 2;
  flex-wrap: wrap;
}

input[type="text"],
input[type="email"],
textarea {
  z-index: 2;
  margin-left: 15px;
  border-radius: 7px;
  box-shadow: 3px 4px 3px #D1D1D1;
  padding: 5px;
  width: 51%;
  box-sizing: border-box;
}

input[type="text"]#surname {
  margin-left: 25px;
}

.name-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  /* Take full width of the form */
}

.textbox {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-right: 10px;
  width: calc(20% - 10px);
}

.textbox:last-child {
  margin-right: 0;
  /* Remove right margin from the last textbox */
  margin-left: -30%;
}

.textbox:last-child label {
  margin-left: 30px;
}

label {
  margin-left: 20px;
  margin-bottom: 4px;
  color: #D1D1D1;
  font-family: "Josefin Sans", sans-serif;
}

.textbox_email {
  flex-basis: 58%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

input[type="email"] {
  width: 300px;
}

.textbox_email label {
  padding-top: 10px;
  margin-left: 19px;
}

.textbox_title {
  flex-basis: 50%;
  display: flex;
  flex-direction: column;
}

.textbox_title label {
  padding-top: 10px;
  margin-left: 19px;
}

.textbox_title input {
  width: 300px;
}

.textbox_message {
  flex-basis: 80%;
  display: flex;
  flex-direction: column;
}

.textbox_message label {
  padding-top: 10px;
  margin-left: 19px;
}

textarea {
  width: 450px;
  height: 200px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

textarea {
  resize: none;
}

.submit {
  display: flex;
  flex-direction: row;
  margin-left: 30%;
  margin-top: 23px;
}

.submit button {
  width: 100px;
  background-color: #D1D1D1;
  padding: 5px;
  border-radius: 5px;
  box-shadow: 1px 2px 3px #D1D1D1;
}

.submit button:hover {
  background-color: #EEEEEE;
}

.submit button:active {
  background-color: #A7A3A3;
}

footer {
  z-index: 3;
  background-color: #333333;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  height: 48px;
  position: relative;
}

footer p {
  color: #D1D1D1;
  margin: 0;
}

footer .social-links {
  display: flex;
  gap: 20px;
}

footer .social-links a {
  color: #D1D1D1;
  font-size: 24px;
  transition: color 0.3s;
}

footer .social-links a:hover {
  color: #ffffff;
}


.form-center {
  margin-left: 35%;
  margin-right: 30%;
}

@media (max-width: 1119px) {
  .form-center {
    margin-left: 20%;
    margin-right: 10%;
  }

  .submit {
    display: flex;
    flex-direction: column;
    margin-left: 27%;
    margin-top: 23px;
  }

  .textbox {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-right: 10px;
    width: calc(40% - 10px);
  }
}

.container {
  max-width: 40%;
  position: relative;
  margin: 50px auto;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* For Safari support */
  padding: 30px;
  border-radius: 10px;
  border-color: #333333;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  z-index: 3;
  justify-items: center;
}

.container h1,
h2 {
  color: #222;
  font-family: "Josefin Sans", sans-serif;
}

.container h1 {
  text-align: center;
}

.section {
  margin-bottom: 40px;
}

.project-item {
  background: #797d7f;
  color: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.project-item h3 {
  margin-top: 0;
  color: #fff;
}

.project-item i {
  margin-right: 5px;
}

.section p {
  line-height: 1.6;
}

#result {
  height : 20px;
  margin-top: 8px;
  margin-left: 15px;
  width: 250px;
}