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

:root {
  --left-bg-color: rgba(87, 236, 1, 0.5);
  --right-bg-color: rgba(43, 43, 43, 0.527);
  --left-btn-hover-color: rgb(87, 236, 1);
  --right-btn-hover-color: rgb(231, 0, 0);
  --hover-width: 75%;
  --other-width: 25%;
  --speed: 1000ms;
}

.container ul {
  list-style: none;
  position: absolute;
  left: 50%;
  top: 30%;
  width: 50vh;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
}

.container ul li {
  margin: 3rem auto;
}
.container ul li i {
  margin-right: 1rem;
  font-size: 3rem;
}

/* ################################### */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}
.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #333;
}
h1 {
  font-size: 4.25rem;
  color: white;
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  white-space: nowrap;
}

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

.split.left .btn:hover {
  background-color: var(--left-btn-hover-color);
  border-color: var(--left-btn-hover-color);
}

.split.right .btn:hover {
  background-color: var(--right-btn-hover-color);
  border-color: var(--right-btn-hover-color);
}

.container ul {
  list-style: none;
  position: absolute;
  left: 50%;
  top: 30%;
  width: 50vh;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
}

.container ul li {
  margin: 3rem auto;
}
.container ul li i {
  margin-right: 1rem;
  font-size: 3rem;
}

.split {
  position: absolute;
  width: 50%;
  height: 100vh;
  overflow: hidden;
}

.split.left {
  left: 0;
  background: url('nature-min-min.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.split.right {
  right: 0;
  background: url('metro-min-min.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

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

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

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

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

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

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

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

@media (max-width: 800px) {
  h1 {
    font-size: 2rem;
  }
  .btn {
    padding: 1.2rem;
    width: 12rem;
  }
}
