    *{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    overflow-x: hidden;
    background-image: url(img/japan-background_bw.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }

.site{
    height: 4700px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.hero{
    width: 100%;
    height: 300px;
    display: flex;
    flex-wrap: wrap;
    padding-top: 100px;
}

.hero__text{
    height: 300px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    color: darkred;
    font-size: 130px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;
    text-align: center;
    align-items: center;
    justify-content: center;
    letter-spacing: 30px;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
    }

.hero__japanese{
    width: 50%;
    height: 300px;
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: auto;
    color: darkred;
    font-size: 30px;
    animation: fadeIn 1s ease-in forwards;
}

.hero__lived{
    width: 50%;
    height: 300px;
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: auto;
    color: darkred;
    font-size: 30px;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


a{
  width: 100px;
  height: 100px;
  justify-content: center;
  align-items: center;
  display: flex;
  margin: auto;
  border: 0;
  border-radius: 100%;
  border: 0;
  font-size: 50px;
  justify-content: center;
  background: white;
  text-decoration: none;
  color: black;
}

button{
    border-radius: 100%;
}

.button{
  width: 100%;
  height: 100px;
  position: absolute;
  margin-top: 750px;
  display: flex;
  justify-content: center;
  border-radius: 100%;
}

a:hover {
  background-color: darkred
}

a:active {
  background-color: darkred;
  transform: translateY(4px);
}

.main{
  width: 100%;
  height: 2200px;
  display: flex;
}

.hirohito-achievements{ 
    display: flex;
    width: 100%;
    height: 2200px;
    margin: auto;
    margin-top: 700px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: darkred;
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 50px auto;
  }

  .container {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    opacity: 0; 
    transform: translateY(20px);
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
    padding-bottom: 150px;
  }

  .container.show {
    opacity: 1;
    transform: translateY(0);
  }

  .text-box {
    padding: 20px 30px;
    background: #f0f0f0;
    position: relative;
    border-radius: 6px;
  }

  .left-container {
    left: 0;
  }

  .right-container {
    left: 50%;
  }

  .container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background: #fff;
    border: 4px solid #ccc;
    top: calc(50% - 13px);
    border-radius: 50%;
    z-index: 1;
  }

  .right-container::after {
    left: -16px;
  }

  .timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    background: #ccc;
    top: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 0;
  }

  .scroll{
    margin-top: 2000px;
  }

  .box{
    width: 100%;
    height: 1000px;
    margin-top: 2800px;
    background-color: rgb(47, 47, 47);
    position: absolute;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
  }

  .box__h1{
    font-size: 70px;
    text-align: center;
    font-weight: bolder;
    padding-top: 100px;
  }

  .box__text{
    padding-top: 40px;
    padding-left: 300px;
    padding-right: 300px;
    text-align: justify;
  }

  .video-box{
    width: 100%;
    height: 800px;
    margin-top: 3800px;
    background-color: darkred;
    position: absolute;
  }

    .video-box__text{
    font-size: 70px;
    text-align: center;
    font-weight: bolder;
    padding-top: 100px;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
  }

  .video-box__frame{
    position: absolute;
    width: 100%;
    height: 500px;
    background-color: white;
    justify-content: center;
    align-items: center;
    margin: auto;
    display: flex;
  }
  
@media (max-width: 600px) {


  .hero {
    height: auto;
    padding-top: 40px;
    flex-direction: column;
  }

  .site{
    height: auto;
  }
  .hero__text {
    font-size: 30px;
    letter-spacing: 10px;
    height: auto;
    margin-bottom: 10px;
  }

  .hero__japanese, .hero__lived {
    width: 100%;
    font-size: 20px;
    height: auto;
    margin: 5px 0;
  }

  .button {
    position: static;
    margin-top: 20px;
    height: 80px;
  }

  a#scrollBtn {
    width: 70px;
    height: 70px;
    font-size: 30px;
  }

  .main {
    flex-direction: column;
    height: auto;
  }

  .hirohito-achievements {
    margin-top: 20px;
    height: auto;
    font-size: 13px;
  }

  .timeline {
    max-width: 100%;
    margin: 20px auto;
    padding: 0 10px;
  }

  .container {
    width: 100%;
    padding: 0;
    margin: 0;
  }

    .right-container {
    left: 0%;
  }

  .container::after {
    display: none; 
  }

  .timeline::before {
    left: 20px; 
  }

  .text-box {
    padding: 15px 20px;
  }

  .box {
    position: static;
    margin-top: 40px;
    height: auto;
    padding: 20px;
  }

  .box__h1 {
    font-size: 40px;
    padding-top: 20px;
  }

  .box__text {
    padding: 15px;
    font-size: 16px;
  }

  .video-box {
    position: static;
    margin-top: 40px;
    height: auto;
  }

  .video-box__text {
    font-size: 40px;
    padding-top: 20px;
  }

  .video-box__frame iframe {
    width: 100%;
    height: 250px;
  }

    .scroll{
    margin-top: auto;
  }

}

@media screen and (max-width: 1024px) and (min-width: 601px) {
  body {
    background-size: cover;
    background-attachment: scroll;
  }

  .hero {
    flex-direction: column;
    padding-top: 60px;
    height: auto;
  }

  .hero__text {
    font-size: 60px;
    letter-spacing: 8px;
    height: auto;
    margin: 0 auto;
    text-align: center;
  }

  .hero__lived,
  .hero__japanese {
    font-size: 22px;
    width: 100%;
    height: auto;
    text-align: center;
    margin-top: 10px;
  }

  .button {
    margin-top: 400px;
    height: auto;
  }

  a {
    width: 70px;
    height: 70px;
    font-size: 40px;
  }

  .main {
    flex-direction: column;
    height: auto;
  }

  .hirohito-achievements {
    margin-top: 100px;
    padding: 20px 10px;
    flex-direction: column;
    height: auto;
  }

  .timeline {
    max-width: 100%;
    padding: 0 15px;
  }

  .container {
    width: 100%;
    padding: 10px 0;
  }

  .left-container,
  .right-container {
    left: 0 !important;
  }

  .container::after {
    left: auto;
    right: -10px;
  }

  .timeline::before {
    left: 10px;
  }

  .box {
    margin-top: 100px;
    height: auto;
    padding: 20px;
    position: relative;
  }

  .box__h1 {
    font-size: 40px;
    padding-top: 40px;
  }

  .box__text {
    padding: 20px;
    font-size: 16px;
  }

  .video-box {
    margin-top: 100px;
    height: auto;
    padding-bottom: 40px;
    position: relative;
  }

  .video-box__text {
    font-size: 40px;
    padding-top: 40px;
  }

  .video-box__frame {
    height: auto;
    aspect-ratio: 16 / 9;
    padding: 20px;
  }

  iframe {
    width: 50%;
    height: 50%;
  }

      .scroll{
    margin-top: auto;
  }

  .site{
    height: auto;
  }
}