@-webkit-keyframes centered-svg {
  to {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}
@keyframes centered-svg {
  to {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}

body, html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
}

.container {
    width: 100%;
    height: calc(100% - 20px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.centered-svg {
  max-width: 100%;
  max-height: 100%;
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}

.centered-svg:hover, .centered-svg:focus, .centered-svg:active {
  -webkit-animation-name: centered-svg;
  animation-name: centered-svg;
  -webkit-animation-duration: 0.5s;
  animation-duration: 0.5s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
  animation-direction: alternate;
}

@media (max-width: 768px) {
  .centered-svg {
    max-width: 75%;
  }
}