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

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "Roboto", Avenir, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

button,
input,
optgroup,
select,
textarea {
  font-family: "Roboto", Avenir, Helvetica, Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  background-color: white;
  border: 1px solid #EEEEEE;
}

.ad__logo {
  position: absolute;
  width: 140px;
  right: 5%;
  bottom: -50%;
  animation-name: ad-logo-appear;
  animation-fill-mode: forwards;
  animation-duration: 1s;
  animation-delay: 1.3s;
}

.ad__wrapper {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  position: relative;
}

.ad__background-box {
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  position: relative;
  top: -101%;
  background: url("bg.jpg") 0 100%;
  background-size: cover;
  animation-name: ad-move-bg;
  animation-fill-mode: forwards;
  animation-duration: 0.8s;
  animation-delay: 0.5s;
  animation-timing-function: ease;
}

.ad__fragment {
  position: absolute;
  bottom: -160%;
  left: -50%;
  width: 200%;
  height: 100%;
  background-color: white;
  transform: rotate(-9deg);
  animation-name: ad-fragment-appear;
  animation-fill-mode: forwards;
  animation-duration: 1.2s;
  animation-delay: 1.1s;
}

.ad__text-box__text-heading {
  position: absolute;
  left: 8%;
  bottom: -50%;
  color: black;
  margin: 0;
  font-size: 18px;
  animation-name: ad-text-appear;
  animation-fill-mode: forwards;
  animation-duration: 1s;
  animation-delay: 1.45s;
}

.ad__text-box__text-heading--blue {
  color: #018ee3;
  position: relative;
}

.ad__text-box__text-heading--blue::after {
  position: absolute;
  display: block;
  left: 1%;
  right: 1%;
  bottom: 0;
  width: 0;
  height: 2px;
  content: "";
  transition: width ease 0.3s;
  background-color: #018ee3;
}

.ad__text-box__text-heading:hover .ad__text-box__text-heading--blue::after {
  width: 98%;
}

.ad__text-box__url {
  min-width: 70%;
  margin: 0 auto;
  height: 44px;
  cursor: pointer;
}

.ad__text-box__button {
  cursor: pointer;
  width: 60%;
  margin: 0 auto;
  height: inherit;
  color: white;
  border: 2px solid #018ee3;
  background-color: #018ee3;
  font-weight: 500;
  font-size: 16px;
  transition: color linear 0.2s, background-color linear 0.2s;
}

.ad__text-box__button:hover {
  color: #018ee3;
  background-color: white;
}

@keyframes ad-logo-appear {
  from {
    bottom: -50%;
  }
  to {
    bottom: 28%;
  }
}

@keyframes ad-text-appear {
  from {
    bottom: -50%;
  }
  to {
    bottom: 8%;
  }
}
@keyframes ad-fragment-appear {
  from {
    bottom: -160%;
  }
  to {
    bottom: -56%;
  }
}

@keyframes ad-move-bg {
  from {
    top: -101%;
  }
  to {
    top: 0;
  }
}
