@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Aldrich&display=swap');

body {
    font-family: 'Aldrich', sans-serif;
    background-color: #020617;
    color: #e2e8f0;
    overflow-x: hidden
}

.font-sonar {
    font-family: 'Share Tech Mono', monospace
}

.ocean-bg {
    background: linear-gradient(to bottom, #0ea5e9 0%, #0284c7 40%, #0369a1 50%, #0c4a6e 70%, #082f49 90%, #020617 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rise linear infinite
}

.periscope-view {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 20px solid #334155;
    background: rgba(2, 6, 23, 0.5);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5)
}

.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none
}

.crosshair::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(16, 185, 129, 0.5)
}

.crosshair::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(16, 185, 129, 0.5)
}

.depth-gauge {
    width: 60px;
    height: 300px;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 10px;
    position: relative;
    margin-left: 20px
}

.gauge-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #0f172a, #22c55e);
    transition: height 1s ease-out
}

.gauge-marker {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #475569
}

.gauge-marker.zero {
    background: #ef4444;
    height: 4px
}

.control-panel {
    background: linear-gradient(180deg, #334155, #1e293b);
    border-top: 4px solid #475569;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5)
}

.sonar-btn {
    background: radial-gradient(circle at 30% 30%, #22c55e, #15803d);
    border: 4px solid #14532d;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
    box-shadow: 0 5px 0 #14532d, 0 10px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.1s
}

.sonar-btn:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #14532d
}

.radar-ping {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    border: 2px solid #22c55e;
    opacity: 0
}

.ping-anim {
    animation: ping 2s infinite ease-out
}

@keyframes ping {
    0% {
        width: 0;
        height: 0;
        opacity: 1
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0
    }
}

@keyframes rise {
    0% {
        bottom: -10%;
        opacity: 0
    }

    20% {
        opacity: 1
    }

    100% {
        bottom: 110%;
        opacity: 0
    }
}

.fish {
    position: absolute;
    font-size: 2rem;
    transition: all 2s ease-in-out
}

/* High-quality claymation background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('clay_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}