body{
    margin: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', sans-serif;
}

/* header design */
#nav-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        top: 0;
        position: sticky; 
        background: rgb(177, 221, 232);
        z-index: 1000;
}

.header-img {
  padding-top: 5px;
    height: 80px;
    text-align: center;
}

@media (max-width: 768px) { 
  .header-img {
    height: 40px;
}
}

.nav-link {
    text-decoration: none;
    color:black;
}

ul {
    display: flex;
    text-align: center;
}

li {
  list-style-type: none;
  padding-right: 50px;
  font-size: 14px;
}

@media (min-width: 376px) {
li {
    list-style-type: none;
    padding-right: 50px;
    font-size: 20px;
}
}

@media (min-width: 350px) and (max-width: 400px)  { 
  li {
    list-style-type: none;
    padding-right: 50px;
    font-size: 14px;
  }
}

a:hover {
    color: rgb(48, 45, 246);
}

a:active {
    color: rgb(48, 45, 246);
}

/* about me layout */

.about-font {
  position: relative;
  top: 30%;
  left: 50%;
  padding-bottom: 10px;
  transform: translate(-50%, -50%);
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 998;
  font-size: 18px;
}

@media (min-width: 375px) {
  .about-font {
    top: 33.5%;
    left: 50%;
  }
}

.h1font {
  color: #e3fa85;
  font-size: 3rem;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 2px;
  padding-top: 20px;
  margin-bottom: 20px;
  z-index: 998;
}

.about-p {
  color: hsl(0, 0%, 100%);
  font-size: 1.2rem;
  line-height: 1.6;
}

#about-me {
    background-image: linear-gradient(#76b6c4, #064273);
    overflow: hidden;
    height: 85.5vh;
    min-height: 110vh;
}

#about-me::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* bubble design */
.bubble div{
    height: 60px;
    width: 60px;
    border-radius: 50px;
    position: absolute;
    top: 10%;
    left: 10%;
    animation: 4s linear infinite;
    border: 2px solid rgba(255,255,255,0.7);
}

div .bubble-dot {
    height: 10px;
    width: 10px;
    border-radius: 50px;
    position:absolute;
    top: 50%;
    right: 30%;
    background: rgba(255,255,255,0.5);
}

.bubble div:nth-child(1){
    top: 50%;
    left: 10%;
    animation: animate 8s linear infinite;    
}

.bubble div:nth-child(2){
    top: 35%;
    left: 20%;
    animation: animate 10s linear infinite;    
}

.bubble div:nth-child(3){
    top: 70%;
    left: 30%;
    animation: animate 3s linear infinite;    
}

.bubble div:nth-child(4){
    top: 60%;
    left: 40%;
    animation: animate 7s linear infinite;    
}

.bubble div:nth-child(5){
    top: 40%;
    left: 50%;
    animation: animate 9s linear infinite;    
}

.bubble div:nth-child(6){
    top: 20%;
    left: 60%;
    animation: animate 5s linear infinite;    
}

.bubble div:nth-child(7){
    top: 38%;
    left: 70%;
    animation: animate 8s linear infinite;    
}

.bubble div:nth-child(8){
    top: 80%;
    left: 90%;
    animation: animate 10s linear infinite;    
}

@keyframes animate{
    0%{
        transform: scale(0) translateY(0) ;
    }
   100%{
    transform: scale(1.3) translate(-100px);
   }
}

/* sand design*/
.sand {
    width: 100%;
    height: 70px;
    background: linear-gradient(#e6cfa8, #f1e5cb, #e6cfa8);
    position: absolute;
    bottom: -270px;
    border-bottom: 250px solid #dec090;
    box-shadow: 0 0 30px rgba(0,0,0,0.3) inset;
}

/* seaweed design */
.seaweed {
    position: absolute;
    bottom: 38px;
    width: 5vmin;
    height: 15vmin;
    border-top-left-radius: 100%;
    border-left: 2vmin solid #0b8607;
    animation:seaweed-wave 2s ease-in-out infinite 
    alternate;
}

@keyframes seaweed-wave {
    0% {
        transform: rotateZ(-5deg);
    }
    100% {
        transform: rotateZ(5deg);
    }

    
}

/* fish design*/
.fish1 {
    width: 100px;
    height: 50px;
    background: linear-gradient(45deg, #bd6aba,#ff8b61, #bd6aba,#ff8b61);
    position:absolute;
    top: 70%;
    left: 10%;
    border-radius: 50%;
    animation: fish-move 7s ease-in-out infinite;
}

@keyframes fish-move {
    0% {
        transform: translateX(0) scaleX(1);
    }
    50% {
        transform: translateX(200px) scaleX(1);
    }
    51% {
        transform: translateX(200px) scaleX(-1);
    }
    100% {
        transform: translateX(0) scaleX(-1);
    }
}

.fish2 {
    width: 100px;
    height: 50px;
    background: linear-gradient(45deg, #eee282,#79b7cd, #eee282,#79b7cd);
    position:absolute;
    top: 80%;
    left: 70%;
    border-radius: 50%;
    animation: fish-move2 7s ease-in-out infinite;
}

@keyframes fish-move2 {
    0% {
        transform: translateX(0) scaleX(1);
    }
    50% {
        transform: translateX(-200px) scaleX(1);
    }
    51% {
        transform: translateX(-200px) scaleX(-1);
    }
    100% {
        transform: translateX(0) scaleX(-1);
    }
}

.fish1 .fish-eye {
    width: 20px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    right: 15px;
    top: 12px;
    z-index: 3;
}

.fish2 .fish-eye {
    width: 20px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    left: 15px;
    top: 12px;
    z-index: 3;
}

.fish1 .fish-eye::after {
    content: "o";
    background-color: black;
    border-radius: 90%;
    position: relative;
    top: 10%;
    left: 30%;
    transform: translate(-50%, -50%);
}

.fish2 .fish-eye::after {
    content: "o";
    background-color: black;
    border-radius: 90%;
    position: relative;
    top: 10%;
    left: 20%;
    transform: translate(-50%, -50%);
}

.fish1 .fish-mouth {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 8px solid rgb(27,135,152);
    border-radius: 5px;
    transform: rotate(-45deg);
    position: absolute;
    top: 36px;
    right: 10px; 
}

.fish2 .fish-mouth {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 8px solid rgb(27,135,152);
    border-radius: 5px;
    transform: rotate(45deg);
    position: absolute;
    top: 36px;
    left: 10px; 
}

.fish1 .fish-tail {
    width: 10px;
    height: 45px;
    background: linear-gradient(45deg, #bd6aba,#ff8b61, #bd6aba,#ff8b61);
    position: absolute;
    left: -3px;
    top: 2px;
    border-radius: 90%;
}

.fish2 .fish-tail {
    width: 10px;
    height: 45px;
    background: linear-gradient(45deg, #eee282,#79b7cd, #eee282,#79b7cd);
    position: absolute;
    right: -3px;
    top: 2px;
    border-radius: 90%;
}

/* diver design*/
.diver{
    display: flex;
    align-items: center;
    position: relative;
    top:400px;
    transform:scaleX(-0.38);
    animation: diverMoves 20s ease both infinite;
  }
  
  @keyframes diverMoves {
    0% {
      top: -250px;
      left: 0;
      transform: translateX(0) translateY(0) scaleX(-0.38);
    }
    20% {
      top: -250px;
      left: 0px;
      transform: translateX(0) translateY(150px) scaleX(-0.38);
    }
    40% {
      top: -250px;
      left: 150px;
      transform: translateX(50px) translateY(250px) scaleX(-0.38);
    }
    60% {
      top: -250px;
      left: 250px;
      animation-timing-function: ease-in-out;
      animation-duration: 0.1s;
      transform: translateX(10px) translateY(150px) scaleX(0.38);
    }
    100% {
      top: 0px;
      left: -1080px;
      transform: translateX(0) translateY(0) scaleX(0.38);
    }
  }

  @media (min-width: 360px) {      /* mobile */
    @keyframes diverMoves {
      0% {
        top: -350px;
        left: 0;
        transform: translateX(0) translateY(0) scaleX(-0.38);
      }
      20% {
        top: -350px;
        left: 0px;
        transform: translateX(0) translateY(150px) scaleX(-0.38);
      }
      40% {
        top: -350px;
        left: 150px;
        transform: translateX(50px) translateY(250px) scaleX(-0.38);
      }
      60% {
        top: -350px;
        left: 250px;
        animation-timing-function: ease-in-out;
        animation-duration: 0.1s;
        transform: translateX(10px) translateY(150px) scaleX(0.38);
      }
      100% {
        top: 0px;
        left: -1080px;
        transform: translateX(0) translateY(0) scaleX(0.38);
      }
    }
  }

/* diver head */
  .goggle{
    display: flex;
    transform:rotateZ(-30deg);
    position: relative;
    left:16.5vw;
    bottom:2vw;
    z-index: 6;
  }

   .g-glass{
    width:1vw;
    height:3vw;
    background-color: #d7900c;
  }
  
  .g-connect{
    clip-path: polygon(0 0, 0% 100%, 100% 52%);
    background-color: #000;
    width:1.5vw;
  }
  
  .g-band{
    width:5.6vw;
    height:1vw;
    background-color: #000;
    position: relative;
    top:1vw;
    right:0.5vw;
  }

  .connector-band{
    width:10vw;
    height:8vw;
    border-radius:50%;
    border-bottom:0.3vw solid #000;
    position: relative;
    bottom:1.3vw;
    left:10vw;
    z-index: 6;
    transform:rotateZ(-15deg);
  }
  
  .cap{
    width:7vw;
    height:7vw;
    border-radius:50%;
    background-color:#2a353f;
    position: relative;
    bottom:1.5vw;
    right:0.5vw;
    overflow:hidden;
  }

.face{
    width:5vw;
    height:6vw;
    border-radius:50%;
    background-color: #ceb6ac;
    position: absolute;
    right:2.6vw;
    top:1vw;
    border-top:0.5vw solid #ab948a;
  }

/* diver Upper body equipment */
  .attire{
    width:12vw;
    height:5vw;
    background-color: #2a353f;
    border-radius:16% 31% 1% 30% / 25% 2% 1% 56%;
    position: relative;
  }

  .o2-cyl{
    width:10vw;
    height:3vw;
    border-radius:1vw;
    background-image: linear-gradient(to top, #8c7003, #c19a05, #d1b64d);
    position: absolute;
    left:2vw;
    bottom:4vw;
    z-index: 7;
  }
  
  .neck{
    width:4vw;
    height:3vw;
    background-color:#2a353f;
    position: absolute;
    left:-2vw;
    bottom:1.3vw;
    transform:rotateZ(10deg);
  }
  
/* diver Upper body */
  .hand{
    display: flex;
    position: absolute;
    top:1vw;
    z-index: 2;
  }
  
  .upper-hand{
    width:4vw;
    height:1.5vw;
    border-radius:50% 0 0 50%;
    background-color: #3eb0a7;
    transform:rotateZ(10deg);
  }
  
  .mid-hand{
    clip-path: polygon(1% 35%, 100% 48%, 100% 66%, 0 60%);
    width:6.5vw;
    height:6.7vw;
    background-color: #3eb0a7;
    position: relative;
    bottom:1.2vw;
    right:1.2vw;
    transform:rotateZ(20deg);
  }

  .palm{
    width:2.5vw;
    height:1.5vw;
    border-radius:50%;
    background-color: #ceb6ac;
    position: relative;
    top:3vw;
    right:1.8vw;
    transform:rotateZ(40deg); 
    z-index: -1;
    border-bottom:0.3vw solid #b0827b;
  }
  
  .thumb{
    width:1.5vw;
    height:0.5vw;
    border-radius:50%;
    background-color: #ceb6ac;
    position: absolute;
    bottom:-0.5vw;
    transform:rotateZ(18deg);
    border-bottom:0.3vw solid #b0827b;
  }

  .belt{
    width:2vw;
    height:5vw;
    background-color: #297872;
    border-right:0.5vw solid #1d5955;
  }

  .upper-and-lower-body-join{
    width:2vw;
    height:5vw;
    background-color: #2a353f;  
  }

  /* diver lower body */
  .leg-front, .leg-back{
    display: flex;
    position: relative;
    bottom:0.45vw;
    right:0.2vw;
  }

  .lf-thigh, .lb-thigh{
  clip-path: polygon(0 15%, 100% 51%, 100% 100%, 0% 100%);
    width:14vw;
    height:5.8vw;
    background-color:#2a353f; 
    animation:thighMove 1.5s infinite both;
  }
  
  @keyframes thighMove {
    0% {
      transform: rotateZ(3deg);
    }
    50% {
      transform: rotateZ(0deg);
    }
    100% {
      transform: rotateZ(3deg);
    }
  }
  
  .lf-thigh{
    width:16vw;
  }

  .lf-calf, .lb-calf{
    background-color: #2a353f; 
    width:12vw;
    height:1.9vw;
    position: absolute;
    left:15.6vw;
    bottom:1vw;
    transform:rotateZ(-5deg);
    animation:calfMove 1.5s infinite both;
  }

  @keyframes calfMove {
    0% {
      transform: rotateZ(-5deg);
    }
    50% {
      transform: rotateZ(0deg);
    }
    100% {
      transform: rotateZ(-5deg);
    }
  }
  
  .lf-calf{
    width:15vw;
    transform:rotateZ(-10deg);
  }

    .leg-back{
    position: relative; 
    right:16vw;
    top:0.1vw;
    transform:rotateZ(5deg);
    z-index: -1;
  }
  
  .lb-thigh, .lb-calf{
    background-color: #2a353f;
  }
  
  .lb-calf{
    width:13.5vw;
    height:1.8vw;
    position: absolute;
    left:13.7vw;
    bottom:0.5vw;
    transform:rotateZ(3deg);  
  }

  /* diver lower body equipment */
  .flipper-front, .flipper-back{
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .ff-flip, .fb-flip{
    width:5.5vw;
    height:6vw;
    background-color: #dd8d03;
    clip-path: polygon(0 34%, 100% 16%, 100% 78%, 0 67%);
    border-bottom:3vw solid #b87504;
  }
  
  .ff-flip{
    position: relative;
    bottom:0.15vw;
    transform:rotateZ(-10deg);
    animation:flipMove 1.5s infinite both;
  }
  
  .fb-flip{
    position: relative;
    transform:rotateZ(8deg); 
    top:2.5vw;
    right:12.3vw;
    animation:flipMove 1.5s infinite both;
  }

  @keyframes flipMove {
    0% {
      transform: rotateZ(-10deg);
    }
    50% {
      transform: rotateZ(0deg);
    }
    100% {
      transform: rotateZ(-10deg);
    }
  }

/*Instagram feed */
.igh2 {
  margin: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: #fff;
}

#ig {
  position: relative;
  width: 100%;
  height: 200px;
  padding-top: 20px;
  background-image: linear-gradient(#053756, #064273);
  overflow: hidden;
}

#instagramFeed {
  background-image: linear-gradient(#064273,#76b6c4);
}

.instagramItem {
  display: flex;
  justify-content: center;
  align-items: center;
}

.instagramItem iframe {
  max-width: 98%;
  max-height: 100%;
}

@media (max-width: 768px) { /* For mobile */
  .instagramItem {
    width: 100%; /* Full width on mobile */
    margin-right: 0; /* space between items on mobile */
    margin-left: 0; /* space between items on mobile */
  }
}

.slide-button{
  height: 40px;
  width: 40px;
  color: #000000;
  border: none;
  outline: none;
  background: #fff;
  cursor: pointer;
  border-radius: 50%;
  position: absolute;
  transform: translateY(600%);
}

.slide-button:hover{
background: #064273;
}

#prevBtn{
 left: -0.01px;
}

#nextBtn{
  right:-0.01px;
}
 
/* diving courses */

.h2dc {
  text-align: center;
  font-size: 25px;
}

#diving-courses {
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110vh;
  background: linear-gradient(#76b6c4, #064273);
}

.price {
  width: 400px;
  background: #FFF;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.5)
}

.price header {
  display: flex;
  position: relative;
  align-items: center;
  height: 55px;
  border: 1px solid #ccc;
  border-radius:  30px;
}

header label {
  height: 100%;
  width: 30%;
  z-index: 2;
  display: flex;
  position: relative;
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

header label:nth-child(2){
  width: 40%;
}

header .slider {
  position: absolute;
  left: 50%;
  height: 85%;
  width: 120px;
  border-radius: inherit;
  transform: translateX(-50%);
  background: linear-gradient(145deg, #76b6c4, #064273);
  transition: all 0.3s ease;
}

#tab-1:checked ~ header .slider {
  left: 0%;
  width: 105px;
  transform: translateX(5%);
}

#tab-2:checked ~ header .slider {
  left: 50%;
  width: 120px;
  transform: translateX(-50%);
}

#tab-3:checked ~ header .slider {
  left: 100%;
  width: 105px;
  transform: translateX(-105%);
}

.price input[type="radio"] {
  display: none;
}

.cards-area {
  overflow: hidden;
}

.cards-area .cards {
  width: 300%;
  display: flex;
  
}

.cards .row{
 width: 33.4%;
}

.cards .row-1{
  transition: all 0.3s ease;
}

#tab-1:checked ~ .cards-area .cards .row-1 {
  margin-left: 0%;
}

#tab-2:checked ~ .cards-area .cards .row-1 {
  margin-left: -33.4%;
}

#tab-3:checked ~ .cards-area .cards .row-1 {
  margin-left: -66.8%;
}

.features {
  display: flex;
  flex-direction:column;
}

.row .pricing-details {
  margin: 20px 0;
  text-align: center;
  border-bottom: 1px solid #e6e6e6;
}

.pricing-details span {
  font-size: 65px;
  font-weight: 600;
  position: relative;
  color: #064273;
}

.pricing-details span::before{
  position: absolute;
  content: "$";
  font-size: 30px;
  left: -20px;
  bottom: 20px;
  font-weight: bold;
  font-family: "poppins", sans-serif;
}

.pricing-details p{
 margin-top: 5px;
}

.row .features li {
  font-size: 18px;
  margin-bottom: 18px;
  list-style: none;
}

.features li i{
  color: #064273;
}

.price button {
  height: 50px;
  width: 85%;
  border: none ;
  outline: none;
  color: #000;
  cursor: pointer;
  font-size: 18px;
  background: linear-gradient(145deg, #76b6c4, #064273);
  border-radius: 30px;
  font-family: 'Noto Sans TC', sans-serif;
  transition: transform 0.3s ease;
}

.price button:hover{
  transform: scale(0.98);
}


@media (max-width: 768px) { 
  .price {
    width: 290px;
    background: #FFF;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.5)
  }
}

@media (max-width: 768px) { 
  #tab-1:checked ~ header .slider {
    left: 0%;
    width: 80px;
    transform: translateX(5%);
  }
  
  #tab-2:checked ~ header .slider {
    left: 50%;
    width: 120px;
    transform: translateX(-50%);
  }
  
  #tab-3:checked ~ header .slider {
    left: 100%;
    width: 80px;
    transform: translateX(-105%);
  }
}

@media (max-width: 768px) { 
  .price button {
    width: 80%;
  }
}

/* About NAUI */

#about-naui {
  background: linear-gradient(#064273,#76b6c4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
}

.h2-naui {
  color: #FFF;
  font-size: 40px;
  display: flex;
  justify-content: center;
}

.naui-photo {
  padding-top: 10px;
  height: 130px;
  width: 730px;
}

@media (max-width: 768px) {
.naui-photo {
  height: 80px;
  width: 340px;
}
}

.naui-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #FFF;
  width: 730px;
  padding: 10px;
  border: 5px solid black;
  border-radius: 1em;
}

@media (max-width: 768px) {
  .naui-card {
    padding: 5px;
    width: 342px;
  }
}

#q-a {
  display: flex;
  flex-direction: column;
  width: 730px;
}

@media (max-width: 768px) {
  #q-a {
  margin-left: -25px;
  width: 342px;
  }
}

#q-a li {
  text-align: left;
  list-style: none;
  width: 93%;
  margin-bottom: 10px;
  background: #fff;
  padding: 10px;
  border-radius: 15px;
}

#q-a li label {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  color:#297872;
}

#q-a label + input[type="radio"] {
  display: none;
}

#q-a .content-1{
  padding: 0 10px;
  line-height: 26px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s;
}

#q-a label + input[type="radio"]:checked + .content-1{
  max-height: 410px;
}

/* Contact us */
#contact-us {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px;
  background: linear-gradient(#76b6c4,#064273);
}

@media (max-width: 768px) {
  #contact-us  {
    padding: 167px;
  }
  }

.h2-us {
  font-size: 40px;
  display: flex;
  justify-content: center;
  color: #fff;
}

@media (max-width: 768px) {
  .h2-us  {
    height: 80px;
    width: 332px;
  }
  }

.contact-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 630px;
  padding: 10px;
  border-radius: 5em;
  border: 3px solid #fff;
  color: #000;
  background:#fff
}

@media (max-width: 768px) {
  .contact-div {
    width: 342px;
  }
}

/* Footer */

.footer-p {
  text-align: center;
  font-size: small;
}