/*NAV STYLING */

#button-box {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  background-color: transparent;
  z-index: 1;

}

.links {
  display:flex;
  flex-direction: row;
  gap: 1rem;
 
}

.linkbuttons {
  text-decoration: none;
  color: #000;
  font-weight: bold;

}

/* MAIN PAGE STYLING */

body {
  background-color: #f0f0f0;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: #333;
  display: flex;
  flex-direction: column;
    justify-content: center;
    position: relative;
    overflow-x: hidden;

}

.moth2 {
  position: absolute;
  top: 11rem;
  left: 1%;
  width:40rem;
  transition: top 0.1s ease-out;
  z-index: 1;
  animation: slideFromLeft 1.2s ease-in-out;
}

.ux-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-self: center;
}

.ux-title {
    font-size: 13rem;
    font-weight: bold;
    font-family: 'Vogue', sans-serif;
    display: flex;
    flex-direction: column;
    margin-top: 3rem;
    
}

.ux-title-1 {
  display: flex;
  align-content: flex-start;
  margin-left: 3rem;
  animation: slideFromLeft 1.2s ease-in-out;

}

.ux-title-2 {
  display: flex;
  justify-content: flex-end;
  margin-right: 3rem;
  animation: slideFromRight 1.2s ease-in-out;

}

@keyframes slideFromLeft {

  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideFromRight {

  from {
    transform: translateX(100%);
    opacity: 0;
  }
  
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


.ux-intro {
   margin-top: 3rem;
  margin: 2rem;
}

.ux-conclution {
  margin: 2rem;
  margin-bottom: 5rem;
  text-align: left;
}
.ux-subtitle {
  font-size: 1.7rem;
  font-family: 'Vogue', sans-serif;
  margin: 1rem;
  text-align: center;
 
}

.ux-text1{
  font-family: "Lora", serif;
  text-align: center;
  font-size: 1.2rem;
  
}

.ux-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  gap: 3rem;
}

.ux-box1 {
 display: flex;
 flex-direction: row;
  align-items: flex-start;
  width: 100%;
  margin: 0 0 3rem 0;      
 box-sizing: border-box;
 
}

.ux-image {
  width: 30%;
  height: auto;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  margin-right: 4rem;
  margin-left: 4rem;
  margin-top: 5rem;
}

.ux-text {
  
 display: flex;
 flex: 1;
  justify-content: center;
  align-items: flex-start;
  margin-left: 4rem;
  font-family: "Lora", serif;
  text-align: center;
  font-size: 1.4rem;
  margin: 4rem;
  max-width: 40%;

}

.ux-link {
  font-size: 1.4rem;
  font-family: 'Aestera';
  color: #E4DBDB;
  padding: 0.5rem 1rem;
  text-align: center;
  border-radius: 0.5rem;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  background-color: #6A533B;
}

.ux-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: 1;
  gap: 1rem;
  margin-top: 3rem;
  flex-shrink: 0;
  width: 50%;
}

@font-face {
  font-family: 'Aestera';
  src: url('fonts/Aestera.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.ux-text2 {

  text-align: left;
  
}

.ux-image[alt="competitor-analysis"],
.ux-image [alt="interview-student"],
.ux-image[alt="exchange-modules"],
.ux-image[alt="presentation"],
.ux-image[ alt="interactive-prototype"] {
  
  width: 40%;
  height: auto;
  display: block;
  max-width: 500px;
}


/* Responsive design */
@media (max-width: 1100px) {
  .ux-title {
    font-size: 6rem;
  }
  .ux-box1 {
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
  }
  .ux-image {
    width: 80vw;
    max-width: 90vw;
    margin: 2rem 0 1rem 0;
  }
  .ux-text {
    max-width: 90vw;
    margin: 1rem 0;
    font-size: 1.1rem;
  }
  .ux-image-container {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .ux-title {
    font-size: 2.5rem;
    margin-top: 1rem;
  }
  .ux-subtitle {
    font-size: 1.1rem;
  }
  .ux-image {
    width: 98vw;
    max-width: 98vw;
  }
  .ux-text {
    font-size: 1rem;
    max-width: 98vw;
  }
  .ux-content {
    gap: 1.5rem;
  }
}

@media (max-width: 500px) {
  .ux-title {
    font-size: 1.3rem;
    margin-top: 0.5rem;
  }
  .ux-image {
    width: 100vw;
    max-width: 100vw;
    margin: 1rem 0;
  }
  .ux-text {
    font-size: 0.95rem;
    margin: 0.5rem 0;
  }
}