svg {
  position: relative;
  top: 40px;
  right: 0;
  left:20%;
  margin: auto;
}


svg polyline {
  fill: black;
  stroke-width: 0.5px;
  stroke: black;
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
  opacity: 0;
  animation: 18s outline infinite  alternate;
}

svg path {
  fill: none;
  stroke: black;
  stroke-width: 1.5px;
  stroke-dasharray: 200;
  stroke-dashoffset: 800;
  opacity: 0;
  animation: 18s text-outline infinite  alternate;
}

@keyframes outline {
  from {
    stroke-dashoffset: 200;
    opacity: 0;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes text-outline {
  from {
    stroke-dashoffset: 1100;
    opacity: 0;
  }
  to {
    stroke-dashoffset: 50;
    opacity: 1;
  }
}


#container {
  display: block;
  border: 4px solid grey;
  border-radius: 25px;
  width: 80%;
  
  margin-left:12%;
  margin-top: -50px;
  padding: 10px;
}
#name {
  display: inline-block;
  position: relative;
  top:-30px;
  float: left;
  border: 4px solid grey;
  border-radius: 20px;
  height: 36px;
  width: 55%;
  padding: 10px;   
}
#sur {
  display: inline-block;
  position: relative;
  top:-30px;
  border: 4px solid grey;
  border-radius: 20px;
  height: 36px;
  width: 30%;
  margin-left: -4px;
  padding: 10px;
}
#testname {
  font-size: 28px;
  font-weight: bold;
  margin-left: 15px;
  
}

#level, #GCSE {
  font-size: 28px;
  font-weight: bold;
  margin-left: 15px;
  margin-top: -5px;
  margin-bottom: 0px;
}

#cent, #center {
  position: relative;
  top: -115px;
  left: 30%;
  font-size: 20px;
}
#cand, #candidate {
  position: relative;
  top: -195px;
  left: 65%;
  font-size: 20px;
}


.b {
  display: inline-block;
  height: 50px;
  width: 40px;
  border: 2px solid grey;
  margin: -1px;
}

  #cont2 {
  display: block;
  position: relative;
  top: -120px;
  border: 4px solid grey;
  border-radius: 25px;
  width: 90%;
  height: 196px;
  margin: auto;
  padding: 10px;
}   

h1 {
  font-size: 50px;
  margin-left: 15px;
  margin-top: 0px;
}
#paper {
  font-size: 36px;
  font-weight: bold;
  margin-left: 15px;
  margin-top: -30px;
  margin-bottom: 0px;
}

#tier {
  float: right;
  font-size: 36px;
  font-weight: bold;
  margin-left: 15px;
  margin-top: -5px;
  margin-bottom: 0px;
}

#divider {
  width:102%;
  margin-top: -25px;
  margin-left:-10px;
  margin-bottom: -18px;
    height: 0px;
  border: 2px solid grey;
}

#month, #year {
  display: inline-block;
  font-size: 36px;
  font-weight: bold;
  margin-left: 15px;
  margin-top: -48px;
}

#begin{
  display: inline-block;
  position: relative;
  font-size: 28px;
  height: 70px;
  width: 100px;
  border: 1px solid black;
  border-radius: 20px;
  float: right;
  bottom: 30%;
  top: -100px;
  left: 0;
  margin: 15px;
  text-align: center;
  padding-top: 20px;
  background-color: lightgrey;
  font-family: georgia;
  color: black;
}
#begin:hover {
	background-color:deepskyblue;
}
ul {
  font-size: 20px;
  margin-top: -112px;
  width: 70%;
}

#home {
  background-color: white;
  color: black;
  position: fixed;
  left: 1vw;
  top: 2vh;
  width: 100px;
  height: 45px;
  display: inline-block; 
  border: 1px black solid;
  border-radius: 5px;
  text-align: center;
  font-family: georgia;
  font-size: 35px;
}

#home:hover {
  background-color:deepskyblue;}

  @media screen and (min-width:360px) and (max-width:749px) {
svg {
display: none;
  position: relative;
  top: 40px;
  right: 0;
  left:20%;
  margin: auto;
}

#container {
  display: block;
  border: 3px solid grey;
  border-radius: 25px;
  width: 300px;
  
  margin-left:15px;
  margin-top: 50px;
  padding: 5px;
}
#name {
  display: inline-block;
  position: relative;
  top:-30px;
  float: left;
  border: 3px solid grey;
  border-radius: 15px;
  height: 36px;
  width: 120px;
  padding: 8px;
  margin-bottom: -20px;
  font-size: 12px;   
}
#sur {
  display: inline-block;
  position: relative;
  top:-30px;
  border: 3px solid grey;
  border-radius: 15px;
  height: 36px;
  width: 110px;
  margin-left: -3px;
  margin-bottom: -20px;
  padding: 8px;
    font-size: 12px;
}
#testname {
  font-size: 18px;
  font-weight: bold;
  margin-top:0px;
  margin-left: 5px;
  margin-bottom: 5px;
}

#level, #GCSE {
  font-size: 18px;
  font-weight: bold;
  margin-left: 5px;
  margin-top: 0px;
  margin-bottom: 5px;
}

#cent, #center {
  position: relative;
  top: -65px;
  left: 125px;
  font-size: 8px;
}
#cand, #candidate {
  position: relative;
  top: -103px;
  left: 220px;
  font-size: 8px;
}


.b {
  display: inline-block;
  height: 25px;
  width: 13px;
  border: 2px solid grey;
  margin: -1px;
}

  #cont2 {
  display: block;
  position: relative;
  top: -80px;
  border: 3px solid grey;
  border-radius: 25px;
  width: 270px;
  height: 136px;
  margin: auto;
  padding: 10px;
}   

h1 {
  font-size: 30px;
  margin-left: 5px;
  margin-top: 0px;
}
#paper {
  font-size: 18px;
  font-weight: bold;
  margin-left: 5px;
  margin-top: -20px;
  margin-bottom:0px;
}

#tier {
  float: right;
  font-size: 18px;
  font-weight: bold;
  margin-left: 5px;
  margin-top: 15spx;
  margin-bottom: 0px;
}

#divider {
  width:286px;
  margin-top: -35px;
  margin-left:-10px;
  margin-bottom: -18px;
    height: 0px;
  border: 1.5px solid grey;
}

#month, #year {
  display: inline-block;
  font-size: 24px;
  font-weight: bold;
  margin-left: 5px;
  margin-top: -48px;
}

#begin{
  display: inline-block;
  position: relative;
  font-size: 28px;
  height: 50px;
  width: 70px;
  border: 1px solid black;
  border-radius: 20px;
  float: right;
  bottom: 20%;
  top: -80px;
  left: 0;
  margin: 15px;
  text-align: center;
  padding-top: 20px;
  background-color: lightgrey;
  font-family: georgia;
  color: black;
}
#begin:hover {
  background-color:deepskyblue;
}
ul {
  font-size: 10px;
  margin-top: -50px;
  width: 170px;
  margin-left:-4px;
}

#home {
  background-color: white;
  color: black;
  position: fixed;
  right: 1vw;
  top: 2vh;
  width: 50px;
  height: 25px;
  padding-top: 5px;
  display: inline-block; 
  border: 1px black solid;
  border-radius: 5px;
  text-align: center;
  font-family: georgia;
  font-size: 12px;
}

#home:hover {
  background-color:deepskyblue;}


  }


    @media screen and (min-width:750px) and (max-width:950px) {
svg {
display: none;
  position: relative;
  top: 40px;
  right: 0;
  left:20%;
  margin: auto;
}

#container {
  display: block;
  border: 4px solid grey;
  border-radius: 25px;
  width: 80%;
  
  margin-left:12%;
  margin-top: 0px;
  padding: 10px;
}
#name {
  display: inline-block;
  position: relative;
  top:-30px;
  float: left;
  border: 4px solid grey;
  border-radius: 20px;
  height: 36px;
  width: 55%;
  padding: 10px;   
}
#sur {
  display: inline-block;
  position: relative;
  top:-30px;
  border: 4px solid grey;
  border-radius: 20px;
  height: 36px;
  width: 30%;
  margin-left: -4px;
  padding: 10px;
}
#testname {
  font-size: 28px;
  font-weight: bold;
  margin-left: 15px;
  
}

#level, #GCSE {
  font-size: 28px;
  font-weight: bold;
  margin-left: 15px;
  margin-top: -5px;
  margin-bottom: 0px;
}

#cent, #center {
  position: relative;
  top: -115px;
  left: 30%;
  font-size: 18px;
}
#cand, #candidate {
  position: relative;
  top: -183px;
  left: 65%;
  font-size: 18px;
}


.b {
  display: inline-block;
  height: 40px;
  width: 30px;
  border: 2px solid grey;
  margin: -1px;
}

  #cont2 {
  display: block;
  position: relative;
  top: -120px;
  border: 4px solid grey;
  border-radius: 25px;
  width: 90%;
  height: 196px;
  margin: auto;
  padding: 10px;
}   

h1 {
  font-size: 50px;
  margin-left: 15px;
  margin-top: 0px;
}
#paper {
  font-size: 36px;
  font-weight: bold;
  margin-left: 15px;
  margin-top: -30px;
  margin-bottom: 0px;
}

#tier {
  float: right;
  font-size: 36px;
  font-weight: bold;
  margin-left: 15px;
  margin-top: -5px;
  margin-bottom: 0px;
}

#divider {
  width:102%;
  margin-top: -25px;
  margin-left:-10px;
  margin-bottom: -18px;
    height: 0px;
  border: 2px solid grey;
}

#month, #year {
  display: inline-block;
  font-size: 36px;
  font-weight: bold;
  margin-left: 15px;
  margin-top: -48px;
}

#begin{
  display: inline-block;
  position: relative;
  font-size: 28px;
  height: 70px;
  width: 100px;
  border: 1px solid black;
  border-radius: 20px;
  float: right;
  bottom: 30%;
  top: -100px;
  left: 0;
  margin: 15px;
  text-align: center;
  padding-top: 20px;
  background-color: lightgrey;
  font-family: georgia;
  color: black;
}
#begin:hover {
  background-color:deepskyblue;
}
ul {
  font-size: 20px;
  margin-top: -112px;
  width: 70%;
}

#home {
  background-color: white;
  color: black;
  position: fixed;
  left: 1vw;
  top: 2vh;
  width: 100px;
  height: 45px;
  display: inline-block; 
  border: 1px black solid;
  border-radius: 5px;
  text-align: center;
  font-family: georgia;
  font-size: 35px;
}

#home:hover {
  background-color:deepskyblue;}


}
