@font-face {
  font-family: GoogleSansBold;
  src: url(fonts/GoogleSans-Bold-v1.27.ttf);
}

@font-face {
  font-family: GoogleSansRegular;
  src: url(fonts/GoogleSans-Regular_0.ttf);
}

body {
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
  cursor: default;
}
body {
  font-family: GoogleSansRegular, sans-serif; /* Default font */
  width: 100%;
  height: 100%;
  text-align: center;
  display: table;
  opacity: 1;
  animation: fadein 3s forwards;
  background: url("background.png") no-repeat center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
h1 {
  font-family: GoogleSansBold, sans-serif;
}

h2 {
  font-weight: 300;
  margin-bottom: 25px;
}
img {
  width: 40%; /* Image width */
  border: 0; /* For IE */
  /* Aspect ratio of image, gives initial dimension to prevent text moving down once image is loaded */
  /* When changing logo, change this also */
}
#main {
  vertical-align: middle;
  display: table-cell;
}
/* Progress bar */
#progress {
  width: 45%; /* Bar width */
  margin: 0 auto;
  border-radius: 20px; /* Roundness */
  background-color: #ececec; /* Background colour */
  padding: 7px 6px;
  /* border: 5px solid #a8a8a8; Border */
}
#fill {
  padding: 4px 0;
  background-color: #34a853; /* Fill colour */
  width: 70%; /* Bar percentage, change text below also */
  border-radius: 25px; /* Roundness */
  animation: proanimate 2s;
}
#barpercent h3 {
  color: white; /* Bar percentage text colour */
  margin: 0;
  padding: 0;
  opacity: 1;
  font-size: 1rem;
  animation: fadein 3s forwards;
}

/* Fades in animation */
@keyframes fadein {
  from {
    opacity: 0;
  }
}
/* Animates bar on page load */
@keyframes proanimate {
  from {
    width: 0%;
  }
}

@media screen and (max-width: 600px) {
  img {
    width: 80%;
  }
  h1 {
    font-size: 1.3em;
  }
  h2 {
    margin: 1.1em;
    font-size: 1.1em;
  }
  #progress {
    width: 80%; /* Bar width */
  }
}
