* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
}
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  flex-direction: row;
  /* Ensures the boxes and logos are in a row */
}
.box {
  flex: 1;
  /* Allows each box to take equal space */
  height: 100vh;
  /* Takes full viewport height */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #886a48;
  transition: background-color 0.4s;

  cursor: pointer;
}
.logo {
  position: absolute;
  /*Adjustedtorelativesologosareinlinewiththeboxes*/
  width: 150px;
  /*Adjustwidthasperlogosize*/
  height: fit-content;
  /*Takesfullviewportheight*/
  top: 40%;
  left: 51.5%;
  transform: translate(-51.5%, -40%);
  -webkit-transform0: translate(-5%, -40%);
  -moz-transform: translate(-51.5%, -40%);
  -ms-transform: translate(-51.5%, -40%);
  -o-transform: translate(-51.5%, -40%);
  -webkit-transform: translate(-51.5%, -40%);
}
.logo img {
  background: #fff;
  object-fit: cover;
  /* animation: logoAnimation 5s infinite ease-in-out;
  -webkit-animation: logoAnimation 5s infinite ease-in-out; */
  width: 110px;
}
.logo img {
  position: absolute;
  transition: opacity 0.4s;
  padding: 5px;
}
#logo1 {
  opacity: 1;
  width: 80%;
}
#logo2 {
  opacity: 0;
  width: 80%;
}
#box1 {
  background-color: #6169b1;
}
#box1:hover {
  background-color: #6169b1;
}
#box2 {
  background-color: #fff;
}
#box2:hover {
  background-color: #886a48;
}
#box2:hover .logo img {
  border: 3px solid #886a48 !important;
}
#box2:hover #box1 {
  background-color: #fff !important;
}
@keyframes logoAnimation {
  0% {
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
  }
  25% {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
  }
  50% {
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
  }
  75% {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
  }
}
@media (max-width: 992px) {
  .container {
    flex-direction: column;
  }
  .container .box {
    width: 100%;
  }
}
