@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");


html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

* {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", 'Roboto', Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  border: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  font-family: 'Roboto';
  font-weight: 400;
}

.left, .right {
  width: 50vw; 
  height: 100vh; 
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  position: relative;
  
}


.logo-1 {
  background-image: url("/assets/AIP_logo_nagy.png");
  width: 31vw;
  max-width: 600px;
  height: auto;
  aspect-ratio: 6 / 1;
  background-repeat: no-repeat;
  background-size: contain;
  margin-top: 7rem;
  background-position: center;
}

.logo-2 {
  background-image: url("/assets/Allinhoreca_logo.png");
  width: 28vw;
  max-width: 550px;
  height: auto;
  aspect-ratio: 5.5 / 1;
  background-repeat: no-repeat;
  background-size: contain;
  margin-top: 7.5rem;
  background-position: center;

}

.title {
  color: white;
  font-size: clamp(1.5rem, 2.5vw, 2rem); 
}

.left .line {
 margin-top: 30px;
 border-bottom: 2px solid #0066b3;
 width: 200px;
 height: 10px;
}

.right .line {
 margin-top: 30px;
 border-bottom: 2px solid #f28c00;
width: 200px;
 height: 10px;
}

.left {
  position: relative;
  background-image: none;
  overflow: hidden;
}

.left * {
  position: relative;
  z-index: 3; /* tartalom a legelöl */
}

.right {
  position: relative;
  background-image: none;
  overflow: hidden;
}

.right * {
  position: relative;
  z-index: 3; /* tartalom a legelöl */
}

/* Háttérkép after-ben, nagyítással */
.left::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./assets/AIP_hub_pic.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.left:hover::after {
  transform: scale(1.05);
}

/* Sötét overlay */
.left::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.left:hover::before {
  opacity: 1;
}

/* Hover gomb */
.hover-btn {
  position: absolute;
  top: 30rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4; /* a legfelül */
  padding: 10px 20px;
  background-color: transparent;
  border: 2px solid white;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  width: 300px;
  height: 30px;
  color: white;
  text-transform: uppercase;
  font-size: 24px;
  font-family: 'Roboto';
  font-weight: 300;
  text-decoration: none;
  text-align: center;
}

.left:hover .hover-btn {
  opacity: 1;
}


/* Háttérkép after-ben, nagyítással */
.right::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./assets/Horeca_hub_pic.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.right:hover::after {
  transform: scale(1.05);
}

/* Sötét overlay */
.right::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.right:hover::before {
  opacity: 1;
}


.right:hover .hover-btn {
  opacity: 1;
}


@media (max-width: 768px) {
  main {
    flex-direction: column;
  }

  .left, .right {
    width: 100vw;
    height: 50vh;
  }

  .logo-1 {
    width: 300px;
    margin-top: 2rem;
  }

  .logo-2 {
    width: 280px;
    margin-top: 2.5rem;
  }

  .title {
    font-size: 24px;
  }

  .hover-btn {
    opacity: 1;
    top: auto;
    bottom: 3rem;
    width: 250px;
    height: auto;
    padding: 15px 10px;
    font-size: 20px;
  }

  .left:hover::before, .right:hover::before {
    opacity: 0.4; /* Mobilon ne legyen teljes a sötétítés, mert a gomb mindig látszik */
  }

  .left:hover::after, .right:hover::after {
    transform: none; /* Mobilon kikapcsoljuk a nagyítást */
  }
}