@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Ubuntu", sans-serif;
}

.big-title {
  font-size: 40px;
  font-weight: 700;
  color: #edc7c7;
  /* color:#edecec; */
}
.hub {
  color: black;
  background-color: orange;
  border-radius: 8px;
}
a {
  position: relative;
  text-decoration: none;
  color: #333;
  transition: all 0.8s ease;
  padding: 15px 20px;
}
a:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  /* transform: translateY(2000px); */
}

img {
  object-fit: cover;
}

body {
  background-color: #f0eded;
  /* background-color: #000; */
}

nav {
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

nav .links a:not(:last-child) {
  margin-right: 20px;
}

header {
  padding: 100px;
  padding-left: 200px;
  height: 50rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

header .left {
  width: 600px;
}

header .left h1 {
  font-size: 50px;
}

header .left h1 span {
  color: #0f2182;
}

header img {
  width: 600px;
}

.typewriter h1 {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  font-size: 65px;
  color: #0f2182;
  border-right: 0.15em solid orange; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  letter-spacing: 0.15em; /* Adjust as needed */
  animation: typing 3.5s steps(40, end) 10s infinite,
    blink-caret 0.75s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: orange;
  }
}
h2.separator {
  padding: 0 350px;
  font-size: 40px;
  margin-top: 150px;
  margin-bottom: 100px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-in, transform 0.8s ease-in;
}

.separator.visible {
  opacity: 1;
  transform: translateY(0);
}

.sell-nft {
  padding: 0 350px;
  width: 100%;
  margin: 50px 0 80px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.about-us {
  padding: 0 350px;
  width: 100%;
  margin: 50px 0 80px;
  border-radius: 10px;
}
.about-us .about-header {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 10px;
}
.about-us .about-header i {
  font-size: 20px;
}

.sell-nft .item,
.activity-photos .nft-list .item,
.content-aboutme,
.sellers .item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-in, transform 0.6s ease-in;
}

.sell-nft .item.animate,
.activity-photos .nft-list .item.animate,
.content-aboutme.animate,
.sellers .item.animate {
  opacity: 1;
  transform: translateY(0);
}

/* 移除原有的動畫延遲 */
.sell-nft .item:nth-child(1),
.sell-nft .item:nth-child(2),
.sell-nft .item:nth-child(3),
.activity-photos .nft-list .item:nth-child(1),
.activity-photos .nft-list .item:nth-child(2),
.activity-photos .nft-list .item:nth-child(3),
.sellers .item:nth-child(1),
.sellers .item:nth-child(2),
.sellers .item:nth-child(3) {
  animation-delay: 0s;
}

.sell-nft .item {
  padding: 20px;
  padding-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 500px;
  height: 120px;
  opacity: 1;
  transform: translateY(0);
}

.content-aboutme h3 {
  font-size: 24px;
}
.content-aboutme p {
  font-size: 22.4px;
}

.activity-photos .nft-list .item,
.content-aboutme {
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-in forwards;
}
.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
}

.mySlides {
  display: none;
}
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}
.mySlides img {
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
}
@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
.content-aboutme {
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.8s ease-out, opacity 0.8s ease-out;
}

.show {
  max-height: 1000px;
  opacity: 1;
  transition: max-height 0.8s ease-in, opacity 0.8s ease-in;
  /* margin-bottom: ; */
}

.sell-nft .item:hover,
.activity-photos .nft-list .item:hover,
.sellers .item:hover {
  box-shadow: none;
}

.sell-nft .item-box .item-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sell-nft .item-box .item-header i {
  font-size: 30px;
}

.sell-nft .item-box .item-header h5 {
  font-size: 19px;
}

.sell-nft .item p {
  margin-top: 10px;
  padding: 0 4px;
}

.activity-photos {
  margin: 30px auto;
  padding: 0;
  position: relative;
  width: calc(378px * 4 + 60px);
  overflow: hidden;
}

.activity-photos .nft-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  width: max-content;
}

.activity-photos .nft-list .item {
  flex: 0 0 378px;
  height: 480px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  background-color: #fff;
  display: none; /* 預設隱藏所有項目 */
}

.activity-photos .nft-list .item.active {
  display: block; /* 顯示當前活動的項目 */
}

.activity-photos .nft-list .item img {
  width: 100%;
  height: calc(100% - 30px); /* 減去padding */
  object-fit: cover;
  display: block;
}

.activity-photos .nft-list .item .info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #edecec;
}

.activity-photos .nft-list .item .info .btc {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.activity-photos .nft-list .item .btc i {
  font-size: 22px;
  color: #304ffe;
}

.activity-photos .nft-list .item .btc p {
  font-size: 12px;
  color: #304ffe;
}

.activity-photos .nft-list .item .bid {
  padding: 14px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.activity-photos .nft-list .item .bid p,
.activity-photos .nft-list .item .bid a {
  background-color: #edecec;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 10px;
}

.activity-photos .nft-list .item .bid a {
  color: #304ffe;
  background: transparent;
  font-weight: bold;
  transition: all 0.3s ease;
}

.activity-photos .nft-list .item .bid a:hover {
  color: #fff;
  background-color: #000;
}

.view-more {
  margin: 10px 0 30px;
  display: flex;
  justify-content: center;
}

.view-more button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  background: #dfdcdc;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-more button:hover {
  color: #fff;
  background: #0f2182;
}

.sellers {
  padding: 0 350px;
  margin: 40px 0 20px;
  display: flex;
  justify-content:space-between;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 60px;
}

.sellers .item {
  background: #fff;
  display: flex;
  align-items: center;
  flex-direction: column;
  /* width: 25%; */
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: easeInUp 1s forwards;
}

.sellers .item img {
  width: 247px;
  height: 247px;
  object-fit: cover;
  border-radius: 20px;
}
.sellers .item h4 {
  font-size: 18px;

}
.sellers .item .info p {
  font-size: 15px;
  margin-top: 8px;
}

footer {
  background-color: #000;
  color: #fff;
  padding: 100px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer h3 {
  font-size: 40px;
  white-space: nowrap;
}

footer .right {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 26px;
}

footer .right .links {
  display: flex;
  gap: 30px;
}

footer .right .links a {
  position: relative;
  text-decoration: none;
  color: #fff;
  transition: all 0.8s ease;
  padding: 5px 10px;
}

footer .right .links a:hover {
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

footer .right .social {
  display: flex;
  align-items: center;
  gap: 10px;
}

footer .right .social i {
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s ease;
}

footer .right .social i:hover {
  color: #304ffe;
}

footer .right p {
  font-size: 13px;
  color: #777;
}

.item-header h5 {
  font-size: 1.5rem;
}
.item-p {
  font-size: 1.4rem;
}

.item-header {
  display: flex;
  gap: 1rem;
}
.item-header i {
  font-size: 2rem;
}
.item-box {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 200px; 
  background: #fff;
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: 1rem;
}

.news-container {
  margin: 2rem auto;
  padding: 0 350px;
}

@media screen and (max-width: 1400px) {
  nav,
  header,
  h2.separator,
  .sell-nft,
  .activity-photos,
  .sellers {
    padding: 0 40px;
  }

  .about-us {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    width: 100%;
  }

  header .left h1 {
    font-size: 60px;
  }

  header img {
    width: 540px;
  }

  .activity-photos .nft-list .item img {
    width: 220px;
    height: 220px;
  }

  footer {
    padding: 100px 40px;
  }

  footer h3 {
    font-size: 38px;
  }

  .news-container {
    width: 100%;
    padding: 0 20px;
  }
}

@media screen and (max-width: 1200px) {
  header .left h1 {
    font-size: 48px;
  }

  header img {
    width: 480px;
  }

  h2.separator {
    font-size: 34px;
  }

  .about-us {
    padding-left: 2rem;
  }

  .item header {
    font-size: 2rem;
  }

  .sell-nft .item .header i {
    font-size: 36px;
  }

  .sell-nft .item .header h5 {
    font-size: 15px;
  }

  .sell-nft .item p {
    font-size: 1.5rem;
  }

  .activity-photos .nft-list {
    flex-wrap: nowrap;
    row-gap: 30px;
  }

  .activity-photos .nft-list .item {
    width: 48%;
  }

  .activity-photos .nft-list .item img {
    width: 100%;
    height: auto;
  }

  .sellers {
    flex-wrap: wrap;
  }

  .sellers .item {
    width: 48%;
  }

  footer .links a {
    font-size: 15px;
  }

  .news-section {
    padding: 0 40px;
  }

  .news-container {
    width: 100%;
    padding: 0 20px;
  }
}

@media screen and (max-width: 992px) {
  nav a.logo {
    font-size: 28px;
  }

  nav .links a {
    font-size: 14px;
  }

  header {
    flex-direction: column-reverse;
    height: auto;
    margin-bottom: 60px;
  }

  header .left {
    width: 100%;
  }

  header img {
    width: 100%;
  }

  .sell-nft {
    flex-wrap: wrap;
    gap: 20px;
  }

  .sell-nft .item {
    width: 48%;
  }

  .sellers {
    gap: 20px;
  }

  footer {
    flex-direction: column;
    padding: 60px 40px;
  }

  footer h3 {
    margin-bottom: 40px;
    font-size: 32px;
  }

  footer .right {
    width: 100%;
    align-items: center;
  }
  .news-container {
    width: 100%;
    padding: 0 20px;
  }
}

@media screen and (max-width: 768px) {
  nav,
  header,
  h2.separator,
  .sell-nft,
  .activity-photos,
  .sellers {
    padding: 0 20px;
  }

  nav a.logo {
    display: none;
  }

  nav .links a {
    font-size: 12px;
  }

  nav .login button {
    font-size: 12px;
    padding: 6px 10px;
  }

  header .left h1 {
    font-size: 36px;
  }

  header .left p {
    font-size: 14px;
  }

  header .left a {
    padding: 6px;
    width: 160px;
    font-size: 14px;
  }

  header .left a i {
    padding: 6px;
  }

  h2.separator {
    font-size: 30px;
  }

  footer {
    padding: 40px 20px;
  }

  .news-item {
    flex-direction: column;
  }

  .news-image {
    width: 100%;
    height: 200px;
  }
}

@media screen and (max-width: 576px) {
  header .left h1 {
    font-size: 30px;
  }

  .sell-nft .item {
    width: 100%;
  }

  .activity-photos .nft-list .item,
  .sellers .item {
    width: 47%;
  }

  .activity-photos .category a {
    font-size: 13px;
  }
}

/* Split Text Animation */
.split-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  overflow: hidden;
}

.split-heading .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  margin-right: 5px;
  font-size: 2.5rem;
}

.split-heading.animate .char {
  opacity: 1;
  transform: translateY(0);
}

/* 為每個字符設置不同的延遲 */
.split-heading .char:nth-child(1) {
  transition-delay: 0.1s;
}
.split-heading .char:nth-child(2) {
  transition-delay: 0.2s;
}
.split-heading .char:nth-child(3) {
  transition-delay: 0.3s;
}
.split-heading .char:nth-child(4) {
  transition-delay: 0.4s;
}
.split-heading .char:nth-child(5) {
  transition-delay: 0.5s;
}
.split-heading .char:nth-child(6) {
  transition-delay: 0.6s;
}
.split-heading .char:nth-child(7) {
  transition-delay: 0.7s;
}
.split-heading .char:nth-child(8) {
  transition-delay: 0.8s;
}
.split-heading .char:nth-child(9) {
  transition-delay: 0.9s;
}
.split-heading .char:nth-child(10) {
  transition-delay: 1s;
}

/* Styling for the arrow buttons */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.scroll-left {
  left: 10px;
}

.scroll-right {
  right: 10px;
}

.scroll-arrow i {
  font-size: 24px;
  color: #333;
}

/* 懸停效果 */
.scroll-arrow:hover {
  background-color: rgba(255, 255, 255, 1);
}

html {
  scroll-behavior: smooth;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes easeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sell-nft .item:nth-child(1) {
  animation-delay: 0.2s;
}
.sell-nft .item:nth-child(2) {
  animation-delay: 0.4s;
}
.sell-nft .item:nth-child(3) {
  animation-delay: 0.6s;
}

.activity-photos .nft-list .item:nth-child(1) {
  animation-delay: 0.2s;
}
.activity-photos .nft-list .item:nth-child(2) {
  animation-delay: 0.4s;
}
.activity-photos .nft-list .item:nth-child(3) {
  animation-delay: 0.6s;
}

.sellers .item:nth-child(1) {
  animation-delay: 0.2s;
}
.sellers .item:nth-child(2) {
  animation-delay: 0.4s;
}
.sellers .item:nth-child(3) {
  animation-delay: 0.6s;
}

.item {
  opacity: 0;
  transform: translateY(20px);
  animation: easeInUp 1s forwards;
}

.item.show {
  opacity: 1;
  transform: translateY(0);
}

/* News Section */
.news-section {
  padding: 0 350px;
  margin: 40px 0;
}

.news-item {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 30px;
  display: flex;
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-image {
  width: 300px;
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.1);
}

.news-content {
  padding: 20px;
  flex: 1;
}


.news-date {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.news-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
}

.news-description {
  color: #666;
  line-height: 1.6;
}

/* Add at the end of your CSS file */

.news-item {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.news-date {
  min-width: 150px;
  border-right: 3px solid #2ecc71;
  padding-right: 2rem;
  display: flex;
  align-items: center;
}

.news-date h3 {
  color: #2ecc71;
  font-size: 1.2rem;
}

/* Add at the end of your CSS file */

.cta-section {
  text-align: center;
  padding: 60px 0;
  margin: 200px 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 30px;
  animation: fadeInUp 0.6s ease-out;
}

.signup-btn {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
}

.signup-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
  background: #27ae60;
}

.signup-btn:active {
  transform: translateY(-1px);
}

@media screen and (max-width: 768px) {
  .cta-section h2 {
    font-size: 2rem;
  }

  .signup-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}
