main {
  margin-top: 6vmax;
}
@media (max-width: 768px) {
  main {
    margin-top: 53px;
  }
}
main .container {
  margin: 6vmax auto;
}
main .container p {
  margin: 2vmax 0;
  text-align: left;
  border: none;
}
main .mybgi:nth-child(1) {
  margin-top: 10vmax;
}
@media (max-width: 576px) {
  main .mybgi:nth-child(1) {
    margin-top: unset;
  }
}
main .mybgi .col-sm-7 {
  background-image: url("../images/bg-test6.jpg");
  background-size: calc(100% - 42%);
  background-repeat: repeat-y;
  background-attachment: fixed;
  -webkit-background-attachment: fixed !important;
  background-position-x: right;
  height: 20vmax;
}
main p {
  display: block;
  border: #294bb2 1px solid;
  text-align: center;
  margin: 5vmax auto;
}
main p span.myspan {
  color: #060b80;
}
main .mybgi .col-sm-8 {
  background-image: url("../images/bg-test5.jpg");
  background-size: calc(100% - 33.33%);
  background-repeat: repeat-y;
  background-attachment: fixed;
  height: 20vmax;
}
main .mybgi .mycolfill {
  background-image: url("../images/bg-test2.jpg");
  background-size: cover;
  background-repeat: repeat-y;
  background-attachment: fixed;
  height: 18vmax;
}
@media (max-width: 576px) {
  main .mybgi .col-sm-7,
  main .mybgi .col-sm-8,
  main .mybgi .mycolfill {
    background-attachment: fixed;
    -webkit-background-attachment: fixed !important;
    background-size: contain;
  }
  main .mybgi .col-sm-8,
  main .mybgi .mycolfill {
    background-position: center center;
  }
}
@media (max-width: 767px) {
  main .mybgi .mycolfill {
    background-size: contain;
  }
}
main .card {
  margin: 1rem auto;
  padding: 1rem;
  box-shadow: #00000033 0 0 1rem 0;
}
main .card .col:nth-child(1) {
  border: none;
  margin-left: 1rem;
  margin-bottom: 1rem;
  padding: 0 1rem 0 0;
  height: 20rem;
  overflow-y: scroll;
  overflow-x: hidden;
  /* -webkit-overflow-scrolling:inherit; */
  -webkit-overflow-scrolling: touch;
}
/* test在iphone是否顯示捲軸 */
main .card .col:nth-child(1) ::-webkit-scrollbar-track {
  box-shadow: inset 0 0 1rem rgba(41, 75, 178, 0.1);
  -webkit-box-shadow: inset 0 0 1rem rgba(41, 75, 178, 0.1);
  border-radius: 0.625rem;
}
main .card .col:nth-child(1) ::-webkit-scrollbar {
  width: 0.625rem;
  background-color: transparent;
}
main .card .col:nth-child(1) ::-webkit-scrollbar-thumb {
  background-color: rgba(41, 75, 178, 0.3);
  border-radius: 0.625rem;
}
/* test在iphone是否顯示捲軸 */
main .card .col:nth-child(1) img.mybrandsimg {
  max-height: 6rem;
  display: inline-block;
}
main .card .col:nth-child(1) p {
  margin: 0 0 1rem 0;
}
main .card .col:nth-child(2) {
  margin-right: 1rem;
  margin-bottom: 1rem;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-right: 0;
}
main .card .col:nth-child(2) .myimgcol {
  -ms-flex-preferred-size: 0;
  flex-basis: 0;
  -ms-flex-positive: 1;
  flex-grow: 1;
  max-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
/* .card:nth-child(2)是Diessner */
main .card:nth-child(2) .col:nth-child(2) {
  display: inline-block;
}
main .card:nth-child(2) .col:nth-child(2) .myimgcol {
  background-size: contain;
  background-repeat: repeat-x;
  height: 50%;
}
main .card:nth-child(2) .col:nth-child(2) .myimgcol:nth-child(1) {
  background-image: url("../images/brands/Diessner-photograph1.jpg");
}
main .card:nth-child(2) .col:nth-child(2) .myimgcol:nth-child(2) {
  background-image: url("../images/brands/Diessner-photograph2.jpg");
}
@media (min-width: 991px) {
  main .card:nth-child(2) .col:nth-child(2) .myimgcol {
    background-size: contain;
    height: 100%;
  }
}
/* .card:nth-child(3)是Südwest */
main .card:nth-child(3) .col:nth-child(2) .myimgcol:nth-child(1) {
  -ms-flex: 0 0 55%;
  flex: 0 0 55%;
  background-image: url("../images/brands/Southwest-photograph1.jpg");
}
main .card:nth-child(3) .col:nth-child(2) .myimgcol:nth-child(2) {
  -ms-flex: 0 0 45%;
  flex: 0 0 45%;
  background-image: url("../images/brands/Southwest-photograph2.jpg");
}
@media (max-width: 767px) {
  main .card:nth-child(3) .col:nth-child(2) {
    display: block;
  }
  main .card:nth-child(3) .col:nth-child(2) .myimgcol {
    background-size: contain;
  }
  main .card:nth-child(3) .col:nth-child(2) .myimgcol:nth-child(1) {
    height: 40%;
  }
  main .card:nth-child(3) .col:nth-child(2) .myimgcol:nth-child(2) {
    height: 60%;
  }
}
/* .card:nth-child(5)是Dörken */
main .card:nth-child(5) .col:nth-child(2) {
  display: block;
}
main .card:nth-child(5) .col:nth-child(2) .myimgcol {
  background-size: contain;
  background-repeat: no-repeat;
}
main .card:nth-child(5) .col:nth-child(2) .myimgcol {
  background-size: cover;
  height: 50%;
}
main .card:nth-child(5) .col:nth-child(2) .myimgcol:nth-child(1) {
  background-image: url("../images/brands/Dorken-photograph1.jpg");
}
main .card:nth-child(5) .col:nth-child(2) .myimgcol:nth-child(2) {
  background-image: url("../images/brands/Dorken-photograph2.jpg");
}
@media (min-width: 1200px) {
  main .card:nth-child(5) .col:nth-child(2) .myimgcol {
    background-size: cover;
    height: 100%;
  }
}
/* .card:nth-child(6)是Kale */
main .card:nth-child(6) .col:nth-child(2),
main .card:nth-child(4) .col:nth-child(2) {
  display: block;
}
main .card:nth-child(6) .col:nth-child(2) .myimgcol,
main .card:nth-child(4) .col:nth-child(2) .myimgcol {
  background-size: contain;
  background-repeat: no-repeat;
}
main .card:nth-child(6) .col:nth-child(2) .myimgcol {
  background-size: contain;
  height: 100%;
  background-image: url("../images/brands/Kalekim-photograph.jpg");
}
/* .card:nth-child(4)是Frescolori */
main .card:nth-child(4) .col:nth-child(2) .myimgcol {
  background-image: url("../images/brands/Frescolori-photograph.jpg");
  background-position: bottom;
  height: 100%;
}

/*  */
main .card a {
  width: 100%;
  background-color: rgba(41, 75, 178, 0.7);
  color: #fff;
  display: inline-block;
  padding: 0.75rem;
  text-decoration: none;
  text-align: center;
}
main .timeline p {
  margin: unset;
  border: unset;
  text-align: left;
}
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: #a8a8a8;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: -1;
}
.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: transparent;
  width: 50%;
}
.timeline-container::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid #8a99eb;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  box-sizing: content-box;
}
.timeline-container:hover::after {
  background-color: #e7ecff;
  border: 4px solid #060b80;
}
.left {
  left: 0;
  margin-bottom: -100px;
}
.right {
  left: 50%;
  top: 50px;
}
.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent white;
}
.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}
.timeline-container:hover.right::before {
  position: absolute;
  top: 22px;
  left: 30px;
  border: medium solid #e7ecff;
  border-width: 10px 10px 10px 0;
  border-color: transparent #e7ecff transparent transparent;
}
.timeline-container:hover.left::before {
  position: absolute;
  top: 22px;
  right: 30px;
  border: medium solid #e7ecff;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #e7ecff;
}
.right::after {
  left: -16px;
}

.timeline-content {
  padding: 1rem 1.25rem;
  background-color: white;
  position: relative;
  border-radius: 6px;
  box-shadow: #00000033 0 0 16px 0;
}
.timeline-container:hover .timeline-content {
  background-color: #e7ecff;
  box-sizing: border-box;
  box-shadow: none;
}
.timeline-content p {
  margin-bottom: 0;
}
.timeline-container h2 {
  color: #0086ff;
}
.timeline-container:hover h2,
.timeline-container:hover p {
  color: #060b80;
}

@media (max-width: 767px) {
  .timeline-timeline::after {
    left: 31px;
  }
  .timeline::after {
    content: "";
    position: absolute;
    width: 6px;
    top: 0;
    bottom: 0;
    left: 31px;
    margin-left: -3px;
  }
  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .right {
    left: 50%;
    top: unset;
  }
  .left {
    left: 0;
    margin-bottom: unset;
  }
  .timeline-container:hover.left::before,
  .timeline-container:hover.right::before,
  .timeline-container:hover::before {
    left: 60px;
    border: medium solid #e7ecff;
    border-width: 10px 10px 10px 0;
    border-color: transparent #e7ecff transparent transparent;
  }

  .timeline-container::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }
  .left::after,
  .right::after {
    left: 15px;
  }
  .right {
    left: 0%;
  }
}
.mymargin {
  margin-top: 6vmax;
}
@media (max-width: 767px) {
  .mymargin {
    margin-top: unset;
  }
}
