
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
  background: #000;
}

/* From Uiverse.io by ZacharyCrespin */
@keyframes square-animation {
  0% {
    left: 0;
    top: 0;
  }

  10.5% {
    left: 0;
    top: 0;
  }

  12.5% {
    left: 32px;
    top: 0;
  }

  23% {
    left: 32px;
    top: 0;
  }

  25% {
    left: 64px;
    top: 0;
  }

  35.5% {
    left: 64px;
    top: 0;
  }

  37.5% {
    left: 64px;
    top: 32px;
  }

  48% {
    left: 64px;
    top: 32px;
  }

  50% {
    left: 32px;
    top: 32px;
  }

  60.5% {
    left: 32px;
    top: 32px;
  }

  62.5% {
    left: 32px;
    top: 64px;
  }

  73% {
    left: 32px;
    top: 64px;
  }

  75% {
    left: 0;
    top: 64px;
  }

  85.5% {
    left: 0;
    top: 64px;
  }

  87.5% {
    left: 0;
    top: 32px;
  }

  98% {
    left: 0;
    top: 32px;
  }

  100% {
    left: 0;
    top: 0;
  }
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -48px;
  margin-left: -48px;
  width: 96px;
  height: 96px;
  transform: rotate(45deg);
  transition: opacity 0.5s ease-in-out;
}

.loader-square {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin: 2px;
  border-radius: 0px;
  background: white;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  animation: square-animation 10s ease-in-out infinite both;
}

.loader-square:nth-of-type(0) {
  animation-delay: 0s;
}

.loader-square:nth-of-type(1) {
  animation-delay: -1.4285714286s;
}

.loader-square:nth-of-type(2) {
  animation-delay: -2.8571428571s;
}

.loader-square:nth-of-type(3) {
  animation-delay: -4.2857142857s;
}

.loader-square:nth-of-type(4) {
  animation-delay: -5.7142857143s;
}

.loader-square:nth-of-type(5) {
  animation-delay: -7.1428571429s;
}

.loader-square:nth-of-type(6) {
  animation-delay: -8.5714285714s;
}

.loader-square:nth-of-type(7) {
  animation-delay: -10s;
}

.container {
  position: relative;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
  width: 1440px;
  height: 3559px;
  background: #010001;
  margin: 0 auto;
  font-family: 'Roboto';
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 123px;
}

.logo {
  width: 138px;
  height: 16px;
}

.lang-button {
  display: flex;
  align-items: center;
  padding: 3px 15px;
  background-color: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
}

.lang-button:hover {
  background-color: white;
  color: black;
}

.lang-button:active {
  transform: translateY(1px);
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  width: 1231px;
  height: 17px;
}

.nav {
  gap: 20px;
  display: flex;
  list-style: none;
}

.second-row {
  display: flex;
  margin: auto;
}

.link {
  text-decoration: none;
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #fff;
}

.gray-text {
  color: #808080;
}

.main-content {
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.main-text {
  position: absolute;
  top: 190px;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.falcon-heavy {
  font-weight: 400;
  font-size: 64px;
  line-height: 100%;
}

.flacon-sub {
  font-weight: 300;
  font-size: 16px;
  line-height: 140%;
  text-align: center;
  width: 268px;
  height: 44px;
}

.line {
  position: absolute;
  top: 361px;
  width: 59px;
  height: 1.5px;
  transform: rotate(90deg);
  z-index: 2;
}

.earth {
  position: absolute;
  width: 1437px;
  height: 1006px;
  top: 361px;
  z-index: 1;
}

.rocket {
  position: absolute;
  width: 644px;
  height: 1718px;
  top: 1307px;
  left: 691px;
}

.over {
  position: absolute;
  font-weight: 700;
  font-size: 24px;
  line-height: 140%;
  width: 177px;
  left: 149px;
  text-transform: uppercase;
}

.specs-all {
  display: flex;
  font-weight: 400;
  font-size: 18px;
  line-height: 180%;
  position: absolute;
  top: 1865px;
}

.specs-name {
  display: flex;
  align-items: start;
  flex-direction: column;
  margin-top: 113px;
  margin-left: 149px;
  gap: 11px
}

.specs {
  display: flex;
  align-items: end;
  flex-direction: column;
  margin-top: 113px;
  margin-left: 149px;
  gap: 11px
}

.description {
  font-weight: 400;
  font-size: 16px;
  line-height: 180%;
  width: 630px;
  height: 145px;
  position: absolute;
  top: 2443px;
}

.overview-text {
  margin-top: 113px;
  margin-left: 149px;
}

.social-media {
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
}

.footer-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;

}

.social-media {
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
}

.spacex1 {
  width: 138px;
  height: 17px;
}

.contact-button {
  width: 260px;
  height: 60px;
  background-color: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
}

.contact-button:hover {
  background-color: white;
  color: black;
}

.contact-button:active {
  transform: translateY(1px);
}

@media screen and (max-width: 1439px) {
  .container {
    position: relative;
    width: 768px;
  }

  .earth {
    width: 768px;
    height: 536px;
  }

  .rocket {
    position: absolute;
    top: 870px;
    left: 195px;
    width: 368px;
    height: 982px;
  }
}

@media screen and (max-width: 767px) {
  .container {
    width: 360px;
    height: 2500px;
    margin: 0 auto;
    overflow-x: hidden;
  }

  .header {
    height: 80px;
  }

  .header-content {
    width: 90%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

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

  .nav {
    gap: 5px;
  }

  .link {
    font-size: 10px;
  }

  .main-content {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .main-text {
    position: absolute;
    top: 150px;
    width: 90%;
  }

  .falcon-heavy {
    font-size: 32px;
    text-align: center;
  }

  .flacon-sub {
    font-size: 12px;
    text-align: center;
    width: 80%;
    height: auto;
  }

  .line {
    position: absolute;
    top: 300px;
    width: 40px;
    height: 1.5px;
    transform: rotate(90deg);
    z-index: 2;
  }

  .earth {
    position: absolute;
    width: 100%;
    height: auto;
    top: 300px;
    left: 0;
    z-index: 1;
  }

  .rocket {
    position: absolute;
    width: 280px;
    height: auto;
    top: 700px;
    left: 50%;
    transform: translateX(-50%);
  }

  .over {
    font-size: 18px;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    text-transform: uppercase;
    text-align: center;
  }

  .specs-all {
    display: flex;
    flex-direction: row;
    font-size: 12px;
    line-height: 180%;
    position: absolute;
    top: 1500px;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    justify-content: space-around;
  }

  .specs-name {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-top: 50px;
    margin-left: 0;
    gap: 8px;
  }

  .specs {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    margin-top: 50px;
    margin-left: 0;
    gap: 8px;
  }

  .description {
    font-size: 12px;
    width: 90%;
    height: auto;
    position: absolute;
    top: 2000px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 10px;
  }

  .overview-text {
    margin-top: 0;
    margin-left: 0;
  }

  .footer-content {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .social-media {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 10px;
  }

  .spacex1 {
    width: 100px;
    height: auto;
  }

  .contact-button {
    width: 200px;
    height: 45px;
    font-size: 16px;
  }

  .lang-button {
    padding: 5px 7px;
    font-size: 20px;
  }
}