@import url(rules.css);
/* PC */
@media screen and (min-width: 461px) {

    .titles_box {
  width: 663px;
  display: flex;
  flex-direction: column;
}

   .timeline_titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 24px;
} 
  .sections_cards {
    display: grid;
    justify-content: center;
    gap: 32px;
    row-gap: 80px;
    width: 976px;
    grid-template-columns: repeat(6, 120px);
    grid-template-rows: repeat(4, 280px);
  }
  .sections {
    width: 100%;
  }

  .sections_titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 160px;
  }

  .sections_content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sections_cards_wrapper {
    width: 100%;
    height: 1832px;
    display: flex;
    justify-content: center;
    background-image: url(images/sword_1.png);
    background-repeat: no-repeat;
    background-size: 80%;
    background-position: center;
  }

  .flip_card {
    width: 305px;
    height: 367px;
  }

  .flip-card-inner {
    width: 305px;
    height: 305px;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }

  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }

  .flip-card-front,
  .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
  }

  .flip-card-front {
    background-color: var(--yanwu-red-BG);
    display: flex;
    flex-direction: column;
    text-align: left;
  }

  .flip-card-back {
    background-color: var(--yanwu-red);
    color: white;
    transform: rotateY(180deg);
  }

  .flip-card-back p {
    font-size: 16px;
    font-weight: 500px;
    padding: 32px;
    text-align: left;
  }

  .flip-card-back button {
    height: 56px;
    width: 276px;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 16px;
  }

  .flip-card-back a {
    color: var(--yanwu-black);
  }

  .card_grid_1 {
    grid-column-start: 2;
    grid-row-start: 1;
  }
  .card_grid_2 {
    grid-column-start: 5;
    grid-row-start: 2;
  }
  .card_grid_3 {
    grid-column-start: 1;
    grid-row-start: 3;
  }

  .card_grid_4 {
    grid-column-start: 4;
    grid-row-start: 4;
  }

  .card_2 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .card_4 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .card_1_content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 305px;
    width: 305px;
    border-radius: 20px;
    background-color: var(--yanwu-black);
  }

  .card_1_content:hover {
    background-color: var(--yanwu-white);
    transition: all 0.3s ease;
  }
  .features_text {
    width: 816px;
  }

  .features_titles {
    width: 1322px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .features_content {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .features_cards {
    display: flex;
    flex-direction: row;
    gap: 32px;
    margin-top: 80px;
  }

  .features_card_1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 305px;
    width: 305px;
    background-color: var(--yanwu-red-BG);
    border-radius: 20px;
  }
}

/* PHONE */
@media screen and (max-width: 460px) {
  header {
    display: none;
  }

  #form {
    display: flex;
    flex-direction: column;
    margin-top: 62px;
  }

  .form_button {
    margin-top: 15px;
    width: auto;
  }

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

  body {
    padding: 32px;
  }

  footer {
    display: flex;
    padding: 32px;
  }

  .footer_content {
    flex-direction: column-reverse;
    width: auto;
    gap: 0;
  }
  .footer_info {
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    border: 0;
    padding-top: 0;
  }

  .footer_menu {
    flex-direction: column;
    border: 0;
  }

  .hero h1 {
    font-size: 48px;
  }

  h5 {
    font-size: 20px;
    width: 30%;
  }
  h6 {
    font-size: 16px;
  }

  h1 {
    font-size: 28px;
  }

  h3 {
    font-size: 16px;
  }

  p {
    font-size: 20px;
  }
  #hero {
    width: auto;
    background-size: 150%;
    padding: 0;
  }
  .hero_content {
    padding: 32px;
    width: 100%;
  }

  .about_content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .icon_text {
    display: none;
  }

  .features_cards {
    width: 460px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .features_content {
    display: flex;
    flex-direction: column;
  }

  .tests_content {
    display: flex;
  }

  .features_text {
    width: 30%;
  }

  /* .timeline {
        width: 100%;
    }
     */
  #timeline {
    padding: 0;
    flex-direction: column;
    flex-wrap: wrap;
    width: 460px;
  }
  .timeline_scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
  }

  .timeline_content {
    display: flex;
    flex-direction: column;
    width: auto;
  }
.titles_box {
        width: auto;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center;
        align-items: center;
}

  .timeline_cards {
    width: 460px;
    flex-flow: wrap;
  }

  .timeline_titles {
    width: auto;
  }

  .timeline_titles h3{
    margin: 0 auto;
  }

  .tl_images {
    width: 80%;
  }

  .tl_shortText {
    font-size: 0;
  }

  #tests {
    display: flex;
    flex-direction: column;
    margin-top: 62px;
  }
  .tests_titles {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #features {
    display: flex;
    flex-direction: column;
    margin-top: 62px;
  }

  .sections_cards_wrapper {
    display: none;
  }
  .sections_cards {
    width: 460px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;
  }

  .tests_text {
    width: 30%;
  }

  .sections {
    width: 100%;
  }

  .sections_titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 160px;
  }

  .sections_content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sections_cards_wrapper {
    width: 100%;
    /* height: 1832px; */
    display: flex;
    justify-content: center;
    background-image: url(images/sword_1.png);
    background-repeat: no-repeat;
    background-size: 250%;
    background-position: center;
  }

  .flip-card-inner {
    display: flex;
    text-align: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .flip-card-front,
  .flip-card-back {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    
  }

  .flip-card-back {
    color: white;
  }

  .flip-card-back p {
    font-size: 16px;
    font-weight: 500px;
    padding: 32px;
    text-align: left;
    /* background-color: var(--yanwu-black); */
  }

  .flip-card-back button {
    height: 56px;
    width: 276px;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 16px;
  }

  .flip-card-back a {
    color: var(--yanwu-black);
  }

  .card_2 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .card_4 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .card_1_content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 305px;
    width: 305px;
    border-radius: 20px;
    background-color: var(--yanwu-black);
  }

  .card_1_content:hover {
    background-color: var(--yanwu-white);
    transition: all 0.3s ease;
  }

  .features_text {
    width: auto;
    padding: 0 32px;
  }

  .features_titles {
    width: 1322px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .features_content {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .features_cards {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 32px;
    margin-top: 80px;
  }

  .features_card_1 {
    background-color: var(--yanwu-red-BG);
    border-radius: 20px;
    width: 260px;
  }
  .features_card_1 img {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

html {
  height: fit-content;
}
body {
  margin: 0 auto;
  padding: 0;
  background: var(--yanwu-black);
  color: var(--yanwu-white);
  font-family: "Viaoda Libre", "Suisselntl", "Roboto";
  display: flex;
  flex-direction: column;
  gap: 160px;
}

.hero_title {
  font-family: "Viaoda Libre";
  font-size: 96px;
  font-weight: 100;
  letter-spacing: 0%;
  line-height: 100%;
}

/* .features_cards {
        display: flex;
        flex-direction: column;
        grid-template-columns: auto minmax(25ch, 1 fr);
    } */

.hero {
  height: 900px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 64px;
  background-image: url("images/hero_1.png");
  max-width: 100%;
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.hero_content {
  display: flex;
  flex-direction: column;
  /* width: 40%; */
}

.hero_title {
  margin: 0;
  font-size: 128px;
}

.hero_text {
  width: 60%;
  padding-bottom: 24px;
}

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about_content {
  text-align: center;
  width: 968px;
}

.tests {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.test_container {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  align-items: center;
}

.tests_content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tests_titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1040px;
  text-align: center;
  gap: 24px;
}

.tests_card {
  margin: 117px;
  display: flex;
  flex-wrap: wrap;
}

.tests_card_wrapper {
  width: 389px;
  height: 644px;
  background-color: var(--yanwu-white);
  display: flex;
  align-items: center;
  border-radius: 17px;
}

.tests_card_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px;
  gap: 20px;
}

.tests_card_content p,
h6 {
  margin: 0px;
  color: var(--yanwu-black);
  text-align: center;
}

.tests_card_content p {
  font-size: 16px;
}

.timeline {
  display: flex;
  justify-content: center;
}

.titles_img{
    width: 20%;
    margin: 0 auto;
}


.title_right {
  display: flex;
  justify-content: flex-end;
}

.timeline_cards {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: center;
}

.card_icon {
  height: 24px;
}

.sections {
  background-size: 30%;
  background: #da3c4142;
  background: radial-gradient(at center, #da3c4113, #00000000);
  background-blend-mode: multiply;
}
