:root {
  --container-bg-color: #333;
  --left-bg-color: rgba(158, 221, 150, 0.2);
  --left-button-hover-color: rgba(65, 173, 132, 0.3);
  --right-bg-color: rgba(137, 207, 240, 0.2);
  --right-button-hover-color: rgba(0, 150, 255, 0.3);
  --hover-height: 80%;
  --other-height: 20%;
  --speed: 1000ms;
}

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

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  color: #fff;
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  white-space: nowrap;
}

@media (max-width: 480px){
    h1 {
        font-size: 40px;
    }
    p {
        display: none;
    }

    .button {
      border-radius: 2px;
    }
}
p {

  border-radius: 25px;
  background-image: linear-gradient(to left, rgba(137,207,240,0.8),rgba(158,221,150,0.8));
  padding: 20px;
  font-size: 20px;
  color: #fff;
  position: absolute;
  left: 50%;
  top: calc(50% - 80px);
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  z-index: 9;

}

.button {
  border-radius: 20px;
  position: absolute;
  left: 50%;
  top: 60%;
  height: 40px;
  padding-top: 20px;
  width: 15rem;
  text-align: center;
  color: #fff;
  border: #fff solid 0.2rem;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateX(-50%);
 
}



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



.container {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--container-bg-color);
}



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



.split.up {
  top:0;
  background: url('./marina/img/slider/kasamy_city.jpg') center center no-repeat;
  background-size: cover;
}

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

.split.down {
  top:50%;
  background: url('./marina/img/slider/kasamy_marina.jpg') center center no-repeat;
  background-size: cover;
}

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

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

.hover-up .up {
  height: var(--hover-height);
}
.hover-up p {
  background-color: rgba(158,221,150,0.7);
  background-image: none;
}
.hover-down p {
  background-image: none;
  background-color: rgba(137,207,240,0.7);
}

.hover-up .down {
  height: var(--other-height);
  top: 80%;
}

.hover-up .down:before {
  z-index: 2;
}


.hover-down .down {
  height: var(--hover-height);
  top: 20%;
  }

.hover-down .button {
display: block;
}
.hover-up .button {
    display: block;
}
.hover-down p {
  display: none;
}
.hover-up p {
  display: none;
}

.hover-down .up {
  height: var(--other-height);

}
.hover-down .up .button{
  display: none;
}

.hover-up .down .button{
  display: none;
}

.hover-down .up:before {
  z-index: 2;
}

/* @media(min-width: 480px) {
  h1 {
    font-size: 60px;
  }
  p{
    font-size: 50px; 
    top: 52%;
  }

  .button {
    width: 16rem;
  }
}
 */