@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
:root {
  --left-bg-color: rgba(87, 84, 236, 0.7);
  --right-bg-color: rgba(43, 43, 43, 0.8);
  --left-btn-color: rgba(87, 84, 236, 1);
  --right-btn-color: rgba(28, 122, 28, 1);

  --hover-width: 75%;
  --other-width: 25%;

  --speed: 1000ms;
}
* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

.title {
  color: #fff;
  font-size: 4rem;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  position: absolute;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15rem;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border: 0.2rem #fff solid;
  padding: 1.5rem;
  left: 50%;
  top: 40%;
  transform: translateX(-50%);
  position: absolute;
}

.split.left .btn:hover {
  background-color: var(--left-btn-color);
  border-color: var(--left-btn-color);
  border: 0.2rem #fff solid;
}

.split.split.right .btn:hover {
  background-color: var(--right-btn-color);
  border-color: var(--right-btn-color);
  border: 0.2rem #fff solid;
}

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

.split {
  width: 50%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  position: absolute;
}

.split.left {
  left: 0;
  background: url('/images/3.jpg');
}

.split.left::before {
  content: '';
  width: 100%;
  height: 100%;
  background-color: var(--left-bg-color);
  position: absolute;
}

.split.right {
  right: 0;
  background: url('/images/maxresdefault.jpg');
}

.split.right::before {
  content: '';
  width: 100%;
  height: 100%;
  background-color: var(--right-bg-color);
  position: absolute;
}

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

.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);
}

@media (max-width: 800px) {
  .title {
    font-size: 2rem;
    top: 30%;
  }

  .btn {
    width: 12rem;
    padding: 1.2rem;
  }
}
