#generate_btn {
    font-size: 13px;
     padding: 6px 14px;
    border: none;
    border-radius: 5px;
    background: #02acd7;
    color: #fff;
    font-family: inherit;
    cursor: url("../cursors/cur_link.cur"), pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#generate_btn:hover {
    background: #3a8ea4;
     transform: scale(1.05);
}

#generate_btn:active {
    transform: scale(0.97);
}

#villager_grid {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
     padding: 4px;
}

#villager_grid .villager_link {
    width: calc(33.333% - 10px);
}

.villager_link {
    text-decoration: none;
    color: inherit;
}

.villager_card {
    text-align: center;
    padding: 14px 10px;
    border-radius: 12px;
    background: #ffffff;
    border: 2px solid #9dd6e6;
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: flex;
     flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.villager_card:hover {
     transform: translateY(-3px);
    background: #f5f5f5;
}

.villager_card img {
    height: 180px;
    object-fit: cover;
    object-position: top center;
    display: block;
     margin: 0 auto;
}

.villager_name {
    font-size: 15px;
     margin: 6px 0 2px 0;
    font-weight: bold;
    color: #333;
}

.villager_personality {
    font-size: 12px;
    margin: 0;
    color: #999;
    font-style: normal;
}

@media (max-width: 600px) {
    #villager_grid .villager_link {
        width: calc(50% - 7px);
    }
    #villager_grid {
         gap: 10px;
    }
}
