* {
  margin: 0;
  padding: 0;
}

html {
  background: #628CF4;
  font-size: 20px;
  background-image: url('../images/background-illustrations.svg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 300% 50%;
  background-position: center -5%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  text-align: center;
  line-height: 1.4;
  color: #fff;
  height: 100%;
  padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
}

body:before {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  background: linear-gradient(rgba(98,140,244,0), #ACF7D5);
}

#container {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  min-height: 568px;
}

#container:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -0.25em; /* Adjusts for spacing */
}

a, a:visited {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

main {
  display: inline-block;
  vertical-align: middle;
  margin-left: 20px;
  margin-right: 20px;
  text-shadow: 0px 1px 1px rgba(0,0,0,0.3);
}

@keyframes iconbounce {
  0% {
    transform: translateY(0) scaleY(1) scaleX(1);
  }
  50% {
    transform: translateY(0) scaleY(1) scaleX(1);
  }
  55% {
    transform: translateY(0.2px) scaleY(1) scaleX(1);
  }
  65% {
    transform: translateY(0.7px) scaleY(1) scaleX(1);
  }
  80% {
    transform: translateY(2.8px) scaleY(1) scaleX(1) rotate(-1deg);
  }
  85% {
    transform: translateY(3.5px) scaleY(1) scaleX(1) rotate(-1.5deg);
  }
  100% {
    transform: translateY(4px) scaleY(0.98) scaleX(1.02) rotate(-3deg);
  }
}

#icon {
  display: inline-block;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.3));
  margin-bottom: 8px;
  animation-duration: 1.6s;
  animation-name: iconbounce;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: linear;
}

#logo {
  width: 225px;
  height: 64px;
  background-image: url('../images/tinypoll-logo.svg');
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 200px 57px;
  text-indent: -9999em;
  overflow: hidden;
  margin: 0 auto 0.6rem auto;
  padding: 4px;
  filter: drop-shadow(0 1px 2px #5A79C7);
}

#download-button {
  width: 160px;
}

h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

@media (max-width: 500px) {
  html {
    font-size: 5vmin;
  }
}

p {
  margin-bottom: 1rem;
}

footer {
  color: #2C3F59;
  font-size: 0.8rem;
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
}

footer p {
  margin-bottom: 0;
}

footer a, a:hover, a:visited {
  color: #2C3F59;
}

footer ul {
  display: block;
  list-style-type: none;
  margin: 0 auto 1rem auto;
}

footer ul li {
  display: inline-block;
  padding: 0 1rem;
}
