/* body */
body {
  background-color: antiquewhite;
}

/* class */
.picture {
  margin-top: 10px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.title {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.table {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 10px;
}

.about {
  margin-bottom: 0px;
  background-color: rgb(244, 218, 187);
  padding: 10px;
  padding-bottom: 0px;
  width: 80px;
  height: 30px;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
}

.back-Picture {
  width: 100%;
  height: 1000px; /* 或 auto/百分比 */
  background-image: url('full.JPG');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.contact {
  padding-top: 100px;
  padding-bottom: 50px;
  margin-bottom: 20px;
  font-size: 1.8em;
  text-align: center;
}

.item {
  max-width: fit-content;
  margin: 0 auto;
  display: grid;
  align-items: center; /* 上下至中 */
  justify-items: center;
  justify-content: center; /* 左右至中 */
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 10px;
}

.social {
  margin: 10px;
  background-color: rgb(244, 218, 187);
  padding: 5px;
  width: 110px;
  border-radius: 10px;
  animation: fade 0.5s linear 0s 1;
}
.pikas {
  max-width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pika-style {
  animation: fade 0.25s linear 0s 1;
  height: 500px;
  border-radius: 80px;
}

@media (max-width: 600px) {
  /* 螢幕寬小於500px， 套用此像素 */
  .social {
    width: 110px;
  }

  .item {
    grid-template-columns: repeat(2, 1fr);
  }

  .back-Picture {
    width: 100%;
    height: 1000px; /* 或 auto/百分比 */
    background-image: url('backPicture.PNG');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    .contact {
      padding-top: 0px;
      padding-bottom: 40px;
    }

    .pika-style {
      animation: fade 0.25s linear 0s 1;
      height: 350px;
      border-radius: 80px;
    }
  }
}

@media (max-width: 350px) {
  /* 螢幕寬小於350px， 套用此像素 */

  .social {
    width: 110px;
  }

  .item {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* 左>右移，出現 */
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }

  from {
    transform: translate3d(-5%, 0, 0);
  }
  to {
    transform: none;
  }
}
