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;
}

body {
  background-color: #e8e5e0;
}

.video-container {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  transform-origin: top center;
  animation: shrinkit 3.5s cubic-bezier(0.83, 0, 0.17, 1) 1.5s forwards;
}

#trainVideo {
  transition: all 0.3s ease-in-out;
  position: fixed;
  transform: translate(50%);
  right: 50%;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
}

.logo {
  margin: 16px auto;
  width: 60px;
  height: 60px;
}

.logo video {
  width: 60px;
  height: 60px;
}

.hero-content {
  color: #e8e5e0;
  position: relative;
  z-index: 2;
  text-align: center;
  top: 40%;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 64px;
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-content .word {
  opacity: 0;
  filter: blur(10px);
}

.hero-content .subtitle {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 24px;
  font-weight: 500;
  animation: unblurit 1.2s ease-in-out 5s forwards;
  opacity: 0;
  line-height: 1.6em;
}

.hero-content .word:first-of-type {
  animation: unblurit 0.9s ease-in-out 4.6s forwards;
}

.hero-content .word:nth-of-type(2) {
  animation: unblurit 0.9s ease-in-out 4.8s forwards;
}

.hero-content .word:nth-of-type(3) {
  animation: unblurit 0.9s ease-in-out 5s forwards;
}

.pause {
  position: absolute;
  opacity: 0;
  width: 80px;
  height: 80px;
  right: 60px;
  top: 60px;
  z-index: 2;
  display: flex;
  justify-content: space-around;
  align-items: center;
  animation: blinkit 1.2s ease-in-out 4.2s infinite;
}

.pause .pause-bar {
  background-color: rgba(222, 218, 212, 0.9);
  width: 24px;
  height: 60px;
  border-radius: 2px;
  box-shadow: 1px 2px 0 rgba(38, 255, 0, 0.4);
}

@keyframes shrinkit {
  0% {
    margin: 0 auto;
    border-radius: 4px;
    transform: translate(-50%, -50%) scale(1);
    height: 100%;
  }

  100% {
    margin: 100px auto;
    border-radius: 20px;
    transform: translate(-50%, -50%) scale(0.8);
    height: 450px;
  }
}

@keyframes blinkit {
  0% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes unblurit {
  0% {
    opacity: 0;
    filter: blur(10px);
  }

  100% {
    opacity: 0.94;
    filter: blur(0px);
  }
}

@media screen and (max-width: 540px) {
  .hero-content {
    top: 35%;
  }

  .hero-content h1 {
    font-size: 40px;
    max-width: 90%;
    margin: 0 auto 20px;
  }

  .hero-content .subtitle {
    font-size: 20px;
    max-width: 90%;
    margin: 0 auto;
  }

  .pause {
    right: 30px;
    top: 30px;
  }
}
