@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;
}

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;
  margin-left: auto;
  margin-right: auto;
  width: 210px;
  left: 0;
  right: 0;
  top: 20px;
  opacity: 0;
  animation-name: ad-appear;
  animation-fill-mode: forwards;
  animation-duration: 1s;
  animation-delay: 2s;
}

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

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

.ad__text-box {
  width: 100%;
  height: 30%;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 24px;
}

.ad__text-box__text-heading {
  color: black;
  margin: 0;
  font-size: 27px;
}

.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-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ad-move-bg {
  from {
    top: -101%;
    height: 100%;
  }
  40% {
    top: 0;
    height: 100%;
  }
  60% {
    top: 0;
    height: 100%;
  }
  to {
    top: 0;
    height: 67%;
  }
}
