* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', sans-serif;
  height: 100vh;
  color: white;
}

.rx-title,
.rx-nav,
.rx-menu-button,
.rx-blog-button,
.rx-main,
.rx-menu,
.rx-menu li,
.rx-menu a,
.rx-main section h1,
.rx-footer a,
.rx-footer {
  display: flex;
}

.rx-title {
  background: rgba(36, 36, 36, .476);
  backdrop-filter: blur(8px);
  border-radius: 0 0 24px 0;
  inset: 0 auto auto 0;
  padding: 0 10px 0 0;
  position: fixed;
}

.rx-title img {
  width: 45px;
}

.rx-nav {
  background: transparent;
  inset: 0 0 auto 50%;
  justify-content: flex-end;
  position: fixed;
}

.rx-blog-button {
  align-items: center;
  background-color: rgba(235, 235, 235, .136);
  backdrop-filter: blur(8px);
  border-radius: 3px;
  color: white;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 10px 0;
  padding: 5px 10px 5px 13px;
  text-decoration: none;
  text-transform: uppercase;
  transition: .376s;
}

.rx-blog-button:hover {
  background-color: rgba(255, 255, 255, 1);
  color: rgb(35, 35, 35);
  transition: .736s;
}

.rx-menu-button {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 0 0 0 18px;
  justify-content: center;
  height: 50px;
  width: 60px;
  transition: 1s;
}

.rx-menu-button.open {
  background-color: rgba(36, 36, 36, .736);
  backdrop-filter: blur(8px);
}

.rx-menu-button div {
  height: 3px;
  position: relative;
  width: 36px;
}

.rx-menu-button div,
.rx-menu-button div::before,
.rx-menu-button div::after {
  background: white;
  transition: 1.736s;
}

.rx-menu-button div::before,
.rx-menu-button div::after {
  content: '';
  position: absolute;
  inset: 0;
}

.rx-menu-button div::before {
  transform: translateY(400%);
}

.rx-menu-button div::after {
  transform: translateY(-450%);
}

.rx-menu-button.open div {
  border-radius: 50%;
  height: 40px;
  background-color: transparent;
  width: 40px;
}

.rx-menu-button.open div::after,
.rx-menu-button.open div::before {
  border-radius: 18px;
  inset: 48% 21.365%;
}

.rx-menu-button.open div::before {
  transform: translateY(0) rotate(45deg);
}

.rx-menu-button.open div::after {
  transform: translateY(0) rotate(-45deg);
}

.rx-main {
  flex-flow: row wrap;
  font-size: 23px;
  height: 100%;
  line-height: 2;
}

.rx-main section h1 {
  font-family: 'BetecknaGS', sans-serif;
  font-kerning: none;
  font-weight: 300;
  letter-spacing: 1px;
}

.rx-main span span {
  margin: 0 -3px 0 1px;
}

.rx-main section {
  overflow: hidden;
  position: relative;
}

.rx-main a {
  flex: 1;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-flow: column;
  inset: 0;
  position: absolute;
}

.rx-main .rx-media-inc {
  padding: 0 5%;
  min-width: 100%;
}

.rx-main .templates {
  flex: 1;
}

.rx-main .portfolio {
  flex: 1;
}

.rx-main section::after {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  content: '';
  inset: 0;
  position: absolute;
  transition: all 2s, transform 3s;
  z-index: -1;
}

.rx-main section:hover:after {
  transform: scale(1.125);
  z-index: -1;
}

.rx-main .rx-media-inc::after {
  background-image: url('../img/home/services2.png');
  padding: 0 5%;
  min-width: 100%;
}

.rx-main .templates::after {
  background-image: url('../img/home/templates.png');
  flex: 1;
}

.rx-main .portfolio::after {
  background-image: url('../img/home/portfolio2.png');
  flex: 1;
}

.rx-main .templates,
.rx-main .portfolio {
  padding: 3.736% 9.736% 0 3.736%;
}

.rx-main .rx-media-inc h1 {
  flex-flow: column;
  line-height: 1.5;
  margin: 9.36% 0 .5% 0;
}

.rx-main section sub {
  font-size: 60%;
}

.rx-main section:first-child article {
  max-width: 736px;
}

.rx-main article {
  position: relative;
}

.rx-main article::after {
  color: rgba(235, 235, 235, .136);
  content: '>';
  font-size: 300%;
  font-family: 'BetecknaGS', sans-serif;
  inset: 0 -10% auto auto;
  position: absolute;
  transition: 1s;
}

.rx-main section:hover article::after {
  color: rgba(235, 235, 235, .736);
  transform: translateX(15px) scale(.8);
}

.rx-footer {
  border-radius: 18px 0 0 0;
  padding: 5px 5px 5px 10px;
  background: rgba(36, 36, 36, .736);
  inset: auto 0 0 auto;
  position: fixed;
}

.rx-footer a {
  align-items: center;
  border-radius: 8px;
  justify-content: center;
  margin: 0 3px -3px 3px;
  transition: 1s;
}

.rx-footer a:hover {
  align-items: center;
  background: rgba(236, 236, 236, .236);
  justify-content: center;
}

.rx-footer img {
  margin: 6px 10px 6px 10px;
  width: 20px;
}

.rx-nav::after {
  background: rgba(36, 36, 36, 0);
  backdrop-filter: blur(0);
  content: '';
  visibility: hidden;
  inset: 0;
  position: fixed;
  transition: 1s;
  z-index: -1;
}

.rx-nav.open::after {
  background: rgba(36, 36, 36, .236);
  backdrop-filter: blur(8px);
  visibility: visible;
}

.rx-menu {
  flex-flow: column;
  inset: 50px 0 auto auto;
  list-style: none;
  position: fixed;
  opacity: 1;
  transform: translateX(0);
  transition: 1s;
  visibility: visible;
}

.rx-menu li {
  padding: 5px 0 5px 0;
}

.rx-menu a {
  border: 1px solid rgba(236, 236, 236, .236);
  border-radius: 8px 0 0 8px;
  color: inherit;
  flex: 1;
  padding: 15px 45px 18px 25px;
  text-decoration: none;
  transform: translateX(1px);
  transition: 1s;
}

.rx-menu a:hover {
  border: 1px solid rgba(236, 236, 236, .736);
  background: rgba(36, 36, 36, .236);
  transform: translateX(1px);
}

.rx-menu:not(.open) {
  opacity: 0;
  transform: translateX(100%);
  visibility: hidden;
}

@media only screen and (max-width: 768px) {
  body {
    height: auto;
    min-height: 100vh;
  }

  .rx-main {
    font-size: 18px;
    flex-flow: column;
    min-height: 100vh;
  }

  .rx-main section {
    min-height: 300px;
    flex: 1;
    width: 100%;
  }

  .rx-media-inc h1 {
    text-align: center;
    padding: 15% 5% 0 5%;
  }

  .rx-main h1 {
    text-align: center;
    padding: 10% 5% 0 5%;
  }

  .rx-media-inc sub {
    font-size: inherit;
    padding: 0 0 10% 0;
    margin: 0 5%;
  }

  .rx-main .rx-media-inc {
    padding: 0 0 15% 0;
  }

  .rx-main .rx-media-inc article {
    margin: 0 10% 0 10%;
    max-width: unset;
  }

  .rx-main article {
    padding: 0 10% 5% 0;
    margin: 0 5% 0 5%;
  }

  .rx-media-inc article::after {
    inset: auto 0 35% auto;
  }

  .rx-main article::after {
    inset: auto 0 35% auto;
  }

  .templates {
    order: 1;
  }

  .rx-menu-button div {
    height: 1px;
    position: relative;
    width: 20px;
  }

  .rx-menu-button div::before {
    transform: translateY(800%);
  }

  .rx-menu-button div::after {
    transform: translateY(-850%);
  }
}
