.background {
  background-color: #f1f4f6;
}
.border {
  border-radius: 5px;
}
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
* {
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
}
html,
body {
  font-family: 'Dancing Script', cursive;
  color: #5E6164;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Meddon', cursive;
  color: #23293B;
}
h2 {
  font-size: 3.2rem;
  font-family: 'Meddon', cursive;
}
h3 {
  font-size: 4rem;
}
p {
  font-size: 1.6rem;
  line-height: 1.4;
}
.container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}
.nav-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f1f4f6;
  padding: 0px 0px 20px 0px;
  position: sticky;
  top: 0;
  z-index: 99999;
  opacity: 0.97;
}
.nav-bar h1 {
  font-size: 40px;
  padding: 15px;
  animation-name: flash;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.nav-bar nav a {
  text-decoration: none;
  color: black;
  padding: 10px;
  font-size: 18px;
}
@keyframes flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
footer {
  color: #22283B;
  background: #6e8e9c;
  padding: 20px 0;
  border: 1px double #e0e0e0;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.home .intro img {
  width: 100%;
  border-radius: 5px;
}
.home .intro h2 {
  padding: 15px;
  justify-content: center;
  padding: 30px;
}
.home .intro p {
  padding: 0 15px;
}
.home .diary-images {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.home .diary-images img {
  width: 28%;
  margin: 20px 2.5%;
  border-radius: 20px;
  height: auto;
}
@media (max-width: 500px) {
  .home .diary-images .ipad,
  .home .diary-images .iphone {
    display: none;
  }
  .home .diary-images .computer {
    width: 95%;
  }
  .home .intro h2 {
    display:flex;
    font-size: 2.3rem;
  }
}
.home .features {
  padding: 15px;
}
.home .features h3 {
  margin-top: 11px;
  @media (max-width: 500px) {
    display: flex;
    justify-content: center;
  } 
}

.home .features p {
  margin-top: 13px;
}
.home .learn-more {
  margin-top: 60px;
  border-top: 1px solid #dee2e6;
  padding: 50px 60px;
  display: flex;
  justify-content: center;
}
@media (max-width: 500px) {
  .home .learn-more {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }
}
.home .learn-more .learn-more-text {
  width: 50%;
}
@media (max-width: 500px) {
  .home .learn-more .learn-more-text {
    width: 100%;
    order: 2;
  }
}
.home .learn-more .learn-more-text h3 {
  margin-bottom: 10px;
}
.home .learn-more .learn-more-text p {
  margin-bottom: 26px;
}
.home .learn-more .learn-more-text .btn {
  border-radius: 5px;
  background-color: black;
  color: white;
  width: 90px;
  padding: 6px;
  font-size: 16px;
  text-align: center;
  margin-bottom: 10px;
  animation-name: flash;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@media (max-width: 500px) {
  .home .learn-more .learn-more-text .btn {
    border-radius: 5px;
    background-color: black;
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    text-align: center;
  }
}
.home .learn-more .learn-more-text .btn:hover {
  border-radius: 5px;
  background-color: #56a3f0;
  color: black;
  width: 90px;
  padding: 6px;
  font-size: 16px;
}
@media (max-width: 500px) {
  .home .learn-more .learn-more-text .btn:hover {
    border-radius: 5px;
    background-color: #56a3f0;
    color: black;
    width: 100%;
    padding: 15px;
    font-size: 16px;
  }
}
@keyframes flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
.home .learn-more .learn-more-img {
  width: 46%;
  margin-left: 4%;
}
@media (max-width: 500px) {
  .home .learn-more .learn-more-img {
    margin: 20px 2.5%;
    width: 100%;
    order: 1;
  }
}
.home .learn-more .learn-more-img img {
  width: auto;
  height: 85%;
  border-radius: 10px;
}
.contact {
  width: 100%;
  height: 500px;
  background-size: cover;
  padding-top: 80px;
  margin-top: -10px;
  background-color: #f1f4f6;
}
@media (max-width: 500px) {
  .contact {
    background-size: cover;
  }
}
form {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: 500px;
  background: rgba(130, 130, 130, 0.3);
  padding: 20px 22px;
  border: 1px solid;
  border-top-color: rgba(255, 255, 255, 0.4);
  border-left-color: rgba(255, 255, 255, 0.4);
  border-bottom-color: rgba(60, 60, 60, 0.4);
  border-right-color: rgba(60, 60, 60, 0.4);
}
@media (max-width: 500px) {
  form {
    width: 100%;
  }
}
form input,
form button {
  width: 450px;
  border: 1px solid;
  border-bottom-color: rgba(255, 255, 255, 0.5);
  border-right-color: rgba(60, 60, 60, 0.35);
  border-top-color: rgba(60, 60, 60, 0.35);
  border-left-color: rgba(80, 80, 80, 0.45);
  background-color: rgba(0, 0, 0, 0.2);
  background-repeat: no-repeat;
  padding: 8px 24px 8px 10px;
  letter-spacing: 0.075em;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 19px;
}
@media (max-width: 500px) {
  form input,
  form button {
    width: 100%;
  }
}
form input:focus {
  background-color: rgba(0, 0, 0, 0.4);
}
@keyframes hover {
  from {
    background-color: white;
  }
  to {
    background-color: green;
  }
}
