.advertisement {
  position: fixed;
  z-index: 2001;
  top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-animation: fadein 2s; /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 2s; /* Firefox < 16 */
  -ms-animation: fadein 2s; /* Internet Explorer */
  -o-animation: fadein 2s; /* Opera < 12.1 */
  animation: fadein 2s;
}

.right-advertisement {
  right: 0;
}
.close-button-advertisement {
  background-color: #dd3333;
  border: none;
  padding: 0;
  display: flex;
  width: 60px;
  height: 18px;
  color: white;
  justify-content: space-between;
  font-size: 0.8em;
  padding-right: 0.5em;
  line-height: 1.4em;
}

.close-icon-advertisement {
  border: 1px solid grey;
  height: 100%;
  width: 20px;
  background-color: darkred;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Internet Explorer */
@-ms-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.image-advertisement {
  height: 80vh;
}

@media (max-width: 480px) {
  .right-advertisement {
    display: none;
  }
  .left-advertisement {
    width: 35%;
  }

  .image-advertisement {
    height: auto;
  }
}
