* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.montserrat {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: white;
}

.parent {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 4;
}

.bg-image {
  position: absolute;
  inset: 0;
  background-image: url("../img/img_upibi.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.div1 {
  position: relative;
  z-index: 1;
  flex: 3;
  display: flex;
  flex-direction: column;
}

.div2 {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: row;
}

.div3 {
  flex: 3;
  padding-left: 5%;
  padding-top: 5%;
  display: flex;
  align-items: center;
}

.div4 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 5%;
}

.div5 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5%;
}

.div6 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  height: 5rem;
}

#title {
  font-size: clamp(2.2rem, 4.9vw, 3.9rem);
  line-height: 1.25;
  max-width: 30ch;
  text-align: left;
}

.btn {
  width: 9em;
  height: 3.3em;
  margin: 0.6em;
  background: #5a1236;
  color: white;
  border: none;
  border-radius: 0.625em;
  cursor: pointer;
  position: relative;
  font-size: clamp(1.2rem, 2.9vw, 1rem);
  z-index: 1;
  overflow: hidden;
}

button:hover {
  color: #5a1236;
}

button:after {
  content: "";
  background: white;
  position: absolute;
  z-index: -1;
  left: -20%;
  right: -20%;
  top: 0;
  bottom: 0;
  transform: skewX(-45deg) scale(0, 1);
  transition: all 0.5s;
}

button:hover:after {
  transform: skewX(-45deg) scale(1, 1);
}

.img-rect,
.img-square {
  height: 100%; 
  width: auto;
  object-fit: contain;
}

@media (max-aspect-ratio: 4/7) {
  .bg-image {
    background-image: url("../img/img_upibi_768.png");
  }

  .div5{
    display: none;
  }
}
