@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

:root {
  --left-btn-hover-color: rgba(161, 161, 161, 0.3);
  --right-btn-hover-color: rgba(161, 161, 161, 0.3);
  --hover-width: 55%;
  --other-width: 45%;
  --speed: 800ms;
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: "Roboto", sans-serif;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

h2 {
  font-size: 3rem;
  color: #fff;
  white-space: nowrap;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  box-sizing: border-box;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  width: 15rem;
  padding: 20px;
  border-radius: 4px;
  background-color: var(--left-btn-hover-color);
}

.btn:hover {
  background-color: var(--left-btn-hover-color);
  border-color: var(--left-btn-hover-color);
  border: #fff solid 1px;
  padding: 19px;
}
/* 
.split.right .btn:hover {
  background-color: var(--right-btn-hover-color);
  border-color: var(--right-btn-hover-color);
  border: #fff solid 1px;
} */

.container {
  color: #fff;
  position: relative;
  width: 100%;
  height: 100%;
  background: #333;
}

.split {
  position: absolute;
  width: 50%;
  height: 100%;
  overflow: hidden;
  filter: grayscale(100%);
  transition: var(--speed) all ease-in-out;
}

.split:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.split.left {
  left: 0;
  background-image: url("images/bathroom.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right;
}

.split.right {
  right: 0;
  background: url("images/kitchen.jpg") center/cover no-repeat;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 634px;
  background-color: #33333380;
  position: absolute;
  left: 50%;
  top: 35%;
  width: 90%;
  transform: translateX(-50%);
  padding: 20px;
  border-radius: 4px;
}

.split.left,
.split.right,
.split.left::before,
.split.right::before {
  transition: var(--speed) all ease-in-out;
}

header {
  position: fixed;
  top: 0;
  left: 50%;
  width: 150px; /* Adjust as needed */
  z-index: 100;
  transform: translateX(-50%);
  background-color: #cfcac4;
  padding: 25px 100%;
  border-radius: 4px;
}

.hover-left .left {
  width: var(--hover-width);
}

.hover-left .right {
  width: var(--other-width);
}

.hover-right .right {
  width: var(--hover-width);
}

.hover-right .left {
  width: var(--other-width);
}
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  justify-content: center;
  color: #9e7d54;
  font-family: "montserrat", sans-serif;

  margin-bottom: 10px;
}

.logo-container h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 1.2px;
  font-weight: 500;
  text-transform: uppercase;
}

.logo {
  margin: 0;
}

.header-container {
  display: flex;

  justify-content: center;
  align-items: center;
}

.phone-link {
  text-decoration: none;
  color: #2b3336;
  font-size: 20px;
  white-space: nowrap;
  align-self: center;
}

.phone-link img {
  width: 22px;
  margin-right: 2px;
}
@media (max-width: 800px) {
  h2 {
    font-size: 2rem;
  }

  .btn {
    width: 12rem;
  }
}

@media (max-width: 600px) {
  header {
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #cfcac4f8;
    width: 100px; /* Adjust as needed */

    padding: 10px 90%;
    box-shadow: 1px 1px 21px 0px rgba(0, 0, 0, 0.45);
    -webkit-box-shadow: 1px 1px 21px 0px rgba(0, 0, 0, 0.45);
    -moz-box-shadow: 1px 1px 21px 0px rgba(0, 0, 0, 0.45);
  }

  .logo-container h3 {
    font-size: 12px;
    letter-spacing: 1.2px;
  }
  .phone-link {
    font-size: 16px;
  }
  .phone-link img {
    width: 14px;
  }
  .content {
    top: 25%;
    max-width: 80%;
    background-color: #3333333a;
    padding: 5px 10px 10px 10px;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn {
    font-size: 12px;
    width: 300px;
  }
  .split {
    width: 100%;
  }

  .split.left {
    top: 0;
    height: 50%;
  }

  .split.right {
    bottom: 0;
    height: 50%;
  }

  .hover-left .left,
  .hover-right .right {
    width: 100%;
    height: 50%;
    filter: grayscale(0%);
    transform: scale(1);
  }

  .hover-left .right,
  .hover-right .left {
    width: 100%;
    height: 50%;
  }
  .split {
    filter: grayscale(0%);
  }
}
