:root {
  --container-bg-color: #333;
  --left-bg-color: #65679bdd;
  --left-button-hover-color: #65679bdd;
  --right-bg-color: rgba(43, 43, 43, 0.8);
  --right-button-hover-color: rgba(43, 43, 43, 0.8);
  --hover-width: 75%;
  --other-width: 25%;
  --speed: 1000ms;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background: var(--container-bg-color);
}

.container {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
}

.split {
  position: relative;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;        /* vertical center */
  justify-content: center;    /* horizontal center if needed */
  padding: 2rem;
  box-sizing: border-box;
  transition: var(--speed) all ease-in-out;
  text-align: center;
}

.split.left {
  background: url('cvma.png') center center no-repeat;
  background-size: cover;
}

.split.right {
  background: url('vidimus.png') center center no-repeat;
  background-size: cover;
}

.split .overlay {
  position: absolute;
  content: "";
  inset: 0;
  z-index: 0;
  background: var(--left-bg-color);
  overflow: hidden;
}

.split.right .overlay {
  background: var(--right-bg-color);
}

.content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 1.5rem;
  max-width: 100%;
  min-width:0;
  width: 100%;
  justify-items: center;
  text-align: center;
  overflow: hidden;
}


h1 {
  font-size: clamp(1.5rem, 6vw, 4rem);
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

h2 {
  font-size: 1rem;
  font-weight: normal;
  color: #fff;
  margin: 0;
  height: 100px;
}

.button {
  height: 4rem;
  line-height: 4rem;
  width: 15rem;
  color: #fff;
  border: #fff solid 0.2rem;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease;
  justify-self: center;
}


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

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

/* Hover Expansion */
.hover-left .left {
  width: var(--hover-width);
}

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

.hover-left .right .overlay {
  z-index: 2;
}

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

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

.hover-right .left .overlay {
  z-index: 2;
}

/* Responsive Tweaks */
@media (max-width: 800px) {
  h1 {
    font-size: clamp(1.2rem, 8vw, 2.5rem);
  }

  .button {
    width: 12rem;
    font-size: 0.9rem;
  }
}

@media (max-height: 700px) {
  .container {
    align-items: flex-start;
  }

  .split {
    grid-template-rows: auto auto auto auto;
  }
}
