html {
  font-size: 10px;
  font-family: monospace;
  padding: 0;
  margin: 0;
  /*paralax effect*/
  height: 100%;
  overflow: hidden;
}

body {
  background-color: black;
  /*paralax effect*/
  margin: 0;
  padding: 0;
  perspective: 1px;
  transform-style: preserve-3d;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  font-family: monospace;
}

/*paralax effect*/

header {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 30vw 0 5vw;
  position: relative;
  transform-style: inherit;
  width: 100vw;
}

header h1 {
  position: relative;
  left: 50px;
  margin-top: -100px;
  color: white;
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 0.2em;
  padding: 1em 0;
}

header,
header:before {
  background: 50% 50% / cover;
}

header::before {
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  display: block;
  background-image: url(images/bg.png);
  background-size: cover;
  transform-origin: center center 0;
  transform: translateZ(-1px) scale(2);
  z-index: -1;
  min-height: 100vh;
}

/*paralax effect end*/

.outer-container1,
.outer-container2 {
  display: flex;
  height: 100vh;
  background: black;
  justify-content: space-evenly;
  flex-direction: column;
  position: relative;
  z-index: 3;
}

.header-container,
.footer-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  color: whitesmoke;
  flex: 1;
}

#header {
  font-size: 10rem;
  flex: 3;
  font-family: "Long Cang", cursive;
  animation-name: beam;
  animation-duration: 5s;
  animation-iteration-count: infinite;
}

@keyframes beam {
  0% {
    color: orange;
  }
  25% {
    color: darkorange;
  }
  50% {
    color: red;
  }
  75% {
    color: darkorange;
  }
  100% {
    color: orange;
  }
}

#subheader {
  flex: 1;
  color: whitesmoke;
}

.img-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  max-width: auto;
  flex: 4;
  opacity: 0.7;
  box-shadow: 0px 0px 10px 10px grey;
}

.img-container::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  background: white;
  z-index: -3;
  filter: blur(40px);
}

.img-container::before,
.img-container::after {
  background: linear-gradient(
    135deg,
    #fe0000,
    #fdfe02,
    #0bff01,
    #011efe,
    #fe00f6
  );
}

#image {
  order: 2;
  height: 378px;
}

#image2 {
  order: 1;
  height: 378px;
}

#image3 {
  order: 3;
  height: 378px;
}

#quote {
  margin: 0;
  padding: 0;
  text-align: center;
  display: block;
  font-size: 2rem;
  color: darkgray;
  flex: 1;
}

#timeline {
  background: url(images/seoulbg.jpg) no-repeat center center/cover;
}

#timeline #darken {
  background: rgba(0, 0, 0, 0.7);
}

#timeline-header {
  color: white;
  text-align: center;
  font-family: "Long Cang", cursive;
  font-size: 5rem;
  animation-name: beam;
  animation-duration: 3s;
  animation-iteration-count: infinite;
}

.timeline-container {
  position: relative;
  margin: 50px auto;
  padding: 0;
  width: 90vw;
}

.timeline-container:before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(135deg, red, blue);
}

.timeline-container ul {
  margin: 0;
  padding: 0;
}

.timeline-container ul li {
  list-style: none;
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-container ul li:nth-child(odd) {
  margin-right: auto;
  text-align: right;
}

.timeline-container ul li:nth-child(even) {
  margin-left: auto;
  text-align: left;
}

.timeline-container ul li:nth-child(odd):before {
  content: "";
  position: absolute;
  top: 24px;
  right: -6px;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 0;
  box-shadow: 0 0 0 3px red;
}

.timeline-container ul li:nth-child(odd):hover:before,
.timeline-container ul li:nth-child(even):hover:before {
  animation: backgroundbeam 5s, rotation 2s;
  animation-iteration-count: infinite;
}

@keyframes rotation {
  50% {
    transform: rotate(45deg);
  }
  100% {
    transform: rotate(90deg);
  }
}

@keyframes backgroundbeam {
  0% {
    background: red;
  }
  50% {
    background: yellow;
  }
  100% {
    background: red;
  }
}

.timeline-container ul li:nth-child(even):before {
  content: "";
  position: absolute;
  top: 24px;
  left: -6px;
  width: 12px;
  height: 12px;
  background: white;
  box-shadow: 0 0 0 3px red;
}

.timeline-content {
  padding-bottom: 30px;
}

.timeline-container ul li h3 {
  margin: 0;
  padding: 0;
  font-weight: 600;
  color: red;
  font-size: 14px;
}

.timeline-container ul li p {
  margin: 10px 0;
  padding: 0;
  color: white;
  font-size: 14px;
}

.timeline-container ul li .time h4 {
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.timeline-container ul li:nth-child(odd) .time {
  position: absolute;
  top: 10px;
  right: -110px;
  margin: 0;
  padding: 8px 16px;
  border-radius: 18px;
  box-shadow: 0 0 0 3px red;
  color: white;
  transition: background-color 0.5s;
}

.timeline-container ul li:nth-child(even) .time {
  position: absolute;
  top: 10px;
  left: -110px;
  margin: 0;
  padding: 8px 16px;
  border-radius: 18px;
  box-shadow: 0 0 0 3px red;
  color: white;
  transition: background-color 0.5s, color 0.5s;
}

.timeline-container ul li:nth-child(even):hover .time,
.timeline-container ul li:nth-child(odd):hover .time {
  color: black;
  background-color: red;
}

.footer p {
  color: white;
  text-align: center;
  margin: 20px;
}

.footer p a {
  padding: 5px;
  text-decoration: none;
  color: red;
  border-width: 2px;
  border-radius: 5px;
  transition: background-color 0.5s;
}

.footer p a:hover {
  background-color: grey;
}

.ending-container {
  max-width: 100vw;
  height: 100vh;
  margin: 0 auto;
  background: black;
  font-size: 24px;
}

.parallax {
  background: url(images/endbg.jpg) no-repeat center;
  background-size: cover;
  background-attachment: fixed;
  height: 20vh;
  width: 20vw;
  text-align: center;
  top: 50%;
}

.parallax span {
  position: relative;
  color: red;
  top: 50%;
}

.parallax:hover {
  animation-name: reveal;
  animation-duration: 3s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes reveal {
  0% {
    opacity: 0.1;
    height: 20vh;
    width: 20vw;
  }
  100% {
    opacity: 1;
    height: 100vh;
    width: 100vw;
  }
}

button {
  border: none;
  font-family: monospace;
  font-size: 24px;
  color: red;
  outline: none;
}

@media (max-width: 1100px) {
  .timeline-container {
    max-width: 100%;
  }
  .img-container {
    overflow-y: visible;
    overflow-x: scroll;
    justify-content: left;
    box-shadow: none;
  }
  .img-container::before,
  .img-container::after {
    display: none;
  }
}
@media (max-width: 767px) {
  header {
    background: url(images/mbg.jpg) no-repeat center;
    background-size: cover;
    background-attachment: scroll;
    height: 100vh;
    width: 100vw;
    text-align: center;
  }
  header h1 {
    left: auto;
    right: auto;
    color: yellow;
  }
  header::before {
    display: none;
  }

  #timeline {
    background: black;
  }
  #timeline-header {
    font-size: 20px;
  }
  .timeline-container ul li h3 {
    text-align: left;
    font-size: 20px;
  }
  .timeline-container {
    width: 100%;
    padding-bottom: 0;
  }
  .timeline-container:before {
    left: 20px;
  }
  .timeline-container ul li:nth-child(odd),
  .timeline-container ul li:nth-child(even) {
    width: 100%;
    text-align: left;
    padding: 50px;
  }
  .timeline-container ul li:nth-child(odd)::before,
  .timeline-container ul li:nth-child(even)::before {
    top: 0;
    left: 16px;
  }
  .timeline-container ul li:nth-child(odd) .time,
  .timeline-container ul li:nth-child(even) .time {
    left: 50px;
    top: -10px;
    right: inherit;
  }

  .parallax {
    background: url(images/mendbg.jpg) no-repeat center;
    background-size: cover;
    background-attachment: scroll;
    height: 100vh;
    width: 100vw;
    text-align: center;
    top: 50%;
  }

  .parallax:hover {
    animation-name: none;
  }
}
