@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Odibee+Sans&display=swap');
html, body{
    scroll-behavior: smooth;
}
body{
    background-color: #CBCBCB;
    margin: 0;
    font-size: 14px;
    color: #2E373A;
    font-family: "Libre Baskerville", sans-serif;
}
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
}
section{
    width: min(1400px, 100vw);
    margin: auto;
    padding: 20px;
}
.banner .content{
    font-family: "Odibee Sans", sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.banner .content h1{
    font-size: 17em;
}
.banner .image{
    width: 100%;
    height: 600px;
    background-image: url(images/banner.jpg);
    position: relative;
}
.banner .image img{
    position: absolute;
    height: 130%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
}
.grid figure img{
    width: 100%;
}

.grid{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(var(--row), 100px);
    margin-top: 50px;
    gap: 50px;
}
.grid-1 figure:nth-child(1){
    grid-column: 2 / 6;
    grid-row: 1;
}
.grid-1 figure:nth-child(2){
    grid-column: 3 / 5;
    grid-row: 1;
}
.grid-1{
    --row: 3;
}
.grid-2{
    --row: 9;
    font-size: 1.7em;
}
.grid-2 h2:nth-child(1){
    font-size: 5em;
    grid-column: 1 / 7;
    text-align: center;
    grid-row: 1;
}
.grid-2 div:nth-child(2){
    grid-column: 1 / 4;
    grid-row: 4;
}
.grid-2 div:nth-child(3){
    grid-column: 4 / 7;
    grid-row: 3;
}
.grid-2 div:nth-child(4){
    grid-column: 4 / 7;
    grid-row: 7;
}

/* ************************************guinea********************************** */

.guinea {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 100px 250px;
  }
  
  .guinea h1 {
    font-size: 7rem;
    font-weight: 700;
    margin-top: 15rem;
    margin-bottom: 5rem;
    line-height: 1;
  }
  
  .grid-area {
    display: grid;
    grid-template-columns: repeat(8, 100px);
    grid-template-rows: repeat(7, 100px);
    gap: 20px;
}

.grid-area .item img {
    width: 90%; /* ลดขนาดรูปภาพเพื่อให้เห็นกรอบ */
    height: 90%; /* ลดขนาดรูปภาพเพื่อให้เห็นกรอบ */
    object-fit: cover; /* ปรับขนาดรูปโดยไม่ให้บีบหรือยืด */
    border: 5px solid white; /* เพิ่มกรอบสีขาว */
    border-radius: var(--border-radius); /* เพิ่มขอบมน */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* เพิ่มเงาเพื่อความสวยงาม */
}
  
  .item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(#fff2, transparent);
    box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .item.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  .art-one {
    grid-area: 1 / 1 / 3 / 3;
  }
  
  .art-two {
    grid-area: 1 / 3 / 4 / 5;
  }
  
  .art-three {
    grid-area: 1 / 5 / 3 / 7;
  }
  
  .art-four {
    grid-area: 1 / 7 / 3 / 9;
  }
  
  .art-six {
    grid-area: 4 / 3 / 6 / 5;
  }
  
  .art-five {
    grid-area: 3 / 1 / 5 / 3;
  }
  
  .art-seven {
    grid-area: 3 / 5 / 5 / 7;
  }
  
  .art-eight {
    grid-area: 3 / 7 / 6 / 9;
  }
  
  .art-nine {
    grid-area: 5 / 1 / 8 / 3;
  }
  
  .art-ten {
    grid-area: 6 / 3 / 8 / 5;
  }
  
  .art-eleven {
    grid-area: 5 / 5 / 8 / 7;
  }
  
  .art-twelve {
    grid-area: 6 / 7 / 8 / 9;
  }
  
  /* สไตล์เฉพาะสำหรับการหน่วงเวลา */
  .item:nth-child(1) { transition-delay: 0s; }
  .item:nth-child(2) { transition-delay: 0.1s; }
  .item:nth-child(3) { transition-delay: 0.2s; }
  .item:nth-child(4) { transition-delay: 0.3s; }
  .item:nth-child(5) { transition-delay: 0.4s; }
  .item:nth-child(6) { transition-delay: 0.5s; }
  .item:nth-child(7) { transition-delay: 0.6s; }
  .item:nth-child(8) { transition-delay: 0.7s; }
  .item:nth-child(9) { transition-delay: 0.8s; }
  .item:nth-child(10) { transition-delay: 0.9s; }
  .item:nth-child(11) { transition-delay: 1s; }
  .item:nth-child(12) { transition-delay: 1.1s; }

.grid-3{
    margin-top: 15rem;
    --row: 6;
    font-size: 10em;
}
.grid-3 div{
    grid-column: 2/ 6;
    text-wrap: nowrap;
}
.grid-3 div:nth-child(even){
    text-align: right;
}
.grid-3 div:nth-child(5){
    grid-column: 1/ 10;
}
.grid-3 div:nth-child(4){
    grid-column: 1/ 7;
}

/* ************************************fish********************************** */

.fish-content{
    padding-top: 7.5rem;
    height: 100vh;
    display: grid;
    grid-template-rows: max-content 320px;
    row-gap: 2rem; 
}
.fish-data{
    text-align: center;
}
.fish-title{
    font-size: 100px;
    color: #2E373A;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.fish-descrip{
    color: rgb(0, 0, 0);
    font-size: 18px;
    padding-inline: 23rem;
    margin-bottom: 2rem;
}

.fish-img {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fish-img.visible {
    opacity: 1;
    transform: translateY(0);
}

.fish-img [class*=fish-blob] {
    background-color: white;
    position: absolute;
}

.fish-img [class*=fish-img] {
    position: absolute;
}

.fish-blob-1 {
    width: 450px;
    height: 450px;
    border-radius: 38% 62% 66% 34%/60% 41% 59% 40%;
    top: -33rem;
    left: -8rem;
    animation: blob-1 4s linear infinite;
}

.fish-img-1 {
    width: 300px;
    top: 1rem;
    right: -2rem;
}

.fish-blob-2 {
    width: 500px;
    height: 500px;
    border-radius: 59% 41% 19% 81%/34% 72% 28% 66%;
    top: -42rem;
    right: -8rem;
    animation: blob-2 4s linear infinite;
}

.fish-img-2 {
    width: 400px;
    bottom: 10rem;
    left: 0;
}

.fish-blob-3 {
    width: 450px;
    height: 400px;
    border-radius: 57% 43% 40% 60%/49% 34% 66% 51%;
    left: 8rem;
    bottom: 1rem;
    animation: blob-3 4s linear infinite;
}

.fish-img-3 {
    width: 400px;
    top: 1rem;
    right: -1rem;
}

.fish-blob-4 {
    width: 400px;
    height: 380px;
    border-radius: 78% 22% 20% 80%/53% 46% 54% 47%;
    right: 5rem;
    bottom: 6rem;
    animation: blob-4 4s linear infinite;
}

.fish-img-4 {
    width: 350px;
    left: 3rem;
    bottom: 10rem;
}

@keyframes blob-1 {
    0%, 100% {
        border-radius: 38% 62% 66% 34%/60% 41% 59% 40%;
    }
    33% {
        border-radius: 59% 41% 55% 45%/64% 22% 78% 36%;
    }
    66% {
        border-radius: 59% 41% 35% 65%/46% 67% 33% 54%;
    }
}

@keyframes blob-2 {
    0%, 100% {
        border-radius: 59% 41% 19% 81%/34% 72% 28% 66%;
    }
    33% {
        border-radius: 78% 22% 20% 80%/53% 46% 54% 47%;
    }
    66% {
        border-radius: 57% 43% 40% 60%/49% 34% 66% 51%;
    }
}

@keyframes blob-3 {
    0%, 100% {
        border-radius: 57% 43% 40% 60%/49% 34% 66% 51%;
    }
    33% {
        border-radius: 51% 49% 30% 70%/37% 63% 37% 63%;
    }
    66% {
        border-radius: 51% 49% 28% 72%/77% 75% 25% 23%;
    }
}

@keyframes blob-4 {
    0%, 100% {
        border-radius: 78% 22% 20% 80%/53% 46% 54% 47%;
    }
    33% {
        border-radius: 65% 35% 42% 58%/64% 28% 72% 36%;
    }
    66% {
        border-radius: 32% 68% 46% 54%/29% 22% 78% 71%;
    }
}

  /*=============== CARD ===============*/
  .containerF {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-inline: 1.5rem;
}

.cardF_article {
    position: relative;
    display: flex;
    justify-content: center;
    margin-left: 20px; 
}

.cardF_profile, 
.cardF_mask {
    width: 80px; 
    height: 80px; 
    background-color: rgb(111, 107, 107);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.cardF_profile img, 
.cardF_mask img {
    width: 70px;
}

.cardF_profile {
    border: 3px solid white; 
    z-index: 5;
    transition: opacity .4s, transform .4s;
}

.cardF_tooltip {
    position: absolute;
    bottom: -2rem;
    padding-bottom: 5rem;
    transition: opacity .4s, bottom .4s cubic-bezier(.6, -.5, .3, 1.5);
    pointer-events: none;
    opacity: 0;
}

.cardF_content {
    position: relative;
    width: 250px; 
    background-color: white;
    box-shadow: 0 8px 16px hsla(230, 50%, 20%, .1); 
    padding: 1rem; 
    border-radius: 1rem;
}

.cardF_content::after {
    content: "";
    width: 20px;
    height: 20px;
    background-color: white;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.5rem;
    margin-inline: auto;
    border-radius: .25rem;
    rotate: 45deg;
}

.cardF_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgb(175, 175, 175);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.cardF_header span {
    color: black;
    font-weight: 500;
}

.cardF_fish {
    display: flex;
    column-gap: .5rem;
}

.cardF_fish a {
    font-size: 1rem;
    color: black;
}

.cardF_image {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 0.5rem; 
}

.cardF_data {
    text-align: center;
}

.cardF_name {
    font-size: var(--normal-font-size);
    color: black;
    font-weight: 600;
    margin-bottom: .25rem;
}

.cardF_profession {
    font-size: var(--small-font-size);
    font-weight: 500;
    margin-bottom: 1rem; 
}

/* Scale profile image */
.cardF_article:hover .cardF_profile {
    transform: scale(.8);
    opacity: .7;
}

/* Show tooltip card */
.cardF_article:hover .cardF_tooltip {
    opacity: 1;
    pointer-events: initial;
    bottom: 0.25rem;
}


/* ************************************fish page********************************** */
.fish_section {
    height: 100vh;
    overflow: hidden;
    position: inherit;
  }
  
  .fish_section video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(50%);
  }
  
  .fish_text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-80%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    padding: 50px;
    text-align: left;
  }
  
  .fish_text p{
    margin-bottom: 20px; /* ระยะห่างระหว่างย่อหน้า */
    text-indent: 1.5em; /* การย่อหน้าด้วยการเว้นวรรค */
    font-size: 20px;
  }
  
  .fish_img {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translate(-30%,-60%);
    max-width: 500px;
  }
  
  .fish_back{
    color: #f9c803;
    text-decoration: none;
  }
  
  .card img,
  .item img {
    width: 90%;
    height: 90%;
  }



  .fish_section {
    height: 100vh;
    overflow: hidden;
    position: inherit;
  }
  
  .fish_section video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(50%);
  }
  
  .fish_text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-80%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    padding: 50px;
    text-align: left;
  }
  
  .fish_text p{
    margin-bottom: 20px; /* ระยะห่างระหว่างย่อหน้า */
    text-indent: 1.5em; /* การย่อหน้าด้วยการเว้นวรรค */
    font-size: 20px;
  }
  
  .fish_img {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translate(-30%,-60%);
    max-width: 500px;
  }
  
  .fish_back{
    color: #f9c803;
    text-decoration: none;
  }
  
  .card img,
  .item img {
    width: 90%;
    height: 90%;
  }

/* ********************************************************************** */

@media screen and (max-width: 1023px){
    .banner .image img{
        position: absolute;
        height: 130%;
        left: 50%;
        transform: translateX(-50%);
        bottom: -100px;
    }
    .grid-2 div:nth-child(1){
        grid-row: 2;
    }
    .grid-2 div:nth-child(3){
        grid-row: 6;
    }
    .grid-2 div:nth-child(4){
        grid-row: 5;
    }
    .banner .content h1{
        font-size: 7em;
    }
    .banner .content{
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .banner{
        overflow: hidden;
    }
    .grid{
        display: block;
    }
    .grid-3{
        font-size: 7em;
        display: block;
        margin-bottom: 100px;
    }
    .fish-blob-1 {
        width: 400px;
        height: 400px;
        top: -33rem;
        left: -8rem;
    }
    .fish-img-1 {
        width: 250px;
        top: 1rem;
        right: -2rem;
    }
    .fish-blob-2 {
        width: 400px;
        height: 450px;
        top: -42rem;
        right: -8rem;
    }
    .fish-img-2 {
        width: 350px;
        bottom: 10rem;
        left: 0;
    }
    .fish-blob-3 {
        width: 300px;
        height: 350px;
        bottom: 1rem;
    }
    .fish-img-3 {
        width: 300px;
        top: 1rem;
        right: -1rem;
    }
    .fish-blob-4 {
        width: 300px;
        height: 320px;
        bottom: 6rem;
    }
    .fish-img-4 {
        width: 250px;
        left: 6rem;
        bottom: 5rem;
    }
}

@media screen and (max-width: 768px){
    .banner .image img{
        position: absolute;
        height: 130%;
        left: 50%;
        transform: translateX(-50%);
        bottom: -100px;
    }
    .grid-2 div:nth-child(1){
        grid-row: 2;
    }
    .grid-2 div:nth-child(3){
        grid-row: 6;
    }
    .grid-2 div:nth-child(4){
        grid-row: 5;
    }
    .banner .content h1{
        font-size: 7em;
    }
    .banner .content{
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .banner{
        overflow: hidden;
    }
    .grid{
        display: block;
    }
    .grid-3{
        font-size: 5em;
        display: block;
        margin-bottom: 100px;
    }
    .grid-area {
        grid-template-columns: repeat(6, 90px);
        grid-template-rows: repeat(9, 90px);
      }
    
    .guinea {
        padding: 0px 50px 80px;
    }

      .fish-descrip{
        padding-inline: 10rem;
        margin-bottom: 2rem;
    }
    .fish-blob-1 {
        width: 300px;
        height: 300px;
        top: -30rem;
        left: -8rem;
    }
    .fish-img-1 {
        width: 250px;
        top: 1rem;
        right: -2rem;
    }
    .fish-blob-2 {
        width: 300px;
        height: 350px;
        top: -35rem;
        right: -8rem;
    }
    .fish-img-2 {
        width: 350px;
        bottom: 8rem;
        left: 0;
    }
    .fish-blob-3 {
        width: 250px;
        height: 300px;
        bottom: 5rem;
        left: 0;
    }
    .fish-img-3 {
        width: 250px;
        top: 1rem;
        right: -1rem;
    }
    .fish-blob-4 {
        width: 250px;
        height: 280px;
        bottom: 6rem;
        right: 2rem;
    }
    .fish-img-4 {
        width: 250px;
        left: 6rem;
        bottom: 5rem;
    }
}

.autoRotate{
    animation: autoRotateAnimation;
    animation-timeline: view();
}
@keyframes autoRotateAnimation{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}
.autoShow{
    animation: autoShowAnimation both;
    animation-timeline: view(70% 5%);

}
@keyframes autoShowAnimation{
    from{
        opacity: 0;
        transform: translateY(200px) scale(0.3);
    }to{
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.autoBLur{
    animation: autoBLurAnimation linear both;
    animation-timeline: view();
}
@keyframes autoBLurAnimation{
    0%{
        filter: blur(40px);
    }
    45%, 55%{
        filter: blur(0px);
    }
    100%{
        filter: blur(40px);
    }
}


