@font-face {
  font-family: Roboto;
  src: url('fonts/Roboto-Regular.ttf');
  font-display: swap;
}

@font-face {
  font-family: Yesteryear;
  src: url('fonts/Yesteryear-Regular.ttf');
  font-display: swap;
}

html{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: start;
  height: 100%;
  min-height: 100vh;
  background-color: #f7f7f7;
  background-image: url('bg.jpg');
}

body{
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.2em;
  background-color: #fff;
  margin: 2em 1em;
  padding: 1em;
  -webkit-box-shadow: -8px 20px 25px 0 rgba(25,42,70,.3);
  box-shadow: -8px 20px 25px 0 rgba(25,42,70,.3);
  max-width: 55em;
}

h1{
  margin: 1em 0em;
  line-height: 1.2em;
}

p{
  color: #444;
}

#message_ending{
  text-align: right;
  margin: 2em 0em;
}

#signature{
  font-family: 'Yesteryear', cursive;
  font-size: 1.2em;
  color: #000;
}

footer{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  border-top: 1px solid #5555;
  color: #555;
  font-style: italic;
  font-size: 1em;
  margin-top: 1em;
}

@media only screen and (min-width: 550px) {
  body{
    padding: 2em 4em;
  }
}

@media only screen and (min-width: 768px) {
  html{
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
    
  body{
    font-size: 1.1em;
    line-height: 1.5em;
    padding: 4em 6em;
  }
        
  footer{
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 2em;
  }
            
  footer p:first-child{
    margin-right: 1em;
  }
}