/*========FONTS======*/

@font-face {
    font-family: 'karma';
    src: url('font/karmafuture.otf') format('opentype');
}

@font-face {
    font-family: 'future';
    src: url('font/futuremilit.ttf') format('truetype');
}

@font-face {
    font-family: 'bubble';
    src: url('font/bubblebobble.ttf') format('truetype');
}

@font-face {
    font-family: 'shark';
    src: url('font/sharkinthewater.ttf') format('truetype');
}


@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*========CURSOR======*/
/*==main cursor==*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: url('key/salmon1.png') 0 0, auto;
}

/*==secondary cursor==*/
a,
button {
    cursor: url('key/salmon2.png') 0 0, pointer !important;
}

/*========BACKGROUND GLOBAL======*/

body {
    background-image: url('bg/slug.png');
    background-repeat: repeat;
    background-size: auto;
    color: #555;
    font-family: 'shark', sans-serif;
    font-size: 12px;
    text-align: center;
}



.sbtagline {
    font-size: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 2px 2px 2px #122020;
    font-family: 'future', sans-serif;
    z-index: 9999;
    color: #7ee4e4;
    transition: opacity 1s ease;
}

.sbhero {
    display: flex;
    flex-direction: column;
    position: static;
    overflow: hidden;
    width: 100%;
    opacity: 0;
    animation: fadein 2.5s forwards;
    font-size: 60px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 2px 2px 2px #122020;
    font-family: 'karma', sans-serif;
    color: rgb(101, 19, 63);
    padding: 100px;
}


.intro {
    display: flex;
    overflow: hidden;
    font-size: 20px;
    color: #6032ca;
    letter-spacing: 3px;
    text-shadow: 1px 1px 1px #271b36;
    margin-top: 12px;
    font-family: 'future', sans-serif;
    max-width: 100%;
    align-items: center;
    text-justify: center;
    justify-content: center;
    gap: 10px;
}


.section {
    padding: 48px 28px;
    max-width: 90%;
    margin: 0 auto;
    border: 10px double #3f0e30;
    border-radius: 10px;
}

.section-title {
    font-size: 28px;
    color: #b2b1ff;
    letter-spacing: 4px;
    margin-bottom: 24px;
    text-shadow: 2px 2px 2px #3f3765
}

.divider {
    height: 1px;
    background: #111;
    margin: 0 auto;
    max-width: 900px;
}

.nudi-grid-1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    justify-content: center;
}

.nudi-card-1 {
    background: url('bg/beach.avif') no-repeat center center;
    background-size: cover;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    opacity: 1;
    cursor: url('key/salmon2.png') 0 0, pointer !important;
    transition: transform 0.2s;
}

.nudi-card-1:hover {
    transform: scale(1.05);
    border-color: #ca3232;
    opacity: 0.5;
    cursor: url('key/salmon2.png') 0 0, pointer !important;
}

.nudi-card-1 img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: transparent;
    cursor: url('key/salmon2.png') 0 0, pointer !important;
}

.nudi-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    justify-content: center;
    padding: 14px 14px;
}

.nudi-card {
    background: #dba4a4;
    background-size: cover;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: scroll;
    opacity: 1;
    cursor: url('key/salmon2.png') 0 0, pointer !important;
    transition: transform 0.2s;
    width: 0;
    flex: 1;
    height: 60vh;
    max-width: 250px;
    min-width: 200px;
}

.nudi-card:hover {
    transform: scale(1.05);
    border-color: #ca3232;
    opacity: 0.5;
    cursor: url('key/salmon2.png') 0 0, pointer !important;
}

.nudi-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: transparent;
    cursor: url('key/salmon2.png') 0 0, pointer !important;
}

.nudi-card-body {
    padding: 14px 16px;
    cursor: url('key/salmon2.png') 0 0, pointer !important;
}

.nudi-name {
    font-family: 'cyber', sans-serif;
    font-size: 17px;
    color: #f0f0f0;
    letter-spacing: 1px;
    cursor: url('key/salmon2.png') 0 0, pointer !important;
}

.nudi-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
    cursor: url('key/salmon2.png') 0 0, pointer !important;
}

.scientific-name {
    font-size: 11px;
    font-weight: 600;
    color: #f0f0f0;
    font-family: 'russell', sans-serif;
    cursor: url('key/salmon2.png') 0 0, pointer !important;
}

.nudi-region {
    font-size: 11px;
    color: #555;
    font-family: 'russell', sans-serif;
    cursor: url('key/salmon2.png') 0 0, pointer !important;
}

.nudi-divider {
    width: 100%;
    height: 1px;
    background: #00bdbd;
    cursor: url('key/salmon2.png') 0 0, pointer !important;
}


/* ========DIVIDERS======== */
.blank-divider {
    height: 40px;
    background: none;
}


/* ========POPUPS======== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.popup {
    background: #111;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.popup-wide {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #111;
}

.popup-name {
    font-family: 'Cyberotica', sans-serif;
    font-size: 32px;
    color: #f0f0f0;
    margin-bottom: 4px;
}

.popup-info {
    font-family: 'Russell', sans-serif;
    font-size: 12px;
    color: #00bdbd;
    text-shadow: 1px 1px 1px #ca3232;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.popup-region {
    font-family: 'Russell', sans-serif;
    font-size: 11px;
    color: #555;
    margin-bottom: 16px;
}

.popup-body {
    font-family: 'Russell', sans-serif;
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    border-left: 3px solid transparent;
    padding-left: 16px;
}

.popup-body-accent {
    border-left-color: #00bdbd;
    font-size: 12px;
}

.popup-close {
    margin-top: 24px;
    background: #00bdbd;
    border: none;
    color: #fff;
    font-family: 'Russell', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 2px;
}

/* ========NUDI POPUP IMG======== */
.nudi-popup-img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 16px;
    object-fit: contain;
    max-height: 200px;
}

/* ========== SLUG APP ========== */
#slug-app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'bubble', sans-serif;
    color: #f0f0f0;
}

.slug-header {
    text-align: center;
    margin-bottom: 40px;
}

.slug-title {
    font-family: 'bubble', sans-serif;
    font-size: 36px;
    color: #b2b1ff;
    letter-spacing: 4px;
    margin-bottom: 8px;
    text-shadow: 2px 2px 2px #595182;
}

.slug-subtitle {
    font-size: 13px;
    color: #555;
    letter-spacing: 2px;
    font-family: 'bubble', sans-serif;
    margin-bottom: 24px;
}


.slug-search {
    width: 100%;
    max-width: 500px;
    background: #111;
    border: 1px solid #00bdbd;
    border-radius: 4px;
    color: #f0f0f0;
    font-family: 'bubble', sans-serif;
    font-size: 13px;
    padding: 10px 16px;
    outline: none;
    display: block;
    margin: 0 auto 16px;
}

.slug-search:focus {
    border-color: #b2b1ff;
}

.slug-sort {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sort-btn {
    background: none;
    border: 1px solid #333;
    border-radius: 4px;
    color: #555;
    font-family: 'bubble', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 6px 16px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.sort-btn.active,
.sort-btn:hover {
    border-color: #00bdbd;
    color: #00bdbd;
}

/* ========== SPECIES GRID ========== */
.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.species-card {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 100px;
    overflow: hidden;
    cursor: url('key/salmon2.png') 0 0, pointer !important;
    transition: transform 0.2s, border-color 0.2s;
}

.species-card:hover {
    transform: scale(1.03);
    border-color: #00bdbd;
}

.species-card-img-wrap {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #0a0a0a;
}

.species-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.species-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #333;
}

.species-card-body {
    padding: 12px;
}

.species-card-common {
    font-family: 'cyber', sans-serif;
    font-size: 14px;
    color: #f0f0f0;
    margin-bottom: 4px;
}

.species-card-sci {
    font-size: 10px;
    color: #00bdbd;
    font-style: italic;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.species-card-count {
    font-size: 10px;
    color: #555;
    letter-spacing: 1px;
}

/* ========== OBSERVATION PANEL ========== */
.obs-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 700px;
    height: 100vh;
    background: #0d0d0d;
    border-left: 1px solid #00bdbd;
    z-index: 500;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.obs-panel.hidden {
    transform: translateX(100%);
}

.obs-panel-inner {
    padding: 32px 24px;
}

.obs-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.obs-species-name {
    font-family: 'cyber', sans-serif;
    font-size: 28px;
    color: #f0f0f0;
    margin-bottom: 4px;
}

.obs-species-sci {
    font-size: 12px;
    color: #00bdbd;
    font-style: italic;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.obs-species-count {
    font-size: 11px;
    color: #555;
    letter-spacing: 1px;
}

.obs-close {
    background: none;
    border: 1px solid #333;
    border-radius: 4px;
    color: #555;
    font-size: 16px;
    padding: 6px 12px;
    cursor: url('key/salmon2.png') 0 0, pointer !important;
    transition: all 0.2s;
    flex-shrink: 0;
}

.obs-close:hover {
    border-color: #ca3232;
    color: #ca3232;
}

/* ========== OBSERVATION GRID ========== */
.obs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.obs-card {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.obs-card:hover {
    border-color: #333;
}

.obs-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.obs-card-no-img {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #333;
    background: #0a0a0a;
}

.obs-card-body {
    padding: 10px 12px;
}

.obs-card-date {
    font-size: 11px;
    color: #00bdbd;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.obs-card-place {
    font-size: 11px;
    color: #f0f0f0;
    margin-bottom: 4px;
    line-height: 1.4;
}

.obs-card-observer {
    font-size: 10px;
    color: #555;
    margin-bottom: 8px;
}

.obs-card-link {
    font-size: 10px;
    color: #00bdbd;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.obs-card-link:hover {
    color: #b2b1ff;
}

.no-results {
    color: #555;
    font-size: 13px;
    letter-spacing: 2px;
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}