@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;500;600;900&display=swap');

* {
  margin: 0;
  padding: 0;
  font-family: 'Inconsolata', monospace;

}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  min-height: 100vh;
}

section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url(img/background-image-galaxy\ \(1\).gif);
  background-attachment: fixed;
  clip-path: circle(0px at center);
}

.container {
  position: relative;
  margin-top: 200vh;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100em;
  height: 127em;
  overflow-x: hidden;
}

.title {
  position: relative;
  top: 250px;
  z-index: 1;
  font-size: 1.5rem;
  text-align: 3em;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  margin-left: 5em;
  right: 5em;
  line-height: 1.3em;
  margin-left: 10em;
  text-transform: uppercase;
  background-image: url(img/background-image-galaxy\ \(1\).gif);
  background-size: cover;
  -webkit-background-clip: text;
  color: transparent;
}


@media screen and (max-width: 1100px) {

  .title {
    top: 220px;
  }
}


@media screen and (max-width: 850px) {

  .title {
    top: 200px;
  }
}

@media screen and (max-width: 768px) {

  .title {
    top: 150px;
    margin-left: 7em;
    right: 7em;
    flex-wrap: wrap;
    display: flex;
    padding: 0 1em;
  }
}

@media screen and (max-width: 620px) {
.title {
    top: 100px;
}

h1 {
  margin-bottom: 12.5em !important;
}
}

@media screen and (max-width: 570px) {

  .title {
    top: 50px;
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 570px)
.title {
    top: 50px;
    font-size: 1.3rem;
}

@media screen and (max-width: 414px) {
  .title {
    top: 190px;
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 380px) {
  .title {
    top: 160px;
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 230px) {
  .title {
    top: 150px;
  }
}

.card {
  position: relative;
  width: 300px;
  height: 350px;
  margin: 20px;
  border-radius: 20px;
  transition: 0.5s;
  transition-delay: 0.5s;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: -34em;
}

.card:hover {
  width: 600px;
  transition-delay: 0s;
}

.card .circle {
  position: absolute;
  top: 9;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card .circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(/img/background-image-galaxy\ \(1\).gif);
  clip-path: circle(120px at center);
  transition: 0.5s;
}

.card:hover .circle::before {
  clip-path: circle(400px at center);
}

.card .circle .logo {
  position: relative;
  width: 140px;
  transition: 0.5s;
  transition-delay: 0.5s;
}

.card:hover .circle .logo {
  transform: scale(0);
  transition-delay: 0s;
}

.content {
  position: relative;
  width: 50%;
  left: 20%;
  padding: 20px 20px 20px 40px;
  opacity: 0;
  transition: 0.5s;
  visibility: hidden;
}

.card:hover .content {
  left: 0;
  opacity: 1;
  visibility: visible;
  transition-delay: 0.5s;
}

.content h2 {
  color: #fff;
  text-transform: uppercase;
  font-size: 2rem;
  line-height: 1em;
}

.content p {
  color: #fff;
}

.content a {
  position: relative;
  color: #111;
  background: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  margin-top: 20px;
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  transition: .5s;
}

.content a:hover {
  opacity: .8;
  transform: scale(1.1);
}

.card .rocket {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  height: 500px;
  transition: 1s;
  transition-delay: 0s;
}

.card:hover .rocket {
  left: 125%;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.5s;
}

.card .sheldon {
  position: absolute;
  top: 21%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  height: 500px;
  transition: 0.5s;
  transition-delay: 0s;
}

.card:hover .sheldon {
  left: 125%;
  transform: translate(-50%, -50%) scale(1);
  transition: 1s;
  transition-delay: 0.5s;
}

#h2 {
  font-size: 2rem;
}

h1 {
  position: absolute;
  margin-bottom: 8em;
  font-size: 10rem;
  font-weight: 900;
  background-image: url(img/background-image-galaxy\ \(1\).gif);
  background-size: cover;
  -webkit-background-clip: text;
  color: transparent;
  text-transform: uppercase !important;
}

#check {
  display: none;
}

.add-content p {
  margin-bottom: 5em;
}

.add-content {
  display: none;
  transition: .5s linear;
}

#check:checked~.add-content {
  display: block;
}

#check:checked~.card {
  height: 600px;
}

.vid {
  position: absolute;
  top: 60em;
  bottom: 10em;
  padding-bottom: 10em;
  border-radius: 20px;
  display: flex;
  flex-flow: wrap;
}

iframe {
  border-radius: 1em;
  display: flex;
}

footer {
  position: absolute;
  margin-top: 80em;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: 5em;
  text-align: center;
}


@media (max-width: 991px) {
  .card {
    width: auto;
    max-width: 350px;
    align-items: flex-start;
    margin-bottom: -20em;
  }

  .card:hover {
    height: 600px;
  }

  .card:hover .rocket {
    top: initial;
    border: 30px;
    left: 50%;
    transform: translate(-50%, -50% scale(1));
    height: 200px;
    bottom: -16em;
  }

  .rocket {
    height: 100px;
  }

  .card .content {
    width: 100%;
    left: 0;
    padding: 40px;
  }

  .card:hover .sheldon {
    top: initial;
    border: 30px;
    left: 50%;
    transform: translate(-50%, -50% scale(1));
    height: 250px;
    bottom: -20em;
  }

  .vid {
    top: 90em;
  }

  footer {
    margin-top: 120em;
  }

  .container {
    height: 160em;
  }

  h1 {
    margin-bottom: 10em;
  }

  .card {
    margin-bottom: 0px;
  }

  footer {
    margin-top: 105em;
  }

  .card .sheldon {
    position: absolute;
    top: 134% !important;
    transition: 2s;
}

.card .circle::before #check:hover {
  content: '';
  height: 500px;
}

@media (max-width: 900px) {
  .card:hover {
    height: 600px;
    margin-top: 1em;
  }

  .vid {
    top: 105em;
  }

  footer {
    margin-top: 120em;
  }
}

@media (max-width: 840px) {

  .card {
    margin-top: -50em;
  }

  .vid {
    top: 105em;
  }

  footer {
    margin-top: 120em;
  }
}

@media screen and (max-width: 800px) {
  #card-2 {
    margin-top: -50em;
  }

  .vid {
    top: 100em;
  }
}

@media screen and (max-width: 768px) {

  iframe {
    width: 100%;
    height: 100%;
  }

  #card-1 {
    margin-top: 20em;

  }

  #card-2 {
    margin-top: -75em;
  }

  .title {
    margin-left: 14em;
  }

  .vid {
    top: 120em;
    width: 75%;
  }

  footer {
    margin-top: 140em;
  }

}

@media screen and (max-width: 640px) {
  h1 {
    font-size: 8rem;
  }
}

@media screen and (max-width: 530px) {
  h1 {
    font-size: 7rem;
    margin-top: -5em;
  }
}

@media screen and (max-width: 500px) {
  h1 {
    font-size: 5rem;
    margin-top: -10em;
  }

  .title {
    top: 60px;
    font-size: 1.2rem;
}
}

@media screen and (max-width: 420px) {
.title {
    top: 60px;
    font-size: 1.1rem;
}

  @media screen and (max-width: 400px) {
    h1 {
      font-size: 5rem;
      margin-top: -10em;
      margin-left: 0.09em;
    }
  }

  @media screen and (max-width: 360px) {
    h1 {
      font-size: 4rem;
      margin-top: -17em;
    }

    .title {
      font-size: 1rem;
      top: 4em;
  }
  }
 