/* 전체 사이트 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

a {
    text-decoration: none;
    color: #3498db;
    transition: color 0.3s;
}

a:hover {
    color: #2980b9;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background-color: #2980b9;
    color: white;
}

img {
    max-width: 100%;
    height: auto;
}

/* 헤더 스타일 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2rem;
    margin: 0;
    color: #3498db;
}

.header-right {
    display: flex;
    align-items: center;
}

.language-selector {
    margin-right: 30px;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background-color: transparent;
    border: 1px solid #3498db;
    color: #3498db;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: #3498db;
    color: white;
}

.lang-btn:hover:not(.active) {
    background-color: rgba(52, 152, 219, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #2c3e50;
    font-weight: 600;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #3498db;
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 히어로 섹션 */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 0;
    margin-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(79, 195, 247, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 게임 섹션 */
.games {
    background-color: #fff;
}

.games h2 {
    text-align: center;
    margin-bottom: 50px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.game-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.game-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-item h3 {
    padding: 20px 20px 10px;
}

.game-item p {
    padding: 0 20px 20px;
    color: #666;
}

.game-item .btn {
    margin: 0 20px 20px;
}

/* 수초 섹션 */
.waterplant {
    background: linear-gradient(to bottom, #e6f7ff, #b3e0ff);
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

.waterplant h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2980b9;
}

.section-desc {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-desc p {
    margin-bottom: 10px;
}

.section-desc p:last-child {
    margin-bottom: 0;
}

.waterplant-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.category-btn {
    background-color: white;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-btn:hover, .category-btn.active {
    background-color: #3498db;
    color: white;
}

.waterplant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
}

.waterplant-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.waterplant-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.waterplant-image {
    height: 200px;
    overflow: hidden;
    background-color: #e6f7ff;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: plantSway 6s ease-in-out infinite alternate;
}

@keyframes plantSway {
    0% {
        transform: rotate(0deg) translateY(0px);
    }
    25% {
        transform: rotate(2deg) translateY(-3px);
    }
    50% {
        transform: rotate(-1deg) translateY(-5px);
    }
    75% {
        transform: rotate(1deg) translateY(-2px);
    }
    100% {
        transform: rotate(-2deg) translateY(0px);
    }
}

.waterplant-image img {
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.3s;
    transform-origin: bottom center;
}

.waterplant-item:hover .waterplant-image img {
    transform: scale(1.05) translateY(-5px);
}

/* 카테고리별 미세한 애니메이션 차이 */
.seaweed .waterplant-image {
    animation-duration: 5s;
}

.coral .waterplant-image {
    animation-duration: 7s;
}

.shell .waterplant-image {
    animation-duration: 9s;
}

.starfish .waterplant-image {
    animation-duration: 8s;
}

.waterplant-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.waterplant-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.waterplant-info p {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.waterplant-stats {
    font-size: 0.9rem;
    color: #3498db !important;
    font-weight: 600;
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* 연락처 섹션 */
.contact {
    background-color: #fff;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* 푸터 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.social-links img {
    width: 20px;
    height: 20px;
}

/* 푸터 스타일 추가 */
.footer-links {
    margin: 15px 0;
    text-align: center;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
    text-decoration: underline;
}

.footer-divider {
    color: #fff;
    margin: 0 10px;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    /* 모바일 메뉴 스타일 */
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #3498db;
        margin: 5px 0;
        transition: transform 0.3s, opacity 0.3s;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
        margin-top: 0;
        padding: 50px 0;
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
    }
}

/* 수중 배경 효과 */
.waterplant {
    background: linear-gradient(to bottom, #e6f7ff, #b3e0ff);
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

/* 버블 효과 */
@keyframes bubbleRise {
    0% {
        transform: translateY(110%);
        opacity: 0;
    }
    20% {
        opacity: 0.2;
    }
    40% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-20%);
        opacity: 0;
    }
}

/* 버블 요소 생성 */
.waterplant::before,
.waterplant::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 10%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0) 60%);
    background-size: 15px 15px;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.05;
}

.waterplant::before {
    animation: bubbleRise 15s linear infinite;
}

.waterplant::after {
    background-position: 7px 7px;
    animation: bubbleRise 20s linear infinite;
    animation-delay: 2s;
    opacity: 0.03;
}

/* 추가 버블 생성을 위한 가상 요소 */
.waterplant-grid::before,
.waterplant-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 5%, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0) 40%);
    background-size: 20px 20px;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.04;
    z-index: -1;
}

.waterplant-grid::before {
    animation: bubbleRise 25s linear infinite;
    animation-delay: 5s;
}

.waterplant-grid::after {
    background-size: 10px 10px;
    background-position: 5px 5px;
    animation: bubbleRise 18s linear infinite;
    animation-delay: 8s;
    opacity: 0.03;
}

/* 구조물 섹션 */
.rock {
    background: linear-gradient(to top, #e6f7ff, #b3e0ff);
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

.rock h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2980b9;
}

.rock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
}

.rock-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.rock-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.rock-image {
    height: 220px;
    overflow: hidden;
    background-color: #e6f7ff;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rockFloat 8s ease-in-out infinite;
}

.rock-image img {
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.3s;
    transform-origin: bottom center;
}

.rock-item:hover .rock-image {
    animation-duration: 4s;
}

.rock-item:hover .rock-image img {
    transform: scale(1.05) translateY(-5px);
}

.rock-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rock-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.rock-info p {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* 물결 효과 대신 버블 효과로 통일 */
.rock::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 10%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0) 60%);
    background-size: 15px 15px;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.05;
    animation: bubbleRise 15s linear infinite;
}

.rock::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: 7px 7px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 10%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0) 60%);
    background-size: 15px 15px;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.03;
    animation: bubbleRise 20s linear infinite;
    animation-delay: 2s;
}

/* 추가 버블 생성을 위한 가상 요소 */
.rock-grid::before,
.rock-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 5%, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0) 40%);
    background-size: 20px 20px;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.04;
    z-index: -1;
}

.rock-grid::before {
    animation: bubbleRise 25s linear infinite;
    animation-delay: 5s;
}

.rock-grid::after {
    background-size: 10px 10px;
    background-position: 5px 5px;
    animation: bubbleRise 18s linear infinite;
    animation-delay: 8s;
    opacity: 0.03;
}

/* 해양쓰레기 섹션 */
.trash {
    background: linear-gradient(to bottom, #e6f7ff, #b3e0ff);
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

.trash h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2980b9;
}

.trash .section-desc {
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.trash-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.trash-category-btn {
    background-color: white;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.trash-category-btn:hover,
.trash-category-btn.active {
    background-color: #3498db;
    color: white;
}

.trash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
}

.trash-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.trash-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.trash-image {
    height: 200px;
    overflow: hidden;
    background-color: #e6f7ff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: trashDrift 10s ease-in-out infinite;
}

.trash-image img {
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.3s;
    transform-origin: bottom center;
}

.trash-item:hover .trash-image img {
    transform: scale(1.05) translateY(-5px);
}

/* 쓰레기 레벨별 애니메이션 차이 */
.trash-level-1 {
    background-color: #e6f7ff;
    animation-duration: 7s;
}

.trash-level-2 {
    background-color: #e6f7ff;
    animation-duration: 8s;
}

.trash-level-3 {
    background-color: #e6f7ff;
    animation-duration: 9s;
}

.trash-level-4 {
    background-color: #e6f7ff;
    animation-duration: 10s;
}

.trash-level-5 {
    background-color: #e6f7ff;
    animation-duration: 11s;
}

/* 레벨별 이미지 컨테이너 스타일 조정 */
.trash-level-1 .trash-image {
    animation-duration: 7s;
}

.trash-level-2 .trash-image {
    animation-duration: 8s;
}

.trash-level-3 .trash-image {
    animation-duration: 9s;
}

.trash-level-4 .trash-image {
    animation-duration: 10s;
}

.trash-level-5 .trash-image {
    animation-duration: 11s;
}

.trash-level {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

/* 레벨별 태그 색상 */
.trash-level-1.trash-level {
    background-color: #3498db;
    color: white;
}

.trash-level-2.trash-level {
    background-color: #3498db;
    color: white;
}

.trash-level-3.trash-level {
    background-color: #3498db;
    color: white;
}

.trash-level-4.trash-level {
    background-color: #3498db;
    color: white;
}

.trash-level-5.trash-level {
    background-color: #3498db;
    color: white;
}

.trash-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.trash-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.trash-info p {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* 버블 효과 */
.trash::before,
.trash::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 10%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0) 60%);
    background-size: 15px 15px;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.05;
}

.trash::before {
    animation: bubbleRise 15s linear infinite;
}

.trash::after {
    background-position: 7px 7px;
    animation: bubbleRise 20s linear infinite;
    animation-delay: 2s;
    opacity: 0.03;
}

/* 추가 버블 생성을 위한 가상 요소 */
.trash-grid::before,
.trash-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 5%, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0) 40%);
    background-size: 20px 20px;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.04;
    z-index: -1;
}

.trash-grid::before {
    animation: bubbleRise 25s linear infinite;
    animation-delay: 5s;
}

.trash-grid::after {
    background-size: 10px 10px;
    background-position: 5px 5px;
    animation: bubbleRise 18s linear infinite;
    animation-delay: 8s;
    opacity: 0.03;
}

/* 헬퍼 섹션 */
.helper {
    background: linear-gradient(to bottom, #e6f7ff, #b3e0ff);
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

.helper h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2980b9;
}

.helper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
}

.helper-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.helper-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.helper-image {
    height: 200px;
    overflow: hidden;
    background-color: #e6f7ff;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: helperBounce 7s ease-in-out infinite;
}

.helper-image img {
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.3s;
    transform-origin: bottom center;
}

.helper-item:hover .helper-image img {
    transform: scale(1.05) translateY(-5px);
}

.helper-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.helper-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.helper-info p {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* 버블 효과 */
.helper::before,
.helper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 10%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0) 60%);
    background-size: 15px 15px;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.05;
}

.helper::before {
    animation: bubbleRise 15s linear infinite;
}

.helper::after {
    background-position: 7px 7px;
    animation: bubbleRise 20s linear infinite;
    animation-delay: 2s;
    opacity: 0.03;
}

/* 추가 버블 생성을 위한 가상 요소 */
.helper-grid::before,
.helper-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 5%, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0) 40%);
    background-size: 20px 20px;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.04;
    z-index: -1;
}

.helper-grid::before {
    animation: bubbleRise 25s linear infinite;
    animation-delay: 5s;
}

.helper-grid::after {
    background-size: 10px 10px;
    background-position: 5px 5px;
    animation: bubbleRise 18s linear infinite;
    animation-delay: 8s;
    opacity: 0.03;
}

/* 작은 물고기 섹션 */
.littlefish {
    background: linear-gradient(to bottom, #e6f7ff, #b3e0ff);
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

.littlefish h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2980b9;
}

.littlefish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
}

.littlefish-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.littlefish-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.littlefish-image {
    height: 180px;
    overflow: hidden;
    background-color: #e6f7ff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 물고기 움직임 애니메이션 */
@keyframes swim {
    0% {
        transform: translateX(-10px) rotate(2deg);
    }
    25% {
        transform: translateX(0px) translateY(-2px) rotate(-1deg);
    }
    50% {
        transform: translateX(10px) translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateX(0px) translateY(2px) rotate(1deg);
    }
    100% {
        transform: translateX(-10px) translateY(0px) rotate(2deg);
    }
}

.littlefish-image img {
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.3s;
    animation: swim 8s ease-in-out infinite;
}

.littlefish-item:hover .littlefish-image img {
    animation-duration: 4s;
}

.littlefish-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.littlefish-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.littlefish-info p {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* 버블 효과 */
.littlefish::before,
.littlefish::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 10%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0) 60%);
    background-size: 15px 15px;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.05;
}

.littlefish::before {
    animation: bubbleRise 15s linear infinite;
}

.littlefish::after {
    background-position: 7px 7px;
    animation: bubbleRise 20s linear infinite;
    animation-delay: 2s;
    opacity: 0.03;
}

/* 추가 버블 생성을 위한 가상 요소 */
.littlefish-grid::before,
.littlefish-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 5%, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0) 40%);
    background-size: 20px 20px;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.04;
    z-index: -1;
}

.littlefish-grid::before {
    animation: bubbleRise 25s linear infinite;
    animation-delay: 5s;
}

.littlefish-grid::after {
    background-size: 10px 10px;
    background-position: 5px 5px;
    animation: bubbleRise 18s linear infinite;
    animation-delay: 8s;
    opacity: 0.03;
}

/* 기본 애니메이션 키프레임 정의 */
@keyframes sway {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(1deg) translateY(2px);
    }
    50% {
        transform: rotate(-1deg) translateY(-2px);
    }
    75% {
        transform: rotate(1deg) translateY(1px);
    }
    100% {
        transform: rotate(-1deg) translateY(-1px);
    }
}

@keyframes bubbleRise {
    0% {
        transform: translateY(110%);
        opacity: 0;
    }
    20% {
        opacity: 0.2;
    }
    40% {
        opacity: 0.4;
    }
    60% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-20%);
        opacity: 0;
    }
}

/* 수초 특화 애니메이션 */
@keyframes plantSway {
    0% {
        transform: rotate(0deg) translateY(0px);
    }
    25% {
        transform: rotate(2deg) translateY(-3px);
    }
    50% {
        transform: rotate(-1deg) translateY(-5px);
    }
    75% {
        transform: rotate(1deg) translateY(-2px);
    }
    100% {
        transform: rotate(-2deg) translateY(0px);
    }
}

/* 구조물 특화 애니메이션 */
@keyframes rockFloat {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px) rotate(0.5deg);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 해양쓰레기 특화 애니메이션 */
@keyframes trashDrift {
    0% {
        transform: translateX(-3px) translateY(0px) rotate(-1deg);
    }
    33% {
        transform: translateX(2px) translateY(-2px) rotate(0.5deg);
    }
    66% {
        transform: translateX(-2px) translateY(-4px) rotate(-0.5deg);
    }
    100% {
        transform: translateX(3px) translateY(0px) rotate(1deg);
    }
}

/* 작은 물고기 특화 애니메이션 - 이미 정의된 swim 애니메이션 수정 */
@keyframes swim {
    0% {
        transform: translateX(-10px) rotate(2deg);
    }
    25% {
        transform: translateX(0px) translateY(-2px) rotate(-1deg);
    }
    50% {
        transform: translateX(10px) translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateX(0px) translateY(2px) rotate(1deg);
    }
    100% {
        transform: translateX(-10px) translateY(0px) rotate(2deg);
    }
}

/* 헬퍼 특화 애니메이션 */
@keyframes helperBounce {
    0% {
        transform: translateY(0px) scale(1);
    }
    40% {
        transform: translateY(-8px) scale(1.02);
    }
    60% {
        transform: translateY(-5px) scale(1.01);
    }
    80% {
        transform: translateY(-2px) scale(1);
    }
    100% {
        transform: translateY(0px) scale(1);
    }
}

/* 각 섹션별 애니메이션 적용 */

/* 수초 섹션 애니메이션 */
.waterplant-image {
    animation: plantSway 6s ease-in-out infinite alternate;
}

.waterplant-item:hover .waterplant-image {
    animation-duration: 3s;
}

/* 카테고리별 미세한 애니메이션 차이 */
.seaweed .waterplant-image {
    animation-duration: 5s;
}

.coral .waterplant-image {
    animation-duration: 7s;
}

.shell .waterplant-image {
    animation-duration: 9s;
}

.starfish .waterplant-image {
    animation-duration: 8s;
}

/* 구조물 섹션 애니메이션 */
.rock-image {
    height: 220px;
    overflow: hidden;
    background-color: #e6f7ff;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rockFloat 8s ease-in-out infinite;
}

.rock-item:hover .rock-image {
    animation-duration: 4s;
}

/* 해양쓰레기 섹션 애니메이션 */
.trash-image {
    animation: trashDrift 10s ease-in-out infinite;
}

.trash-item:hover .trash-image {
    animation-duration: 5s;
}

/* 레벨별 이미지 컨테이너 스타일 조정 */
.trash-level-1 .trash-image {
    animation-duration: 7s;
}

.trash-level-2 .trash-image {
    animation-duration: 8s;
}

.trash-level-3 .trash-image {
    animation-duration: 9s;
}

.trash-level-4 .trash-image {
    animation-duration: 10s;
}

.trash-level-5 .trash-image {
    animation-duration: 11s;
}

/* 작은 물고기 섹션 애니메이션 */
.littlefish-image img {
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.3s;
    animation: swim 8s ease-in-out infinite;
}

.littlefish-item:hover .littlefish-image img {
    animation-duration: 4s;
}

/* 헬퍼 섹션 애니메이션 */
.helper-image {
    animation: helperBounce 7s ease-in-out infinite;
}

.helper-item:hover .helper-image {
    animation-duration: 3.5s;
}

/* 작은 물고기 유형별 애니메이션 */
/* 빠른 수영 - 정어리 */
@keyframes fastSwim {
    0% {
        transform: translateX(-15px) rotate(3deg);
    }
    25% {
        transform: translateX(5px) translateY(-3px) rotate(-2deg);
    }
    50% {
        transform: translateX(15px) translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateX(5px) translateY(3px) rotate(2deg);
    }
    100% {
        transform: translateX(-15px) translateY(0px) rotate(3deg);
    }
}

/* 지그재그 수영 - 줄무늬 물고기 */
@keyframes zigzagSwim {
    0% {
        transform: translateX(-10px) translateY(-8px) rotate(3deg);
    }
    20% {
        transform: translateX(0px) translateY(5px) rotate(-2deg);
    }
    40% {
        transform: translateX(10px) translateY(-5px) rotate(1deg);
    }
    60% {
        transform: translateX(5px) translateY(8px) rotate(-1deg);
    }
    80% {
        transform: translateX(-5px) translateY(-3px) rotate(2deg);
    }
    100% {
        transform: translateX(-10px) translateY(-8px) rotate(3deg);
    }
}

/* 점프하는 물고기 - 학꽁치 */
@keyframes jumpFish {
    0% {
        transform: translateX(-5px) translateY(0px) rotate(0deg);
    }
    15% {
        transform: translateX(0px) translateY(-15px) rotate(-3deg);
    }
    30% {
        transform: translateX(5px) translateY(0px) rotate(0deg);
    }
    45% {
        transform: translateX(8px) translateY(-8px) rotate(2deg);
    }
    60% {
        transform: translateX(5px) translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateX(0px) translateY(-12px) rotate(-2deg);
    }
    100% {
        transform: translateX(-5px) translateY(0px) rotate(0deg);
    }
}

/* 물결 수영 - 노랑꼬리 물고기 */
@keyframes wavySwim {
    0% {
        transform: translateX(-8px) translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateX(-4px) translateY(-5px) rotate(2deg);
    }
    50% {
        transform: translateX(8px) translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateX(4px) translateY(5px) rotate(-2deg);
    }
    100% {
        transform: translateX(-8px) translateY(0px) rotate(0deg);
    }
}

/* 우아한 수영 - 에보니라인 */
@keyframes elegantSwim {
    0% {
        transform: translateX(-12px) translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateX(0px) translateY(-3px) rotate(1deg) scale(1.05);
    }
    66% {
        transform: translateX(12px) translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateX(-12px) translateY(0px) rotate(0deg);
    }
}

/* 무리 수영 - 청어 */
@keyframes schoolSwim {
    0% {
        transform: translateX(-10px) translateY(0px) rotate(2deg);
    }
    20% {
        transform: translateX(-5px) translateY(-3px) rotate(0deg);
    }
    40% {
        transform: translateX(0px) translateY(0px) rotate(-2deg);
    }
    60% {
        transform: translateX(5px) translateY(3px) rotate(0deg);
    }
    80% {
        transform: translateX(10px) translateY(0px) rotate(2deg);
    }
    100% {
        transform: translateX(-10px) translateY(0px) rotate(2deg);
    }
}

/* 느린 관찰자 - 블루아이 */
@keyframes slowObserve {
    0% {
        transform: translateX(-5px) translateY(-2px) rotate(0deg);
    }
    33% {
        transform: translateX(0px) translateY(0px) rotate(1deg);
    }
    66% {
        transform: translateX(5px) translateY(-2px) rotate(0deg);
    }
    100% {
        transform: translateX(-5px) translateY(-2px) rotate(0deg);
    }
}

/* 스타일 수영 - 스트라이프백 */
@keyframes styleSwim {
    0% {
        transform: translateX(-10px) translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateX(-5px) translateY(-5px) rotate(2deg) scale(1.05);
    }
    50% {
        transform: translateX(10px) translateY(0px) rotate(0deg) scale(1);
    }
    75% {
        transform: translateX(5px) translateY(5px) rotate(-2deg) scale(1.05);
    }
    100% {
        transform: translateX(-10px) translateY(0px) rotate(0deg) scale(1);
    }
}

/* 날카로운 회전 - 가위꼬리 */
@keyframes sharpTurns {
    0% {
        transform: translateX(-10px) translateY(0px) rotate(-5deg);
    }
    25% {
        transform: translateX(5px) translateY(-3px) rotate(10deg);
    }
    50% {
        transform: translateX(10px) translateY(0px) rotate(-5deg);
    }
    75% {
        transform: translateX(-5px) translateY(3px) rotate(10deg);
    }
    100% {
        transform: translateX(-10px) translateY(0px) rotate(-5deg);
    }
}

/* 장난스러운 수영 - 블레니 */
@keyframes playfulSwim {
    0% {
        transform: translateX(-8px) translateY(0px) rotate(0deg);
    }
    15% {
        transform: translateX(-4px) translateY(-8px) rotate(3deg);
    }
    30% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
    }
    45% {
        transform: translateX(4px) translateY(-6px) rotate(-3deg);
    }
    60% {
        transform: translateX(8px) translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateX(4px) translateY(6px) rotate(3deg);
    }
    90% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateX(-8px) translateY(0px) rotate(0deg);
    }
}

/* 수직 부양 - 해마 */
@keyframes verticalFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(-5px) rotate(-2deg);
    }
    75% {
        transform: translateY(5px) rotate(1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* 각 물고기 유형별 애니메이션 적용 */
.fast-swimmer img {
    animation: fastSwim 6s ease-in-out infinite;
}

.zigzag-swimmer img {
    animation: zigzagSwim 8s ease-in-out infinite;
}

.jumper-fish img {
    animation: jumpFish 7s ease-in-out infinite;
}

.wavy-swimmer img {
    animation: wavySwim 10s ease-in-out infinite;
}

.elegant-swimmer img {
    animation: elegantSwim 12s ease-in-out infinite;
}

.school-swimmer img {
    animation: schoolSwim 9s ease-in-out infinite;
}

.slow-observer img {
    animation: slowObserve 15s ease-in-out infinite;
}

.style-swimmer img {
    animation: styleSwim 11s ease-in-out infinite;
}

.sharp-turns img {
    animation: sharpTurns 7s ease-in-out infinite;
}

.playful-swimmer img {
    animation: playfulSwim 8s ease-in-out infinite;
}

.vertical-floater img {
    animation: verticalFloat 10s ease-in-out infinite;
}

/* 큰 물고기 섹션 */
.bigfish {
    background: linear-gradient(to top, #e6f7ff, #b3e0ff);
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

.bigfish h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2980b9;
}

.bigfish-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.bigfish-category-btn {
    background-color: white;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bigfish-category-btn:hover,
.bigfish-category-btn.active {
    background-color: #3498db;
    color: white;
}

.bigfish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
}

.bigfish-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.bigfish-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.bigfish-image {
    height: 220px;
    overflow: hidden;
    background-color: #e6f7ff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.bigfish-image img {
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.3s;
    transform-origin: center center;
}

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

.bigfish-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bigfish-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.bigfish-info p {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.bigfish-type {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.bigfish-type.common {
    background-color: #3498db;
}

.bigfish-type.rare {
    background-color: #9b59b6;
}

.bigfish-type.epic {
    background-color: #e74c3c;
}

.bigfish-type.special {
    background-color: #f39c12;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

/* 버블 효과 */
.bigfish::before,
.bigfish::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 10%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0) 60%);
    background-size: 15px 15px;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.05;
}

.bigfish::before {
    animation: bubbleRise 15s linear infinite;
}

.bigfish::after {
    background-position: 7px 7px;
    animation: bubbleRise 20s linear infinite;
    animation-delay: 2s;
    opacity: 0.03;
}

/* 추가 버블 생성을 위한 가상 요소 */
.bigfish-grid::before,
.bigfish-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 5%, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0) 40%);
    background-size: 20px 20px;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.04;
    z-index: -1;
}

.bigfish-grid::before {
    animation: bubbleRise 25s linear infinite;
    animation-delay: 5s;
}

.bigfish-grid::after {
    background-size: 10px 10px;
    background-position: 5px 5px;
    animation: bubbleRise 18s linear infinite;
    animation-delay: 8s;
    opacity: 0.03;
}

/* 큰 물고기 애니메이션 */
@keyframes bigFishSwim {
    0% {
        transform: translateX(-5px) rotate(-1deg);
    }
    25% {
        transform: translateX(0px) translateY(-2px) rotate(1deg);
    }
    50% {
        transform: translateX(5px) translateY(0px) rotate(-1deg);
    }
    75% {
        transform: translateX(0px) translateY(2px) rotate(1deg);
    }
    100% {
        transform: translateX(-5px) translateY(0px) rotate(-1deg);
    }
}

/* 큰 물고기 유형별 애니메이션 */
/* 블루탱 - 활발한 수영 */
@keyframes blueTangSwim {
    0% {
        transform: translateX(-8px) rotate(-2deg);
    }
    33% {
        transform: translateX(8px) translateY(-5px) rotate(2deg);
    }
    66% {
        transform: translateX(-4px) translateY(3px) rotate(-1deg);
    }
    100% {
        transform: translateX(-8px) translateY(0px) rotate(-2deg);
    }
}

/* 클라운피쉬 - 통통 튀는 움직임 */
@keyframes clownfishSwim {
    0% {
        transform: translateX(-3px) translateY(0px) rotate(0deg);
    }
    20% {
        transform: translateX(3px) translateY(-8px) rotate(2deg);
    }
    40% {
        transform: translateX(5px) translateY(0px) rotate(0deg);
    }
    60% {
        transform: translateX(3px) translateY(5px) rotate(-2deg);
    }
    80% {
        transform: translateX(-3px) translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateX(-3px) translateY(0px) rotate(0deg);
    }
}

/* 고비류 - 바닥에 붙어 움직임 */
@keyframes gobySwim {
    0% {
        transform: translateX(-5px) translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateX(0px) translateY(2px) rotate(-1deg);
    }
    66% {
        transform: translateX(5px) translateY(0px) rotate(1deg);
    }
    100% {
        transform: translateX(-5px) translateY(0px) rotate(0deg);
    }
}

/* 엔젤피쉬 - 우아한 움직임 */
@keyframes angelfishSwim {
    0% {
        transform: translateX(-3px) translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateX(0px) translateY(-5px) rotate(2deg) scale(1.03);
    }
    50% {
        transform: translateX(3px) translateY(0px) rotate(0deg) scale(1);
    }
    75% {
        transform: translateX(0px) translateY(3px) rotate(-2deg) scale(1.02);
    }
    100% {
        transform: translateX(-3px) translateY(0px) rotate(0deg) scale(1);
    }
}

/* 특별한 물고기 - 특별한 움직임 */
@keyframes specialFishSwim {
    0% {
        transform: translateX(-5px) translateY(0px) rotate(0deg) scale(1);
    }
    20% {
        transform: translateX(-2px) translateY(-7px) rotate(3deg) scale(1.05);
    }
    40% {
        transform: translateX(5px) translateY(-3px) rotate(-2deg) scale(1.03);
    }
    60% {
        transform: translateX(2px) translateY(4px) rotate(0deg) scale(1.02);
    }
    80% {
        transform: translateX(-3px) translateY(2px) rotate(2deg) scale(1.01);
    }
    100% {
        transform: translateX(-5px) translateY(0px) rotate(0deg) scale(1);
    }
}

/* 바다거북 - 천천히 움직임 */
@keyframes turtleSwim {
    0% {
        transform: translateX(-10px) translateY(0px) rotate(-1deg);
    }
    50% {
        transform: translateX(10px) translateY(-3px) rotate(1deg);
    }
    100% {
        transform: translateX(-10px) translateY(0px) rotate(-1deg);
    }
}

/* 물고기 유형별 애니메이션 적용 */
.bigfish-image img {
    animation: bigFishSwim 10s ease-in-out infinite;
}

.blueTang img {
    animation: blueTangSwim 8s ease-in-out infinite;
}

.clownfish img {
    animation: clownfishSwim 6s ease-in-out infinite;
}

.goby img {
    animation: gobySwim 12s ease-in-out infinite;
}

.angelfish img {
    animation: angelfishSwim 15s ease-in-out infinite;
}

.special-fish img {
    animation: specialFishSwim 10s ease-in-out infinite;
}

.turtle img {
    animation: turtleSwim 20s ease-in-out infinite;
}

.bigfish-item:hover .bigfish-image img {
    animation-duration: 4s;
}

.game-preview {
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    text-align: center;
}

.game-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    margin: 0 auto;
}

/* 다운로드 버튼 스타일 */
.download-section {
    margin-top: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.download-btn {
    display: flex;
    align-items: center;
    background-color: #333;
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.download-btn.android {
    background-color: #a4c639;
}

.download-btn.ios {
    background-color: #000;
}

.download-btn i {
    font-size: 2rem;
    margin-right: 15px;
}

.download-text {
    display: flex;
    flex-direction: column;
}

.small-text {
    font-size: 0.8rem;
    opacity: 0.8;
}

.big-text {
    font-size: 1.2rem;
    font-weight: bold;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.download-btn.android:hover {
    background-color: #8fb52e;
}

.download-btn.ios:hover {
    background-color: #333;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 80%;
    }
}

/* 환경 영향 섹션 스타일 */
.environmental-impact {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #3498db;
}

.environmental-impact h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.environmental-impact p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.environmental-impact p:last-child {
    margin-bottom: 0;
}

/* 환경 보호 실천 섹션 스타일 */
.environmental-action {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #2ecc71;
}

.environmental-action h3 {
    color: #2ecc71;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.action-list {
    list-style-type: none;
    padding: 0;
}

.action-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.action-list li:before {
    content: "✓";
    color: #2ecc71;
    margin-right: 10px;
    font-weight: bold;
}

.action-list li:last-child {
    border-bottom: none;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .environmental-impact,
    .environmental-action {
        padding: 15px;
    }
    
    .environmental-impact h3,
    .environmental-action h3 {
        font-size: 1.2rem;
    }
    
    .action-list li {
        padding: 8px 0;
    }
}

/* Visitor Counter Styles */
.visitor-counter {
    text-align: center;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #f0f0f0;
}

.visitor-counter #daily-count,
.visitor-counter #total-count {
    font-weight: bold;
    color: #3498db;
    margin: 0 5px;
}

.counter-divider {
    margin: 0 10px;
    color: #888;
}

@media (max-width: 768px) {
    .visitor-counter {
        margin: 10px 0;
        font-size: 0.8rem;
    }
}

/* 로고 링크 스타일 */
.logo-link {
    text-decoration: none;
}

.logo-link h1 {
    color: #3498db;
    transition: color 0.3s;
}

.logo-link:hover h1 {
    color: #2980b9;
}

/* 비디오를 감싸는 컨테이너 설정 */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 비율 (9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    border-radius: 12px; /* 디자인에 맞게 모서리 곡률 조정 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* 입체감 효과 */
}

/* 컨테이너 안의 iframe을 꽉 채우기 */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 모바일 대응: 여백 조정 */
@media (max-width: 768px) {
    .game-preview {
        padding: 0 15px;
    }
}