body {
    background-image: linear-gradient(top, #00C5D9, #066A9B);
    background-image: -webkit-linear-gradient(top, #00C5D9, #066A9B);
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    letter-spacing: 0.25px;
    font-size: 21px;
    margin: 0;
    padding: 0;
    height: 100vh;
    color: white;
    overflow: hidden; /* Prevents scrollbars from appearing during gameplay */
}

h1#start-title {
    font-family: 'Arial Black', sans-serif;
    font-weight: 300;
    color: #0f4d92;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.5);
    font-size: 4rem;
}

h2 {
    margin-top: 0;
}

#info-wrapper {
    background-color: rgba(0,0,0,0.4);
    padding: 30px;
    border-radius: 20px;
    border: 4px solid white;
    position: relative;
    max-width: 600px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

#game-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    text-align: center;
    height: 100vh;
    width: 100vw;
}

#game-stats {
    font-size: 24px;
    position: absolute;
    left: 28px;
    top: 28px;
    color: #FFF;
    min-width: 100px;
    min-height: 180px;
    background-color: rgba(0,0,0,0.4);
    padding: 20px;
    border-radius: 20px;
    border: 4px solid white;
    display: none;
    text-align: left;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#game-day {
    font-family: 'Black Ops One', 'Arial Black', sans-serif;
}

#game-score {
    margin-top: 8px;
    font-size: 21px;
    display: block;
}

#game-goal {
    display: none;
    font-size: 32px;
    position: absolute;
    top: 28px;
    background-color: rgba(0,0,0,0.4);
    padding: 10px 20px;
    border-radius: 20px;
    border: 4px solid white;
    margin: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#click-container {
    display: none;
    position: relative;
    height: 100vh;
    width: 75vw;
    margin: 0 auto;
    cursor: none;
}

#line {
    display: block;
    position: absolute;
    height: 100vh;
    width: 2px;
    background-color: white;
    transform: translate(-12.5vw, -100%);
    margin-left: 8px;
    margin-top: -12px;
    pointer-events: none; /* Prevents the line from interfering with hitboxes */
}

#line:after {
    content: "";
    display: block;
    height: 30px;
    width: 30px;
    position: absolute;
    bottom: -30px;
    left: -14px;
    background-image: url("../images/hook.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

#line.zapped {
    border-left: 2px #ffff33 solid;
    box-shadow: 0 0 10px #ffff33;
}

h1 {
    margin: 0;
    padding: 20px;
}

button#start-btn {
    margin: 20px 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 4px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

button#start-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

button#start-btn .arrow {
    display: block;
    border-color: transparent white;
    border-style: solid;
    border-width: 25px 0px 25px 50px;
    margin-left: 10px;
}

/* Creatures */
.item {
    cursor: none;
}

.fish {
    width: 50px;
    height: 50px;
    background-color: #F7A400;
    transform: rotate(45deg);
    border-radius: 50%;
    position: absolute;
    transition: left 0.1s linear, top 0.1s linear, opacity 1s linear;
    animation: appear 0.5s;
}

.fish:after {
    content: "";
    border-color: transparent #F7A400;
    border-style: solid;
    border-width: 20px 20px 20px 0px;
    transform-origin: center left;
    transform: rotate(-45deg);
    position: absolute;
    right: -15%;
    top: -15%;
}

.fish:before,
.rare-fish:before {
    content: "";
    background-color: #FFF;
    height: 8px;
    width: 8px;
    display: block;
    border-radius: 50%;
    top: 50%;
    position: absolute;
    left: 10%;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.rare-fish {
    width: 50px;
    height: 50px;
    background-color: #B02C90;
    transform: rotate(45deg);
    border-radius: 25%;
    position: absolute;
    transition: left 0.1s linear, top 0.1s linear, opacity 1s linear;
    animation: appear 0.5s;
}

.rare-fish:after {
    content: "";
    border-color: transparent #B02C90;
    border-style: solid;
    border-width: 20px 20px 20px 0px;
    transform-origin: center left;
    transform: rotate(-45deg);
    position: absolute;
    right: -15%;
    top: -15%;
}

.fish.left,
.rare-fish.left {
    transform: scaleX(-1) rotate(45deg);
}

.shark.left {
    transform: scaleX(-1);
}

.fish.caught,
.rare-fish.caught,
.trash.caught {
    animation: pull-up 0.5s forwards;
}

.fish.disappear,
.rare-fish.disappear,
.trash.disappear,
.jellyfish.disappear,
.shark.disappear {
    animation: disappear 0.35s forwards;
}

.trash {
    width: 30px;
    border-radius: 50% 50% 25% 25%;
    height: 40px;
    background-color: rgba(255,255,255,0.6);
    position: absolute;
    transition: all 1s;
    transform: rotate(-90deg);
    animation: float 1s linear;
}

.trash:before {
    content: "";
    width: 15px;
    height: 8px;
    border-radius: 10%;
    background-color: #C70437;
    position: absolute;
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
}

.trash:after {
    content: "";
    width: 30px;
    height: 50px;
    border-radius: 25% 25% 30% 30%;
    background-color: rgba(255,255,255,0.4);
    position: absolute;
    top: 40px;
}

.jellyfish {
    width: 80px;
    height: 100px;
    background-image: url(../images/jellyfish.svg);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    transition: left 0.1s linear, top 0.1s linear, opacity 1s linear;
    animation: floatUp 1s linear;
}

.shark {
    width: 240px;
    height: 128px;
    background-image: url(../images/shark.svg);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    transition: left 0.1s linear, top 0.1s linear, opacity 1s linear;
    animation: floatUp 1s linear;
}

.hit-text {
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    z-index: 2;
    top: -20px;
    pointer-events: none; /* Crucial so numbers don't block catching */
    animation: point 0.75s forwards;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
}

/* Keyframes */
@keyframes appear {
    from { opacity: 0; transform: scale(0.5) rotate(45deg); }
    to { opacity: 1; transform: scale(1) rotate(45deg); }
}

@keyframes disappear {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0); }
}

@keyframes float {
    0% { opacity: 0; margin-left: 0px; margin-top: -20px; }
    25% { opacity: 0.25; margin-left: -10px; margin-top: -15px; }
    50% { opacity: 0.5; margin-left: 0px; margin-top: -10px; }
    75% { opacity: 0.75; margin-left: 10px; margin-top: -5px; }
    100% { opacity: 1; margin-left: 0px; margin-top: 0px; }
}

@keyframes floatUp {
    0% { opacity: 0; margin-left: 0px; margin-top: 20px; }
    25% { opacity: 0.25; margin-left: -10px; margin-top: 15px; }
    50% { opacity: 0.5; margin-left: 0px; margin-top: 10px; }
    75% { opacity: 0.75; margin-left: 10px; margin-top: 5px; }
    100% { opacity: 1; margin-left: 0px; margin-top: 0px; }
}

@keyframes pull-up {
    from { margin-top: 0; opacity: 1; }
    to { margin-top: -50px; opacity: 0; }
}

@keyframes point {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-30px); opacity: 0; }
}

/* Bubbles */
#bubbles {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

#bubbles div {
    border: solid 2px rgba(255,255,255,0.125);
    border-radius: 100%;
    position: absolute;
    visibility: hidden;
    animation: fade 10s infinite;
}

@keyframes fade {
    from { bottom: -24px; opacity: 1; visibility: visible; }
    to { bottom: 120%; }
}

/* Timer */
#clock {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 80px;
}

svg {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.chart-gauge {
    font-size: 2.5rem;
    letter-spacing: 4px;
    text-anchor: middle;
    dominant-baseline: central;
    alignment-baseline: middle;
    stroke-linecap: round;
}

.timer-time {
    fill: #FFFFFF;
    transition: 0.2s;
}

.timer-time.warning {
    fill: #ff5252;
    animation: shake 0.2s infinite;
}

.timer-backdrop {
    transform: rotate(-90deg);
    transform-origin: center;
    fill: none;
    stroke: rgba(255,255,255,.2);
    stroke-width: 5;
}

.timer-gauge {
    transform: rotate(-90deg);
    transform-origin: center;
    fill: none;
    stroke: #FFF;
    stroke-width: 5;
    animation-iteration-count: infinite;
    stroke-dashoffset: 0;
    stroke-dasharray: 250;
    transition: 1s linear;
}

.timer-gauge.ticking {
    stroke-dashoffset: 250;
}

@keyframes shake {
    0% { letter-spacing: 4px; }
    50% { letter-spacing: 0px; }
    100% { letter-spacing: 4px; }
}

/* --- NEW GAME CONTENT --- */

.treasure {
    width: 45px;
    height: 35px;
    background-color: #FFD700;
    position: absolute;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), inset 0 5px 0 #DAA520;
    transition: left 0.1s linear, top 0.1s linear, opacity 1s linear;
    animation: appear 0.5s;
}

.treasure:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 20px;
    width: 5px;
    height: 5px;
    background: #FFF;
    border-radius: 50%;
}

.squid {
    width: 50px;
    height: 70px;
    background-color: #8A2BE2;
    border-radius: 50% 50% 10% 10%;
    position: absolute;
    transition: left 0.1s linear, top 0.1s linear, opacity 1s linear;
    animation: floatUp 1s linear;
}

.squid:before, .squid:after {
    content: "";
    position: absolute;
    bottom: -15px;
    width: 10px;
    height: 25px;
    background-color: #8A2BE2;
    border-radius: 5px;
}
.squid:before { left: 10px; }
.squid:after { right: 10px; }

/* Ink Overlay Hazard */
#ink-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0b0c10;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition: opacity 0.3s ease-out;
}

#ink-overlay.active {
    opacity: 0.95;
}