@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&display=swap');

body {
    font-family: 'Fredoka', sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
    color: white;
    margin: 0;
}

/* TITLE */
h1 {
    margin-bottom: 5px;
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* MENU */
#menu {
    margin-bottom: 15px;
}

/* SELECT */
select {
    padding: 8px 12px;
    margin: 5px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    border: none;
    background-color: #3a3a3a;
    color: white;
    transition: transform 0.1s ease;
}

select:hover {
    transform: scale(1.05);
}

/* TITLE GRID */
#title {
    margin-top: 10px;
    font-size: 1.2rem;
}

/* COUNTER */
#counter {
    margin-bottom: 15px;
    font-size: 42px;
    font-weight: bold;
}

/* GRID */
#grid {
    display: grid;
    grid-template-columns: repeat(8, 80px);
    grid-gap: 8px;
    justify-content: center;
}

/* CELL */
.cell {
    width: 80px;
    height: 80px;
    background-color: #2c2c2c;
    border: 2px solid #444;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

/* IMAGE */
.cell img {
    width: 70px;
    height: 70px;
}

/* HOVER */
.cell:hover:not(.caught-bugs):not(.caught-fish) {
    transform: scale(1.1);
    background-color: #3a3a3a;
    box-shadow: 0 0 8px rgba(255,255,255,0.2);
}

/* HOVERS */
.caught-bugs:hover,
.caught-fish:hover {
    transform: scale(1.1);
}

/* BUGS */
.caught-bugs {
    background-color: #2ecc71 !important;
    border-color: #27ae60;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.6);
}

/* FISH */
.caught-fish {
    background-color: #3498db !important;
    border-color: #2980b9;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.6);
}

/* BUTTONS */
button {
    margin-top: 15px;
    margin-left: 5px;
    padding: 10px 18px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 10px;
    border: none;
    background-color: #3a3a3a;
    color: white;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

button:hover {
    transform: scale(1.08);
    background-color: #4a4a4a;
}

/* NAMES */
.name {
    position: absolute;
    bottom: 3px;
    font-size: 10px;
    background: rgba(0,0,0,0.7);
    padding: 2px 5px;
    border-radius: 6px;
    display: none;
}

/* DISPLAY NAMES */
.show-names .name {
    display: block;
}

/* COOP MENU */
#coopMenu {
    margin-bottom: 15px;
}

#coopMenu input {
    padding: 8px;
    border-radius: 8px;
    border: none;
    margin-right: 5px;
}

#coopMenu button {
    margin: 5px;
}