﻿
/* -------- ท้องฟ้าโปร่งใส + เมฆ -------- */
.sky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60vh;
    background: linear-gradient(to bottom, rgba(135,206,250,0.35) 0%, rgba(176,224,230,0.15) 100%);
    overflow: hidden;
    z-index: 2;
}

/* เมฆพื้นฐาน */
.cloud {
    position: absolute;
    width: 200px;
    height: 80px;
    background: rgba(255,255,255,0.8);
    border-radius: 100px;
    filter: blur(1px);
}

    .cloud::before, .cloud::after {
        content: "";
        position: absolute;
        background: rgba(255,255,255,0.8);
        border-radius: 50%;
    }

    .cloud::before {
        width: 100px;
        height: 100px;
        top: -30px;
        left: 10px;
    }

    .cloud::after {
        width: 120px;
        height: 120px;
        top: -50px;
        right: 15px;
    }

/* แต่ละก้อนเมฆกระจายสูงต่ำ และความเร็วต่างกัน */
.cloud1 {
    top: 40px;
    left: -250px;
    animation: cloudMove 55s linear infinite;
}

.cloud2 {
    top: 90px;
    left: -300px;
    animation: cloudMove 65s linear infinite;
    opacity: 0.7;
    transform: scale(1.2);
}

.cloud3 {
    top: 150px;
    left: -200px;
    animation: cloudMove 75s linear infinite;
    opacity: 0.6;
    transform: scale(0.9);
}

.cloud4 {
    top: 30px;
    left: -400px;
    animation: cloudMove 85s linear infinite;
    opacity: 0.8;
    transform: scale(1.4);
}

.cloud5 {
    top: 180px;
    left: -150px;
    animation: cloudMove 95s linear infinite;
    opacity: 0.65;
    transform: scale(1.1);
}

.cloud6 {
    top: 220px;
    left: -350px;
    animation: cloudMove 100s linear infinite;
    opacity: 0.55;
    transform: scale(1.3);
}

.cloud7 {
    top: 60px;
    left: -500px;
    animation: cloudMove 110s linear infinite;
    opacity: 0.7;
    transform: scale(1.5);
}

.cloud8 {
    top: 200px;
    left: -600px;
    animation: cloudMove 120s linear infinite;
    opacity: 0.6;
    transform: scale(0.8);
}

@@keyframes cloudMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(150vw);
    }
}

/* -------- คลื่นน้ำเหมือนเดิม -------- */
.ocean {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 25vh;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-position: 0 bottom;
    background-size: 50% 100%;
    opacity: 0.7;
}

.wave1 {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='120'><path fill='rgba(255,255,255,0.6)' d='M0 67 C 273 183 822 -40 1200 67 V 120 H 0 Z'></path></svg>");
    animation: waveMove 8s linear infinite;
}

.wave2 {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='120'><path fill='rgba(255,255,255,0.4)' d='M0 77 C 473 -40 822 183 1200 77 V 120 H 0 Z'></path></svg>");
    animation: waveMove 12s linear infinite;
    bottom: 5px;
}

.wave3 {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='120'><path fill='rgba(255,255,255,0.2)' d='M0 87 C 273 40 822 140 1200 87 V 120 H 0 Z'></path></svg>");
    animation: waveMove 18s linear infinite;
    bottom: 10px;
}

@@keyframes waveMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


