@import url('https://fonts.googleapis.com/css2?family=Bubblegum+Sans&family=Quicksand:wght@400;700&display=swap');

/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    color: #fff;
    /* background: linear-gradient(180deg, #2980b9 0%, #2c3e50 100%); */
    background: url('assets/background.avif') no-repeat center center fixed;
    background-size: cover;
    overflow: hidden;
    /* Prevent scrolling, handle in page-container if needed */
    height: 100vh;
    width: 100vw;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Bubblegum Sans', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Page Container */
.page-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 10;
    /* Above background */
}

/* Buttons */
.btn {
    background-color: #ff7f50;
    /* Coral color */
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.5rem;
    font-family: 'Bubblegum Sans', cursive;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-block;
    z-index: 100;
}

.btn:hover {
    transform: scale(1.1) rotate(-3deg);
    background-color: #ff6b3b;
}

/* Sea Background */
.sea-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* .bg-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
} */

.sea-creature {
    position: absolute;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

/* Animation Classes */
.whale {
    bottom: 5%;
    left: -100px;
    animation: swimRight 45s linear infinite;
}

.fish-school-1 {
    top: 20%;
    right: -100px;
    animation: swimLeft 30s linear infinite;
    animation-delay: 2s;
}

.octopus {
    bottom: -20px;
    right: 20px;
    animation: bounce 6s ease-in-out infinite;
}

.algae-left {
    bottom: -30px;
    left: 20px;
    transform-origin: bottom center;
    animation: sway 5s ease-in-out infinite alternate;
}

/* Keyframes */
@keyframes swimRight {
    0% {
        transform: translateX(-200px) scaleX(-1);
    }

    49% {
        transform: translateX(100vw) scaleX(-1);
    }

    50% {
        transform: translateX(100vw) scaleX(1);
    }

    /* Turn around */
    100% {
        transform: translateX(-200px) scaleX(1);
    }
}

@keyframes swimLeft {
    0% {
        transform: translateX(100vw) scaleX(1);
    }

    100% {
        transform: translateX(-200px) scaleX(1);
    }
}

@keyframes sway {
    0% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(5deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Transitions Overlay */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(100%);
    pointer-events: none;
}

.transition-active {
    animation: bubbleTransition 2s ease-in-out forwards;
}

@keyframes bubbleTransition {
    0% {
        transform: translateY(110%);
    }

    40% {
        transform: translateY(0);
    }

    60% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-110%);
    }
}